fix: Fix typos.

This commit is contained in:
2023-08-19 14:45:11 +03:00
parent 2945db6a7f
commit fd5a3f8f30
2 changed files with 3 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ class ScheduledSession:
channel = self.bot.get_channel(channelid)
if channel is not None:
channels = self.channels_setting.value
room = self.room_channel.value
room = self.room_channel
valid = (
not channels
or (channel in channels)

View File

@@ -173,11 +173,11 @@ class VoiceTrackerCog(LionCog):
tracked = tracked_today[(session_data.guildid, session_data.userid)]
if tracked >= cap:
# Already over cap
complete.append(
complete.append((
session_data.guildid,
session_data.userid,
max(now + dt.timedelta(seconds=tracked - cap), session_data.last_update)
)
))
else:
tomorrow = lguild.today + dt.timedelta(days=1)
expiry = now + dt.timedelta(seconds=(cap - tracked))