Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

FINALLY enable the message_content intent flag for the bot client#354

Merged
notsniped merged 1 commit intomainfrom
enable-message-content-intent-flag-for-client
Apr 8, 2024
Merged

FINALLY enable the message_content intent flag for the bot client#354
notsniped merged 1 commit intomainfrom
enable-message-content-intent-flag-for-client

Conversation

@notsniped
Copy link
Member

Backstory of the Most Major and Longest-Lasting Bug in Isobot

Two years.

I'm not even going to lie, this bug was there in the bot since the very beginning of the codebase rework.

It was absolutely haunting. It used to make me think every night: "How would I be able to fix this?"

No amount of ChatGPT debugging or documentation resolution was able to provide me with a solution for it. Eventually, I landed on the conclusion that I wouldn't be able to fix it, and I just left it, allowing the AFK system and the automod features to rot in the dark.

But finally, after some time of thinking with a fresh and rejuvenated mind, after 2 whole years, I was finally able to find a fix for it... and the fix was only 3 lines long.

Turns out it was that in PyCord's latest update they turned discord.Bot() into a discord.Client() replica by adding its arguments, so now basically its just like the old version: make an intents object, enable intents.message_content flag, and add it as an argument to discord.Bot().

Finally.

😌

Fixed Features from this PR

This patch helps fix the ongoing bugs with the user AFK notifier, and all of isobot's automod features.

I'm not even going to lie, this bug was there in the bot since the very beginning of the codebase rework.

It was absolutely haunting. It used to make me think every night: "How would I be able to fix this?"

No amount of ChatGPT debugging or documentation resolution was able to provide me with a solution for it. Eventually, I landed on the conclusion that I wouldn't be able to fix it, and I just left it, allowing the AFK system and the automod features to rot in the dark.

But finally, after some time of thinking with a fresh and rejuvenated mind, after 2 whole years, I was finally able to find a fix for it... and the fix was only 3 lines long.

Turns out it was that in PyCord's latest update they turned `discord.Bot()` into a `discord.Client()` replica by adding its arguments, so now basically its just like the old version: make an intents object, enable `intents.message_content` flag, and add it as an argument to `discord.Bot()`.

Finally.

:relieved:
@notsniped notsniped added enhancement New feature or request priority:critical area:main Changes to the main functioning code area:levelling Any updates, changes, or removals to the levelling system type:patch Bug fixes for the bot and/or it's commands area:utils Any changes related to the utility commands in isobot labels Apr 8, 2024
@notsniped notsniped self-assigned this Apr 8, 2024
@notsniped notsniped merged commit df5394a into main Apr 8, 2024
@notsniped notsniped deleted the enable-message-content-intent-flag-for-client branch April 8, 2024 05:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:levelling Any updates, changes, or removals to the levelling system area:main Changes to the main functioning code area:utils Any changes related to the utility commands in isobot enhancement New feature or request priority:critical size/XS type:patch Bug fixes for the bot and/or it's commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant