From 8058d5639b633138d8df0c85adb50d0662ec6fc0 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Wed, 2 Dec 2020 23:50:43 +0100 Subject: [PATCH] Update miscellaneous.py --- commands/miscellaneous.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/miscellaneous.py b/commands/miscellaneous.py index e28f6a1..2104271 100644 --- a/commands/miscellaneous.py +++ b/commands/miscellaneous.py @@ -1,5 +1,6 @@ import discord import events +import ast from datetime import datetime from discord.ext import commands @@ -76,7 +77,7 @@ class Miscellaneous(commands.Cog): async def debug(self, ctx, *, cmd): 'Executes a line of code' try: - result = eval(cmd) + result = ast.literal_eval(cmd) if asyncio.iscoroutine(result): result = await result await ctx.send(f'''```py