diff options
| author | 2018-02-05 21:21:58 +0000 | |
|---|---|---|
| committer | 2018-02-05 21:21:58 +0000 | |
| commit | ccf0d03e13f7c2ec315feb03d29480afe88f2204 (patch) | |
| tree | f63e756437d028cfa68e9212b61fcaf6d29a0510 | |
| parent | .yaml => .yml (diff) | |
snekchek
| -rw-r--r-- | bot/__init__.py | 2 | ||||
| -rw-r--r-- | bot/cogs/bot.py | 2 | ||||
| -rw-r--r-- | bot/cogs/eval.py | 4 | ||||
| -rw-r--r-- | bot/cogs/events.py | 5 | ||||
| -rw-r--r-- | bot/interpreter.py | 2 |
5 files changed, 9 insertions, 6 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index 2e00283e6..ba286add3 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,3 +1,3 @@ # coding=utf-8 -__author__ = "Gareth Coles"
\ No newline at end of file +__author__ = "Gareth Coles" diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py index 435051fdf..96dc8d795 100644 --- a/bot/cogs/bot.py +++ b/bot/cogs/bot.py @@ -1,6 +1,6 @@ # coding=utf-8 from discord import Embed -from discord.ext.commands import AutoShardedBot, group, Context +from discord.ext.commands import AutoShardedBot, Context, group __author__ = "Gareth Coles" diff --git a/bot/cogs/eval.py b/bot/cogs/eval.py index 82d55bbc3..c272a7e4a 100644 --- a/bot/cogs/eval.py +++ b/bot/cogs/eval.py @@ -1,9 +1,11 @@ # coding=utf-8 -from discord.ext.commands import AutoShardedBot, Context, is_owner, command + from io import StringIO from bot.interpreter import Interpreter +from discord.ext.commands import AutoShardedBot, Context, command, is_owner + __author__ = "Gareth Coles" diff --git a/bot/cogs/events.py b/bot/cogs/events.py index c138db013..1c4d52623 100644 --- a/bot/cogs/events.py +++ b/bot/cogs/events.py @@ -1,7 +1,8 @@ # coding=utf-8 from discord.ext.commands import ( - AutoShardedBot, CommandError, Context, BadArgument, NoPrivateMessage, - CommandInvokeError, UserInputError, BotMissingPermissions + AutoShardedBot, BadArgument, BotMissingPermissions, + CommandError, CommandInvokeError, Context, + NoPrivateMessage, UserInputError ) __author__ = "Gareth Coles" diff --git a/bot/interpreter.py b/bot/interpreter.py index 3e7b822d9..2e1a6664a 100644 --- a/bot/interpreter.py +++ b/bot/interpreter.py @@ -6,7 +6,7 @@ __author__ = 'Gareth Coles' CODE_TEMPLATE = """ async def _func(): -{} +{0} """ |