diff --git a/bot.py b/bot.py index 906a3e1..8416f42 100644 --- a/bot.py +++ b/bot.py @@ -186,26 +186,6 @@ async def leaderboard(ctx): embed = discord.Embed(title="Leaderboard" , description=message)#make the response Box await ctx.message.channel.send(embed=embed)#print the ressponse box -@bot.command(pass_context=True, brief="joins your current voicechat and makes a wrong sound") -async def wrong(ctx):#this function joins the current voicechat of the user and plays the "wrong.mp3" file - channel = ctx.author.voice.channel#get the current voicechat the user is in - await channel.connect()#connect to this chat - voice = ctx.voice_client#make a voice client variable (needed to playx audio) - voice.play(discord.FFmpegPCMAudio("wrong.mp3"))#start to play the audio file - while voice.is_playing():#wait until the file is finished - sleep(0.1)#if we don't wait here for a moment the bot starts lagging - await ctx.message.guild.voice_client.disconnect()#if the file is finished playing, leave the voicechat - -@bot.command(pass_context=True, brief="joins your current voicechat and makes a dock sound") -async def duck(ctx):#this function joins the current voicechat of the user and plays the "duck.mp3" file - channel = ctx.author.voice.channel#get the current voicechat the user is in - await channel.connect()#connect to this chat - voice = ctx.voice_client#make a voice client variable (needed to playx audio) - voice.play(discord.FFmpegPCMAudio("duck.mp3"))#start to play the audio file - while voice.is_playing():#wait until the file is finished - sleep(0.1)#if we don't wait here for a moment the bot starts lagging - await ctx.message.guild.voice_client.disconnect()#if the file is finished playing, leave the voicechat - @bot.command(pass_context=True, brief="prints the ping time of the bot") async def ping(ctx):#prints the ping and the time the bot needed to process this command now = datetime.utcnow()#get the current time diff --git a/duck.mp3 b/duck.mp3 deleted file mode 100644 index 3ea0d5e..0000000 Binary files a/duck.mp3 and /dev/null differ diff --git a/wrong.mp3 b/wrong.mp3 deleted file mode 100644 index 07f18bf..0000000 Binary files a/wrong.mp3 and /dev/null differ