aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-08-04Verification: ignore verification reminder message eventGravatar kwzrd-0/+3
2020-08-04Verification: add reminder cacheGravatar kwzrd-0/+5
2020-08-04Verification: comment message usesGravatar kwzrd-0/+3
2020-08-04Verification: add reminder ping message & frequencyGravatar kwzrd-0/+11
2020-08-04Verification: move time constants above messagesGravatar kwzrd-10/+10
Allows referencing the constants within the message bodies.
2020-08-04Verification: make authorization message ping core devsGravatar kwzrd-2/+3
2020-08-04Verification: schedule member update taskGravatar kwzrd-1/+12
Turns out that it's necessary to cancel the task manually. Otherwise, duplicate tasks can be running concurrently should the extension be reloaded.
2020-08-04Verification: add region comments & move property to topGravatar kwzrd-4/+17
Cog is getting large so let's allow collapsing related bits.
2020-08-04Verification: create task to update unverified membersGravatar kwzrd-0/+37
2020-08-04Verification: repurpose & rename `_check_users`Gravatar kwzrd-10/+8
Let's only use this function to check on the guild status. It can be exposed via a command in the future. Name adjusted to be more accurate w.r.t. Discord terminology.
2020-08-04Verification: implement `_verify_kick` helperGravatar kwzrd-0/+63
This will be used to guard the call to `_kick_members`.
2020-08-04Verification: implement `_kick_members` helperGravatar kwzrd-3/+21
2020-08-04Verification: implement `_give_role` helperGravatar kwzrd-2/+21
2020-08-04Verification: implement `check_users` coroutineGravatar kwzrd-1/+59
See docstring for details. The coroutine will be registered as a task at a later point.
2020-08-04Verification: define time constantsGravatar kwzrd-0/+3
2020-08-04Verification: refactor `discord` importsGravatar kwzrd-11/+13
Let's access these via the qualified name. The amount of imported names was starting to get unwieldy.
2020-08-04Verification: add @Unverified role to configGravatar kwzrd-2/+3
2020-08-02Verification: send initial message on member joinGravatar kwzrd-1/+11
2020-08-02Verification: adjust & rename welcome messageGravatar kwzrd-3/+3
Let's give it a better name so that it's clear when this message is sent. The initial words are adjusted to avoid repetition after the on join message.
2020-08-02Verification: add initial on join messageGravatar kwzrd-0/+7
This message will be sent via direct message to each user who joins the guild.
2020-07-31Remove superfluous Available help channels.Gravatar Leon Sandøy-4/+12
This adds a little bit of logic to the Help Channel `init_available` coroutine, which runs when the cog loads. This ensures that if there are more help channels in available than there should be, we remove the superfluos ones. Previously, if the bot started with too many channels, it would maintain and defend that excessive amount. This is because we never actually count the number of channels before adding in new available channels whenever one disappears. If we ever get too many available channels in the future, this can be solved by simply reloading this cog.
2020-07-30Use full flag name for case-insensitivityGravatar Senjan21-1/+1
requested by lemon
2020-07-30Missed `?` in regex.Gravatar Senjan21-1/+1
2020-07-30Use non-capturing group instead.Gravatar Senjan21-1/+1
2020-07-30Change regex so it catches new discord URLGravatar Senjan21-1/+1
2020-07-30Fix channel moving incase `message.pin` failsGravatar Senjan21-0/+2
2020-07-29Don't ping everyone when tripping filter in DMs.Gravatar Leon Sandøy-1/+1
We don't need a ping in #mod-alerts whenever someone is tripping a filter (like invites or bad language) in a DM to the bot. We can still send an embed, so that we can action it, but there is no urgent need to respond if it's just a direct message to the bot. This is particularly true now that we have #dm-log.
2020-07-28Handle message unpinning betterGravatar ks129-2/+5
2020-07-28correct import orderGravatar Senjan21-1/+1
2020-07-28fix poll command by using clean_content converterGravatar Senjan21-2/+2
2020-07-28Allow specifying a channel to send !embed embedsGravatar kosayoda-3/+7
2020-07-27Update IDs of Code Jam rolesGravatar Sebastiaan Zeeff-2/+2
I've updated the IDs of the two Code Jam Roles to the newly create roles we have.
2020-07-24Fix: Implicit string concatenation considered harmfulGravatar kosayoda-4/+1
Python joins two string adjacent string literals implicitly, which may cause unintended side effects when used with certain string methods. >>> 'A' ' '.join(['1', '2', '3']) '1A 2A 3'
2020-07-23Disabled burst_shared filter temporarilyGravatar Joe Banks-4/+0
2020-07-22Charinfo: correct char limit used in error messageGravatar Mark-1/+1
Co-authored-by: Kieran Siek <[email protected]>
2020-07-23Check that embed desc is not Empty before stripping.Gravatar kosayoda-2/+5
2020-07-22Charinfo: up char limit and reduce line limitGravatar MarkKoz-4/+4
Pagination means more characters can be supported without cluttering anything. It also means infinite lines, so there's no longer a need to squeeze out the most from a single page. Reducing the line limit leads to a smaller, tidier presentation.
2020-07-22Charinfo: use more descriptive field name Gravatar Mark-1/+1
Since the raw field is displayed on every page, but pages are incomplete, it may be unclear whether the field's value is for the current page or for all pages. Co-authored-by: Kieran Siek <[email protected]>
2020-07-22Jam tests: use the MAX_CHANNELS constant moreGravatar MarkKoz-4/+4
It's clearer to write MAX_CHANNELS - 2 than a literal 48.
2020-07-22Jam tests: assert equality of new categoryGravatar MarkKoz-1/+2
2020-07-22Jam tests: add subtests to non-existent category testGravatar MarkKoz-7/+18
The test has to account for not only the name not matching, but also a lack of available spaces for new channels.
2020-07-22Jam tests: fix category testGravatar MarkKoz-14/+24
2020-07-22Jams: create a new category if others are fullGravatar MarkKoz-20/+31
2020-07-22Jam Tests: space out lines for readabilityGravatar MarkKoz-0/+6
2020-07-22Jam Tests: remove default_args attributeGravatar MarkKoz-4/+3
Kind of redundant since it's only used by two tests.
2020-07-22Jam Tests: re-arrange tests to follow definition order in the cogGravatar MarkKoz-10/+10
2020-07-22Jam Tests: fix utils patchGravatar MarkKoz-4/+5
stop needs to be called on the patcher, not the mock. Furthermore, using addCleanup is safer than tearDown because the latter may not be called if an exception is raised in setUp.
2020-07-21Charinfo: paginate the resultsGravatar MarkKoz-6/+6
Pagination ensures the results will never go over the char limit for an embed. Fixes #897 Fixes BOT-3D
2020-07-21Charinfo: use send_denial helperGravatar MarkKoz-13/+7
2020-07-21Use max_units for time since join in user command instead of precisionGravatar Joe Banks-1/+1