Add message handler

This commit is contained in:
Choco
2023-03-17 12:38:57 +08:00
parent 1e0a8314cb
commit c4197bdd86
7 changed files with 103 additions and 17 deletions

View File

@@ -233,6 +233,7 @@ async def connect_channel(ctx: commands.Context, channel: discord.VoiceChannel =
get_lang(ctx.guild.id, 'noPermission'))
player: voicelink.Player = await channel.connect(cls=voicelink.Player(ctx.bot, channel, ctx))
await player.send_ws({"op": "createPlayer", "members_id": [member.id for member in channel.members]})
return player
def time(millis:int) -> str: