aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-10-18Remove test for case when user don't have VV for voice banGravatar ks129-8/+0
2020-10-18Fix too long lines for Voice GateGravatar ks129-2/+9
2020-10-18Use .title() instead of .capitalize()Gravatar ks129-1/+1
2020-10-18Update formatting of voice gate failing embedGravatar ks129-7/+4
2020-10-18Fix grammar of fail messages of Voice GateGravatar ks129-2/+2
2020-10-18Remove _ from infraction type when sending back resultGravatar ks129-6/+6
2020-10-18Remove checking does user have voice verified role for voice banGravatar ks129-4/+0
Co-authored-by: Joe Banks <[email protected]>
2020-10-18Fix grammar and wording of Voice Gate + Voice BanGravatar ks129-7/+7
Co-authored-by: Joe Banks <[email protected]>
2020-10-18Change message that say to user that he get response to DMGravatar ks129-1/+1
2020-10-18Rework how voice gate do checksGravatar ks129-24/+18
2020-10-18Fix voice ban command name in testGravatar ks129-1/+1
2020-10-18Use embeds instead of normal messages and send to DM insteadGravatar ks129-10/+27
2020-10-18Update tests to not automatically adding back verified after vban expireGravatar ks129-3/+0
2020-10-18Fix user not found info field testGravatar ks129-1/+1
2020-10-18Don't add Voice Verified role automatically backGravatar ks129-4/+0
2020-10-18Give user free pass when user don't have verified time in metricityGravatar ks129-1/+4
2020-10-18Fix grammar of voice verifing messageGravatar ks129-1/+1
Co-authored-by: Joe Banks <[email protected]>
2020-10-18Fix name and aliases of voice ban commandGravatar ks129-2/+2
Co-authored-by: Joe Banks <[email protected]>
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