aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-05-09Adds Warning For Desynced Clock In Ping CommandGravatar Hassan Abouelela-1/+4
Signed-off-by: Hassan Abouelela <[email protected]>
2021-05-09Fixes Site Ping On LocalhostGravatar Hassan Abouelela-1/+3
Improves parsing of site URL, so the ping command works locally and in prod. Signed-off-by: Hassan Abouelela <[email protected]>
2021-05-08add a newline after backticks in code-blocksGravatar Qwerty-133-3/+3
2021-05-07escape markdown in edited message contentsGravatar Qwerty-133-1/+3
2021-05-07Missed out removing one argument from pbanGravatar Shivansh-007-1/+1
2021-05-07Apply request grammar changes.Gravatar Shivansh-007-4/+4
Co-authored-by: Boris Muratov <[email protected]>
2021-05-07(infractions): Modify voice ban tests according to new changes in 3272605Gravatar Shivansh-2/+2
2021-05-07(infractions): Apply temporary voice ban if duration specified by while ↵Gravatar Shivansh-3/+14
voice banning user
2021-05-07(infractions): Remove purge days & add duration argument for pbanGravatar Shivansh-5/+4
2021-05-06Prevent accidental addition of users to talentpoolGravatar Sebastiaan Zeeff-4/+8
Bug: When asking for a review for a user that isn't currently nominated using the `!talentpool get_review <userid>` command, the user is added to the talentpool `watched_users` cache, causing their messages to be relayed to the talentpool watch channel. Steps to reproduce: Use `!talentpool get_review <user_id>`, where `<user_id>` is the ID of a user not currently nominated. The command will correctly reply that the user isn't nominated, but their ID will be added as a key to the defaultdict nonetheless. Solution: replace all regular getitem usages with `.get(<user_id>)`, as the Reviewer should never insert IDs using the regular defaultdict path. Additional note: I've replaced all occurrences of regular getitem access into the defaultdict, even those that are normally not reachable with the id of a user that's currently not nominated, to prevent a future refactor from accidentally introducing this bug again.
2021-05-05chore: Don't send a message when redirecting eval output which would ping ↵Gravatar ToxicKidz-3/+9
users twice
2021-05-05(infractions): Apply tempban if duration is specified while banning a userGravatar Shivansh-3/+14
2021-05-05fix: make requested changesGravatar vcokltfre-10/+10
2021-05-05fix: remove the newlineGravatar vcokltfre-1/+0
2021-05-04Add more celebrities to stars.jsonGravatar DawnOfMidnight-0/+6
Celebrities: - The Weeknd - Ringo Starr - John Lennon - Guido Van Rossum - George Harrison - Darude
2021-05-04Update stars.jsonGravatar DawnOfMidnight-0/+1
2021-05-03Removed opinions from text.Gravatar Xithrius-4/+4
Co-authored-by: Boris Muratov <[email protected]>
2021-04-30chore: Add the missing 'until'Gravatar ToxicKidz-1/+1
2021-04-29feat: Use embed timestamp in modpings offGravatar ToxicKidz-3/+5
2021-04-28CodeSnippets: fix type annotationsGravatar MarkKoz-4/+5
2021-04-28CodeSnippets: add more detail to the request error messageGravatar MarkKoz-2/+3
2021-04-28CodeSnippets: use a lower log level for 404 responsesGravatar MarkKoz-1/+2
Just cause a URL looks valid doesn't mean it will be valid, so a 404 is a normal and harmless error. Fixes #1553 Fixes BOT-Z4 Fixes BOT-Z8 Fixes BOT-Z9
2021-04-28CodeSnippets: avoid returning None when request raises an exceptionGravatar MarkKoz-10/+13
Move the exception handling to `on_message` to avoid writing a lot of None checks; `_fetch_response` is used multiple times in various places. Fixes #1554 Fixes BOT-Z7
2021-04-28Address error behavior update.Gravatar kosayoda-3/+3
BadUnionArgument sends command help after: https://github.com/python-discord/bot/pull/1434
2021-04-28Remove BrandingError check.Gravatar kosayoda-5/+0
This was removed in the branding manager rewrite: https://github.com/python-discord/bot/pull/1463/
2021-04-28Make flake8 happy :DGravatar rohan-1/+1
2021-04-28Use guild.afk_channel atr to retrieve afk Channel instance.Gravatar rohan-3/+1
2021-04-27Wait for cache to fill before redirectingGravatar Andi Qu-0/+1
2021-04-27Use a specific error message when a warned user isn't in the guildGravatar Matteo Bertucci-3/+15
This commit changes sighly how the warn, kick and mute commands to take a fetched member as their argument and to return a little error message if the user isn't in the guild rather than showing the whole help page.
2021-04-27Redirect to #bot-commands if the message's length is > 1000Gravatar Andi Qu-5/+16
2021-04-27Fixed the line limit and halved the char limitGravatar Andi Qu-1/+1
2021-04-27Merge two comments into oneGravatar Andi Qu-2/+1
Co-authored-by: Xithrius <[email protected]>
2021-04-25Wait for cache to be loaded before accesing member voice state and channels.Gravatar rohan-0/+1
2021-04-24Tests: simplify public flags handlingGravatar Matteo Bertucci-8/+2
Co_authored-by: Numerlor <[email protected]>
2021-04-22fix: Add a missing return statementGravatar ToxicKidz-0/+1
2021-04-21chore: Revert back to 'Due'Gravatar ToxicKidz-1/+1
2021-04-20chore: Use Embed.timestamp for showing when the reminder will be sentGravatar ToxicKidz-5/+8
2021-04-20Add the Moderators role to moderation_roles in configGravatar Joe Banks-0/+1
This allows mod alert pings to go through in #mod-alerts, the allowed mentions only included the mods team role which is not pinged on mod alerts.
2021-04-20Remove allowed mentions in modlog alertGravatar Boris Muratov-2/+1
The modlog alert embed no longer pings everyone.
2021-04-20Improve rediscache docGravatar Boris Muratov-1/+1
Co-authored-by: ChrisJL <[email protected]>
2021-04-20Tests: AsyncMock is now in the standard library!Gravatar Matteo Bertucci-1/+1
The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section.
2021-04-19Update bot/exts/moderation/infraction/superstarify.pyGravatar Vivaan Verma-1/+1
Co-authored-by: Boris Muratov <[email protected]>
2021-04-19Change type hint from duration to expiryGravatar Vivaan Verma-2/+2
2021-04-19Add default duration as constant and use Duration converterGravatar Vivaan Verma-4/+4
2021-04-19Inline duration assignmentGravatar Vivaan Verma-2/+1
Co-authored-by: Rohan Reddy Alleti <[email protected]>
2021-04-20Add method for suspending member's stream when revoking stream perms.Gravatar Rohan-4/+27
2021-04-19Add afk voice channel to constants.Gravatar Rohan-0/+2
2021-04-19Update comment in list stream for readibilityGravatar Chris-1/+1
2021-04-19CamelCase the cog nameGravatar Boris Muratov-3/+3
2021-04-19Improve the wording of the list streamers embedGravatar ChrisJL-1/+1
Co-authored-by: Matteo Bertucci <[email protected]>