예제 #1
0
 async def nyan_cat(self, ctx: commands.Context,
                    channel: discord.VoiceChannel,
                    *members: discord.Member):
     """Mets du nyan cat."""
     await ctx.message.delete()
     music = self.bot.get_cog("Music")
     ctx.voice_state = music.get_voice_state(ctx)
     await music._summon(ctx, channel=channel)
     await music._play(ctx, search="nyan cat 10 hours")
     for member in members:
         member.move_to(channel)
예제 #2
0
 async def cog_before_invoke(self, ctx: commands.Context):
     ctx.voice_state = self.get_voice_state(ctx)
예제 #3
0
 async def cog_before_invoke(
     self, ctx: commands.Context
 ):  #Get ourselves a music context! (Only accessable throughout this cog)
     ctx.voice_state = self.get_voice_state(ctx)