aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-05-15 19:51:19 +0200
committerGravatar Numerlor <[email protected]>2020-05-15 19:51:19 +0200
commit1c06d2a9d873ced2e54bf16a96573a46c583c12f (patch)
tree924b162ad81e330699bb632038e6ab6176323144
parentIncrease snekbox re eval timeout. (diff)
Move the re eval timeout to a module constant
-rw-r--r--bot/cogs/snekbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py
index 611e80f61..9fa75a929 100644
--- a/bot/cogs/snekbox.py
+++ b/bot/cogs/snekbox.py
@@ -47,6 +47,7 @@ EVAL_ROLES = (Roles.helpers, Roles.moderators, Roles.admins, Roles.owners, Roles
SIGKILL = 9
REEVAL_EMOJI = '\U0001f501' # :repeat:
+REEVAL_TIMEOUT = 30
class Snekbox(Cog):
@@ -227,7 +228,7 @@ class Snekbox(Cog):
_, new_message = await self.bot.wait_for(
'message_edit',
check=_predicate_eval_message_edit,
- timeout=30
+ timeout=REEVAL_TIMEOUT
)
await ctx.message.add_reaction(REEVAL_EMOJI)
await self.bot.wait_for(