diff --git a/bot.py b/bot.py index 91e9841..efe3f40 100644 --- a/bot.py +++ b/bot.py @@ -59,13 +59,7 @@ async def build_response(): resps = fuit else: resps = doccy - - '''resps = [ - doccy, - emoji_response, - ] -''' #return str(secrets.choice(resps)) return resps @@ -84,8 +78,10 @@ async def on_message(message): response = await build_response() - if isinstance(response, io.IOBase): + try: await message.channel.send(file=discord.File(response)) + except: + pass if response.startswith("