diff options
author | 2022-09-18 22:03:34 +0100 | |
---|---|---|
committer | 2022-09-18 22:03:34 +0100 | |
commit | 46d1e8ddb217f1bb5e07179b32db50b6a04b6de8 (patch) | |
tree | c3f4db63c2751c51acfee97d016551b8f677e29b /bot/__main__.py | |
parent | Remove unnecessary hasattr check (diff) | |
parent | Fix Poetry 1.2 Support (#1099) (diff) |
Merge branch 'main' into fix-whitelist-inheritance
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index 6889fe2b..bd6c70ee 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -12,4 +12,8 @@ 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: + # Manually enable the message content intent. This is required until the below PR is merged + # https://github.com/python-discord/sir-lancebot/pull/1092 + bot._connection._intents.value += 1 << 15 + bot.run(Client.token) |