Skip to content

Commit

Permalink
moved int cast
Browse files Browse the repository at this point in the history
  • Loading branch information
minimike86 committed Oct 25, 2024
1 parent c5a0c51 commit df4c8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twitchrce/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
BOT_JOIN_CHANNEL = config("BOT_JOIN_CHANNEL")
BOT_JOIN_CHANNEL_ID = config("BOT_JOIN_CHANNEL_ID")

MAX_VIP_SLOTS = int(config("MAX_VIP_SLOTS", default=10))
MAX_VIP_SLOTS = config("MAX_VIP_SLOTS", default=10)

CMD_ALLOW_LIST = [
"aux",
Expand Down
2 changes: 1 addition & 1 deletion twitchrce/custom_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ async def add_vip_auto_redemption_reward(self, broadcaster: PartialUser):
vips = await self._http.get_channel_vips(
token=self.user_token, broadcaster_id=broadcaster.id, first=100
)
if len(vips) < settings.MAX_VIP_SLOTS:
if len(vips) < int(settings.MAX_VIP_SLOTS):
await self._http.create_reward(
broadcaster_id=broadcaster.id,
title="VIP",
Expand Down

0 comments on commit df4c8f0

Please sign in to comment.