aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-02-20 12:20:24 +0000
committerGravatar Chris Lovering <[email protected]>2022-02-20 14:13:02 +0000
commit58e33b1b3dbf623ac4e7796a392dd8446b809744 (patch)
tree74c20fbd156ec70c62db7fae56cd82af4acda4c7 /bot/__main__.py
parentMerge pull request #1037 from python-discord/fix-error-in-pull-1033 (diff)
Don't call bot.run() if IN_CI env var is set
Diffstat (limited to 'bot/__main__.py')
-rw-r--r--bot/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index 6889fe2b..0bf7b398 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -12,4 +12,5 @@ bot.add_check(whitelist_check(channels=WHITELISTED_CHANNELS, roles=STAFF_ROLES))
for ext in walk_extensions():
bot.load_extension(ext)
-bot.run(Client.token)
+if not Client.in_ci:
+ bot.run(Client.token)