aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anubhav <[email protected]>2020-09-21 11:58:49 +0530
committerGravatar GitHub <[email protected]>2020-09-21 11:58:49 +0530
commit398425dbd881e7a3b01c3a821819873852567578 (patch)
treeb55b5aa5598d7f7ae51854ee3e78225c5caf6ca7
parentUpdate bot/exts/evergreen/wikipedia.py (diff)
made code more readable
Co-authored-by: Thomas Petersson <[email protected]>
-rw-r--r--bot/exts/evergreen/wikipedia.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py
index 7fac3575..e18c0b79 100644
--- a/bot/exts/evergreen/wikipedia.py
+++ b/bot/exts/evergreen/wikipedia.py
@@ -77,8 +77,10 @@ class WikipediaCog(commands.Cog):
try:
message = await ctx.bot.wait_for('message', timeout=60.0, check=check)
response_from_user = await self.bot.get_context(message)
+
if response_from_user.command:
return
+
response = int(message.content)
if response < 0:
await ctx.send(f"Sorry, but you can't give negative index, {error_msg}")