mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
improve empty tempvoice channel cleanup logic
This commit is contained in:
1 parent
bb2428f34b
commit
e7ce56a1e5
1 file changed
+2
-1
@@ -439,7 +439,8 @@ class TempVoiceHelper:
|
||||
|
||||
self.bot.logger.info(f"Created temporary voice channel {channel} in {interaction.guild}")
|
||||
|
||||
self.temp_vc_channels[channel] = {"created": datetime.now(), "no_members_since": None}
|
||||
now = datetime.now()
|
||||
self.temp_vc_channels[channel] = {"created": now, "no_members_since": now}
|
||||
|
||||
try:
|
||||
await interaction.user.move_to(channel)
|
||||
|
||||
Reference in new issue
Block a user