decoupled lavalink creation from cogs.music

This commit is contained in:
2021-11-20 00:37:17 +01:00
parent 1697002666
commit 8504d6abfd
5 changed files with 24 additions and 21 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ class AutoJoin:
async def get_channels(redis: Redis) -> Dict[str, str]:
# return all channels
channels = await redis.hgetall(f"{redis_prefix}:autojoin")
return {key: value.split("-") for key, value in channels.items()}
return {key: value.split(":") for key, value in channels.items()}
@staticmethod
async def update_channel(
@@ -21,7 +21,7 @@ class AutoJoin:
await redis.hset(
f"{redis_prefix}:autojoin",
guild_id,
f"{voice_channel_id}-{text_channel_id}",
f"{voice_channel_id}:{text_channel_id}",
)
@staticmethod