Skip to content

Commit c172381

Browse files
committed
Removed TODO
1 parent 55670c3 commit c172381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,8 @@ async def del_alias(self, ctx, *, name: str.lower):
594594
@commands.command(hidden=True, name='eval')
595595
@owner_only()
596596
async def eval_(self, ctx, *, body):
597-
"""Evaluates python code"""
597+
"""Evaluates Python code"""
598598

599-
# TODO: Ugly func, fix.
600599
env = {
601600
'ctx': ctx,
602601
'bot': self.bot,
@@ -605,6 +604,7 @@ async def eval_(self, ctx, *, body):
605604
'guild': ctx.guild,
606605
'message': ctx.message,
607606
'source': inspect.getsource,
607+
'discord': __import__('discord')
608608
}
609609

610610
env.update(globals())

0 commit comments

Comments
 (0)