try to debug error
This commit is contained in:
parent
26bb07f7b8
commit
4208fb5d15
1 changed files with 5 additions and 2 deletions
5
bot.py
5
bot.py
|
@ -56,7 +56,10 @@ bot.help_command = commands.DefaultHelpCommand(dm_help=False, no_category="Befeh
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_command_error(ctx, error):
|
async def on_command_error(ctx, error):
|
||||||
|
try:
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
except:
|
||||||
|
print("message not found")
|
||||||
print(error)
|
print(error)
|
||||||
em = discord.Embed(title="Error", description=error, colour=0xFF0000)
|
em = discord.Embed(title="Error", description=error, colour=0xFF0000)
|
||||||
await ctx.send(content="ups, da ist wohl was schief gegangen :( traurige Bot Geräusche...", embed=em, delete_after=20)
|
await ctx.send(content="ups, da ist wohl was schief gegangen :( traurige Bot Geräusche...", embed=em, delete_after=20)
|
||||||
|
@ -251,7 +254,7 @@ async def start(ctx, role_id):
|
||||||
@bot.command(help="Beende die gestartete Runde PnP", usage="")
|
@bot.command(help="Beende die gestartete Runde PnP", usage="")
|
||||||
@is_gm()
|
@is_gm()
|
||||||
async def stop(ctx):
|
async def stop(ctx):
|
||||||
await ctx.message.delete()
|
#await ctx.message.delete()
|
||||||
text_file = open("start_id.txt", "r")
|
text_file = open("start_id.txt", "r")
|
||||||
start_id = text_file.read()
|
start_id = text_file.read()
|
||||||
text_file.close()
|
text_file.close()
|
||||||
|
|
Loading…
Reference in a new issue