mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
removed literal_eval; insufficient
This commit is contained in:
parent
8058d5639b
commit
30ad48d1ee
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue