aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-10-18Fix grammar of voice ban pardoning messageGravatar ks129-2/+2
Co-authored-by: Joe Banks <[email protected]>
2020-10-18Remove unnecessary logging about user not foundGravatar ks129-2/+1
Co-authored-by: Joe Banks <[email protected]>
2020-10-17Allow !eval in #code-help-voice-2Gravatar Matteo Bertucci-1/+3
2020-10-17Use filter role whitelist for all filter featuresGravatar Sebastiaan Zeeff-4/+3
We were using different whitelists for different filters, making it slightly more difficult to maintain the role whitelists. They now all use the same list, which combines our staff roles with the Python community role and the sprinters role. Signed-off-by: Sebastiaan Zeeff <[email protected]>
2020-10-17Add sprinters role to filter whitelistGravatar Sebastiaan Zeeff-0/+9
I've added the sprinters role to the filter whitelist. This will not affect antispam and antimalware just yet, as they currently default to using the STAFF_ROLES constant. I've also kaizened the config-default.yml file by ensuring there are two linebreaks between all sections. Signed-off-by: Sebastiaan Zeeff <[email protected]>
2020-10-17Verification: avoid logging whole kick note payloadGravatar kwzrd-1/+1
Only the `member` is variable, no need to log the rest. Co-authored-by: Numerlor <[email protected]>
2020-10-16display inf id actioned in mod channelGravatar mbaruh-2/+2
2020-10-15Snekbox: raise paste character lengthGravatar MarkKoz-1/+1
It doesn't make sense for it to be at 1000 when the code gets truncated to 1000 as well. Fixes #1239
2020-10-15Verification: simplify kick note reasonGravatar kwzrd-1/+1
This will make it much easier to filter out verification kicks when querying the infraction database.
2020-10-14Code block: fix _fix_indentation failing for line counts of 1Gravatar MarkKoz-0/+4
This could be reproduced by editing a tracked message to a single line of invalid Python that lacks any back ticks. The code was assuming there would be multiple lines because that's what the default value for the threshold is, but this threshold is not applied to edited messages. Fixes BOT-A5
2020-10-14Utils: clarify why has_lines counts by splitting by newlinesGravatar MarkKoz-0/+1
2020-10-13Remove trailing whitespace from verification.pyGravatar Joe Banks-1/+1
2020-10-13Fix channel constantGravatar Joe Banks-1/+1
2020-10-13Add production debug log for native verificationGravatar Joe Banks-0/+10
2020-10-13Verification: add notes to kicked usersGravatar kwzrd-0/+1
2020-10-13Verification: implement kick note post helperGravatar kwzrd-0/+23
2020-10-13Fixed hardcoded prefix in __main__.pyGravatar spitfire-hash-1/+1
2020-10-11Fix linting for voice gate and voice banGravatar ks129-5/+4
2020-10-11Add production voice gate role and channel to configurationGravatar ks129-0/+2
2020-10-11Create test for voice unban fail send DMGravatar ks129-0/+15
2020-10-11Create base test for voice unbanGravatar ks129-0/+18
2020-10-11Create test for voice ban pardon when user not foundGravatar ks129-0/+7
2020-10-11Shorten voice ban reason and create test for itGravatar ks129-0/+20
2020-10-11Add Voice Ban test about calling apply_infractionGravatar ks129-0/+15
2020-10-11Create test for voice ban applying role remove ignore.Gravatar ks129-0/+15
2020-10-11Check arguments for get_active_infraction in voice ban testsGravatar ks129-1/+1
2020-10-11Create test to check does this pass proper kwargs to infraction postingGravatar ks129-0/+12
2020-10-11Create test for case when posting infraction failsGravatar ks129-1/+12
2020-10-11Revert recent walrus operator changeGravatar ks129-1/+2
2020-10-11Create test for case when user already have active Voice BanGravatar ks129-2/+11
2020-10-11Simplify post infraction calling and None checkGravatar ks129-2/+1
2020-10-11Create test for case when trying to voice ban user who haven't passed gateGravatar ks129-2/+11
2020-10-11Create test for voice unbanGravatar ks129-0/+6
2020-10-11Create test for temporary voice banGravatar ks129-1/+7
2020-10-11Create test for permanent voice banGravatar ks129-0/+17
2020-10-11Improve voice gate messages deletionGravatar ks129-2/+8
2020-10-11Suppress Voice Gate cog InWhiteListCheckFailureGravatar ks129-0/+6
2020-10-11Implement Voice Verifying command and delete message in voice gateGravatar ks129-1/+111
2020-10-11Remove not used importsGravatar ks129-1/+0
2020-10-11Implement voice bans (temporary and permanent)Gravatar ks129-0/+85
2020-10-11Add voice ban icons and show appeal footer for voice banGravatar ks129-1/+2
2020-10-11Add Metricity DB URL to site (docker-compose.yml)Gravatar ks129-0/+1
2020-10-10Duckpond: Add a list of already ducked messagesGravatar Matteo Bertucci-1/+3
Previously race conditions caused the messages to be processed again before knowing the white check mark reaction got added, this seems to solve it
2020-10-10Add voice gate configuration to config-default.ymlGravatar ks129-0/+6
2020-10-10Define Voice Gate channel, role and requirement in constants.pyGravatar ks129-0/+10