jkcgs / alexis-bot

Another Discord bot, initially created for /r/chile's guild (https://discord.gg/chile)
https://alexisbot.mak.wtf/
MIT License
9 stars 7 forks source link

Atrapar errores 500 #88

Closed jkcgs closed 6 years ago

jkcgs commented 6 years ago
Traceback (most recent call last):
  File "/opt/alexis-bot/alexis/command.py", line 97, in message_handler
    await cmd_ins.handle(cmd)
  File "/opt/alexis-bot/alexis/modules/nextsteamsale.py", line 45, in handle
    'remaininghours': remaining_time[1]
  File "/opt/alexis-bot/alexis/message_cmd.py", line 81, in answer
    return await self.bot.send_message(self.message.channel, content, **kwargs)
  File "/opt/alexis-bot/alexis/bot.py", line 192, in send_message
    return await super(AlexisBot, self).send_message(**kwargs)
  File "/opt/alexis-bot/lib/python3.5/site-packages/discord/client.py", line 1152, in send_message
    data = yield from self.http.send_message(channel_id, content, guild_id=guild_id, tts=tts, embed=embed)
  File "/opt/alexis-bot/lib/python3.5/site-packages/discord/http.py", line 200, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: INTERNAL SERVER ERROR (status code: 500): 500: Internal Server Error