Switched to OpusVoice
This commit is contained in:
15
Music-Bot.py
15
Music-Bot.py
@@ -195,14 +195,7 @@ else:
|
|||||||
elif ctx.voice_client.is_playing():
|
elif ctx.voice_client.is_playing():
|
||||||
ctx.voice_client.stop()
|
ctx.voice_client.stop()
|
||||||
|
|
||||||
try:
|
|
||||||
bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True))
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
bot.loop.run_until_complete(bot.close())
|
|
||||||
finally:
|
|
||||||
bot.loop.close()
|
|
||||||
|
|
||||||
"""
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_application_command_error(ctx, error):
|
async def on_application_command_error(ctx, error):
|
||||||
print(f"[on_application_command_error]\n{ctx.author}\n{error}")
|
print(f"[on_application_command_error]\n{ctx.author}\n{error}")
|
||||||
@@ -226,6 +219,12 @@ else:
|
|||||||
print(f"[on_command_error]\n{ctx.author}\n{error}")
|
print(f"[on_command_error]\n{ctx.author}\n{error}")
|
||||||
embed = Embed(title=f"{error}", color=15158332)
|
embed = Embed(title=f"{error}", color=15158332)
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
"""
|
|
||||||
|
try:
|
||||||
|
bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True))
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
bot.loop.run_until_complete(bot.close())
|
||||||
|
finally:
|
||||||
|
bot.loop.close()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user