aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
* | | Verification: schedule ping taskGravatar kwzrd2020-08-05-3/+5
| | |
* | | Verification: implement unverified role ping taskGravatar kwzrd2020-08-05-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | We're making good use of d.py's tasks framework. RedisCache is used to persist the reminder message ids, which can conveniently be converted into timestamps. It is therefore trivial to determine the time to sleep before the first ping. After that, the bot simply pings every n hours.
* | | Verification: ignore verification reminder message eventGravatar kwzrd2020-08-04-0/+3
| | |
* | | Verification: add reminder cacheGravatar kwzrd2020-08-04-0/+5
| | |
* | | Verification: comment message usesGravatar kwzrd2020-08-04-0/+3
| | |
* | | Verification: add reminder ping message & frequencyGravatar kwzrd2020-08-04-0/+11
| | |
* | | Verification: move time constants above messagesGravatar kwzrd2020-08-04-10/+10
| | | | | | | | | | | | Allows referencing the constants within the message bodies.
* | | Verification: make authorization message ping core devsGravatar kwzrd2020-08-04-2/+3
| | |
* | | Verification: schedule member update taskGravatar kwzrd2020-08-04-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.
* | | Verification: add region comments & move property to topGravatar kwzrd2020-08-04-4/+17
| | | | | | | | | | | | Cog is getting large so let's allow collapsing related bits.
* | | Verification: create task to update unverified membersGravatar kwzrd2020-08-04-0/+37
| | |
* | | Verification: repurpose & rename `_check_users`Gravatar kwzrd2020-08-04-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.
* | | Verification: implement `_verify_kick` helperGravatar kwzrd2020-08-04-0/+63
| | | | | | | | | | | | This will be used to guard the call to `_kick_members`.
* | | Verification: implement `_kick_members` helperGravatar kwzrd2020-08-04-3/+21
| | |
* | | Verification: implement `_give_role` helperGravatar kwzrd2020-08-04-2/+21
| | |
* | | Verification: implement `check_users` coroutineGravatar kwzrd2020-08-04-1/+59
| | | | | | | | | | | | | | | See docstring for details. The coroutine will be registered as a task at a later point.
* | | Verification: define time constantsGravatar kwzrd2020-08-04-0/+3
| | |
* | | Verification: refactor `discord` importsGravatar kwzrd2020-08-04-11/+13
| | | | | | | | | | | | | | | Let's access these via the qualified name. The amount of imported names was starting to get unwieldy.
* | | Verification: add @Unverified role to configGravatar kwzrd2020-08-04-2/+3
| | |
* | | Verification: send initial message on member joinGravatar kwzrd2020-08-02-1/+11
| | |
* | | Verification: adjust & rename welcome messageGravatar kwzrd2020-08-02-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.
* | | Verification: add initial on join messageGravatar kwzrd2020-08-02-0/+7
|/ / | | | | | | | | This message will be sent via direct message to each user who joins the guild.
* | Remove superfluous Available help channels.Gravatar Leon Sandøy2020-07-31-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.
* | Merge pull request #1073 from python-discord/fix/webhook_removerGravatar Leon Sandøy2020-07-30-1/+1
|\ \ | | | | | | Change regex so it catches new discord URL
| * | Use full flag name for case-insensitivityGravatar Senjan212020-07-30-1/+1
| | | | | | | | | | | | requested by lemon
| * | Missed `?` in regex.Gravatar Senjan212020-07-30-1/+1
| | |
| * | Use non-capturing group instead.Gravatar Senjan212020-07-30-1/+1
| | |
| * | Change regex so it catches new discord URLGravatar Senjan212020-07-30-1/+1
|/ /
* | Merge pull request #1072 from python-discord/fix/message_pinGravatar Sebastiaan Zeeff2020-07-30-0/+2
|\ \ | | | | | | Fix channel moving incase `message.pin` fails
| * | Fix channel moving incase `message.pin` failsGravatar Senjan212020-07-30-0/+2
|/ /
* | Merge pull request #1071 from python-discord/no_mod_alert_ping_for_dmsGravatar Dennis Pham2020-07-29-1/+1
|\ \ | | | | | | Don't ping everyone in #mod-alerts when tripping filter via DMs.
| * | Don't ping everyone when tripping filter in DMs.Gravatar Leon Sandøy2020-07-29-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.
* | Merge pull request #1023 from ks129/help-channels-pinGravatar Mark2020-07-28-0/+24
|\ \ | | | | | | Help System: Implement question message pinning
| * \ Merge branch 'master' into help-channels-pinGravatar Mark2020-07-28-481/+2396
| |\ \ | |/ / |/| |
* | | Merge pull request #1069 from python-discord/fix/pollGravatar scragly2020-07-29-2/+2
|\ \ \
| * | | correct import orderGravatar Senjan212020-07-28-1/+1
| | | |
| * | | fix poll command by using clean_content converterGravatar Senjan212020-07-28-2/+2
|/ / /
* | | Allow specifying a channel to send !embed embedsGravatar kosayoda2020-07-28-3/+7
| | |
* | | Update IDs of Code Jam rolesGravatar Sebastiaan Zeeff2020-07-27-2/+2
| | | | | | | | | | | | I've updated the IDs of the two Code Jam Roles to the newly create roles we have.
* | | Fix: Implicit string concatenation considered harmfulGravatar kosayoda2020-07-24-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'
* | | Merge pull request #1064 from python-discord/bug/1036/empty-embed-fieldsGravatar Dennis Pham2020-07-23-2/+5
|\ \ \ | | | | | | | | Check that embed desc is not Empty before stripping.
| * \ \ Merge branch 'master' into bug/1036/empty-embed-fieldsGravatar Dennis Pham2020-07-23-65/+88
| |\ \ \ | |/ / / |/| | |
* | | | Disabled burst_shared filter temporarilyGravatar Joe Banks2020-07-23-4/+0
| | | |
* | | | Merge pull request #1062 from python-discord/bug/util/897/truncate-charinfoGravatar Mark2020-07-22-21/+15
|\ \ \ \ | | | | | | | | | | Truncate charinfo results
| * \ \ \ Merge branch 'master' into bug/util/897/truncate-charinfoGravatar Mark2020-07-22-25/+234
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Merge pull request #1063 from python-discord/bug/util/jams-multi-categoriesGravatar Mark2020-07-22-40/+73
|\ \ \ \ \ | | | | | | | | | | | | Support multiple categories for code jam team creation
| * | | | | Jam tests: use the MAX_CHANNELS constant moreGravatar MarkKoz2020-07-22-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | It's clearer to write MAX_CHANNELS - 2 than a literal 48.
| * | | | | Jam tests: assert equality of new categoryGravatar MarkKoz2020-07-22-1/+2
| | | | | |
| * | | | | Jam tests: add subtests to non-existent category testGravatar MarkKoz2020-07-22-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test has to account for not only the name not matching, but also a lack of available spaces for new channels.
| * | | | | Jam tests: fix category testGravatar MarkKoz2020-07-22-14/+24
| | | | | |