Alert detection overriden by insult detection #82
Labels
No labels
bug
config update
documentation
duplicate
enhancement
in dev
input needed
new feature
not in draft
refactor
waiting on docs update
wont-do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Sirdog/EnduraBot#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unbeknownst to me, Discord.py does not allow 2
on_messagelisteners to exist in the same cog. At the moment, it seems the most recent listener (put another way, the last defined listener) in a cog is the one that actually listens. All others are ignored.In this instance, the listener for whether to insult users has taken precedence over the listener that stops people from pinging
@SYS:OPraw for issues and redirects to using/alert.The solution is to separate these 2 into different cogs.
Quite frankly, I should probably move these listener files into a dedicated
listenersfolder so I can differentiate between code that is executed by command and code executed by an event of some sort.