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