| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
| |
I've removed the unit tests for duckpond in concordance with the new
policy for writing unit tests for the bot The tests were unnecessarily
complicated, difficult to maintain, and slowed development.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our duckpond suffered from a race condition: If multiple raw reaction
events were received in quick succession and a message had enough ducks
to take it over the duckpond threshold, the message would be relayed
multiple times.
The reason this happened is because the green checkmark emoji that stops
a message from being relayed multiple times is only added after the
message has been relayed. This means that multiple event triggers can
make it past the green checkmark check before any of them has a chance
to add a green checkmark.
The solution was to create a relay lock that needs to be acquired before
checking for the presence of a green checkmark and is only released
after adding a green checkmark. This prevents multiple events from
making it past the sentinel check.
As our Cogs are potentially initialized before the event loop is
created, the lock is load lazily when needed.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |
|
|
|
|
|
|
| |
As announcements already get a lot of exposure and have a high risk of
getting "ducked", duckpond will now ignore those channels and never
relay those announcements to our duckpond.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
Some of our members have expressed concern that their messages would be
"ducked" by staff members and relayed to the staff-only duckpond. Since
duckpond is supposed to be a funny, staff-only affair, I've made
duckpond ignore messages from non-staff members.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Instead of maintaining a list of duckpond IDs manually, it's a much
better idea to detect ducky emojis dynamically using the new emoji name
grouping we've introduced: All emojis that start with `ducky_` will now
be counted as a duckpond ducky.
The unicode duck emoji obviously still counts in addition to custom
emojis with the `ducky_` prefix.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |\
| |
| | |
Updated the names of reddit emotes
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| |/
|/| |
Truncate internal eval.
|
| | |\
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| | |
After moving constants to config, the docstring references were not
updated accordingly, and remained uppercase.
This commit also removed the redundant list indentation.
|
| |\ \
| | |
| | | |
Take steps to increase verification rate
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Move bolding markdown outside of text link in help channel messages.
|
| | |\ \ \
| |/ / /
|/| | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As there are a few bugs in the implementation, I've temporarily disabled
the at-everyone ping filter in the AntiSpam cog. We can disable it after
we've fixed the bugs.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Our AntiSpam cog suffers from a race condition that causes it to try and
infract the same user multiple times. As that happens frequently with
the burst_shared filter, it means that our bot joins in and starts
spamming the channel with error messages.
Another issue is that burst_shared may cause our bot to send a lot of
DMs to a lot of different members. This caused our bot to get a DM ban
from Discord after a recent `everyone` ping incident.
I've decided to disable the `burst_shared` filter by commenting out the
relevant lines but leave the code in place otherwise. This means we
still have the implementation handy in case we want to re-enable it on
short notice.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |/ / /
| | |
| | |
| | |
| | | |
On some devices the markdown gets rendered improperly,
leaving the asterisks in the message without bolding.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
python-discord/bug/filters/1130/ignore-codeblock-emoji
AntiSpam: ignore custom emojis in code blocks
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In code blocks, custom emojis render as text rather than as images.
Therefore, they probably aren't being spammed and should be ignored.
Fix #1130
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
MrAwesomeRocks/feat/filter/1131/everyone-ping-responder
Auto-respond to everyone pings.
|
| | |\ \ \ \
| |/ / / /
|/| | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Completely gutted the wolfram command.
|
| | |\ \ \ \ \
| |/ / / / /
|/| | | | | |
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Added checks to ignore webhook and bot messages for antimalware
|
| | |\ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
|
| |\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Use wait_for_deletion from bot/utils/messages.py rather than help_cleanup
|
| | |\ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | |/ / / / / /
|/| | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
Moved to seasonalbot/bot/exts/evergreen/wolfram.py
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Censor watchchannel messages when they contain leaked tokens
|
| | |\ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
|
| | |_|_|/ / /
|/| | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #1094
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Changed the regex to not punish users who have text other than
`@everyone` in their codeblocks.
Multiline codeblocks can now have `@everyone` in them.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Removed redundant comments.
Switched to regex to avoid punishing users for putting `@everyone`
in codeblocks.
Changed log message since this isn't a anti-spam rule based off
of frequency.
Added check for `<@&{guild_id}>` ping, also checks for codeblocks.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
The NEGATIVE_REPLIES header is now the title of the embed.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Changed cryptic variable name.
Changed ping response to use `bot.constants.NEGATIVE_REPLIES`.
Changed ping repsonse to only ping user once.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Seperated the member count by commas every three digits.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Changed the message to say the raw member count, not just thousands.
Also cleaned up some unused variables and imports in the file.
|