aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-10-01Duck pond: ignore reaction events from other guildsGravatar MarkKoz-2/+8
2020-09-30Duck pond: ignore reactions in DMsGravatar MarkKoz-0/+7
Also handle the channel not being found, which may be due to a cache issue or because it got deleted. Fixes #1183 Fixes BOT-8T
2020-09-30Remove null chars before posting deleted messagesGravatar MarkKoz-1/+1
Our API doesn't allow null characters in the content field. It may be present because of a self bot that is able to send such character. Fixes #1182 Fixes BOT-8E
2020-09-30Catch 404 in wait_for_deletion when reactingGravatar MarkKoz-1/+5
The message may be deleted before the bot gets a chance to react. Fixes #1181
2020-09-30Remove alias cogGravatar MarkKoz-87/+0
Last few aliases are an anomaly since #1124 was merged. The remaining aliases are seldom used. The code isn't exactly clean and it has some maintenance costs. Resolves #1159
2020-09-27Incidents: reduce timeout log to info levelGravatar kwzrd-1/+1
This shouldn't be a warning, as we cannot do anything about it. Fixes BOT-8X
2020-09-27Allow !role for any staff roleGravatar Matteo Bertucci-2/+2
Closes #1173
2020-09-27Allow !eval in #code-help-voiceGravatar Matteo Bertucci-1/+3
2020-09-27Verification: apply 'safe_dm' to all DM dispatchesGravatar kwzrd-5/+7
Now, when we send a DM and it fails: * Ignore if due to disabled DMs * Log exception otherwise
2020-09-27Verification: move disabled DM handling into helperGravatar kwzrd-5/+22
Note that we were previously only catching 403. As the docstring explains, we will now catch any Discord exception and only look at the the code, rather than the status.
2020-09-27Relock Pipfile to update async-redis.Gravatar Leon Sandøy-62/+70
This also bumps minor versions of several other packages. I've spun up the bot and played around with it, and run all unit tests. Everything still seems to be in order.
2020-09-27Add the video to the welcome DM.Gravatar Leon Sandøy-4/+7
This rewords the welcome DM, and adds the new Welcome To Python Discord video to it.
2020-09-26Sync: update sync() docstringGravatar MarkKoz-3/+1
2020-09-25Remove redundant is_valid_userid functionGravatar Bast-33/+27
extract_user_id(id) is not None does the same job and is not worth the extra function
2020-09-24Change the mod alert message component for the user token detectionGravatar Bast-46/+23
Clean up mock usage, docstrings, unnecessarily split-lined function calls
2020-09-24Add BOT vs USER token detection, properly handling bot tokens for bots in ↵Gravatar Bast-13/+47
the current server Also adjust the naming and purposes of the format messages to KNOWN and UNKNOWN token messages.
2020-09-24Implement review-suggested changesGravatar Bast-67/+91
userid -> user ID maybevalid -> maybe_valid remove collections import and added a new function that handles the "format user ID log message" and should_ping_everyone feature
2020-09-23Sync: remove _asdict commentGravatar MarkKoz-1/+1
The comment doesn't contribute anything.
2020-09-23Fix use of expanded infraction response for usernameGravatar MarkKoz-1/+1
Fixes BOT-9A
2020-09-23Incidents: bump archive log to INFO levelGravatar kwzrd-1/+1
2020-09-23Verification: reduce request dispatch log levelGravatar kwzrd-1/+1
Avoid information duplication in production logs.
2020-09-23Update format_user to remove username and add IDGravatar Joe Banks-4/+2
2020-09-22Clean: fix mention in mod log messageGravatar MarkKoz-1/+1
Fixes BOT-99
2020-09-22Avoid using discord.Object's repr as the username for infraction searchGravatar MarkKoz-0/+7
2020-09-22Fix AttributeError for infraction user searches via the groupGravatar MarkKoz-1/+1
2020-09-22Fix future date check in snowflake converterGravatar MarkKoz-1/+1
2020-09-22Filtering: add missing space to log msgGravatar Mark-1/+1
2020-09-22Fix type annotation for expanded infractionsGravatar MarkKoz-2/+1
The `_utils.Infraction` alias does not cover nested data structures. Therefore, it's inappropriate for expanded infraction API responses.
2020-09-22Sync: refactor conditional for sending message Gravatar Mark-1/+4
The ternary is a bit confusing. Co-authored-by: Numerlor <[email protected]>
2020-09-22Updated dependencies to match with master and include aioping.Gravatar Xithrius-6/+17
2020-09-22Whitelisted the bot_commands channel and all staff for other channels.Gravatar Xithrius-1/+3
2020-09-21Replacing the round function with a format specifier.Gravatar Xithrius-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-09-21Replacing the round function with a format specifier.Gravatar Xithrius-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-09-21Replacing the round function with a format specifier.Gravatar Xithrius-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-09-21Comment updated from "microseconds" to "seconds"Gravatar Xithrius-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-09-21Use `has_any_role` decorator instead of old `with_role` decoratorGravatar Den4200-2/+2
2020-09-21Description renamed to avoid verbosity.Gravatar Xithrius-1/+1
2020-09-21Added period to docstring.Gravatar Xithrius-1/+1