aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | * | | | | | | | | | | | | | | | | | | _update_channel_topic not longer needs to be awaitedGravatar mbaruh2021-02-14-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's important to note that it's appropriate for the sync and action methods to have a lock between them, because if an action is made before syncing is complete it gets screwed and starts throwing excpetion for every command.
| | | | * | | | | | | | | | | | | | | | | | | Prevent channel description edit from locking commandsGravatar mbaruh2021-02-13-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because some parts are defined as atomic transaction, we can't use them with channel description edits which are heavily rate limited. Description edits are now run in a separate task.
| | | | * | | | | | | | | | | | | | | | | | | Status command displays verification levelGravatar mbaruh2021-02-13-0/+1
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Fixed on_messageGravatar mbaruh2021-02-13-8/+11
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Add option to schedule threshold resetGravatar mbaruh2021-02-13-16/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added optional argument to defcon threshold to specify for how long it should be on. The notifier will now run only when there is no expiry date specified.
| | | | * | | | | | | | | | | | | | | | | | | Defcon days is now defcon threshold with DurationDeltaGravatar mbaruh2021-02-13-41/+84
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Added cog check to only allow mods in the defcon channelGravatar mbaruh2021-02-13-5/+4
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Removed _build_defcon_message methodGravatar mbaruh2021-02-13-24/+15
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Added server shutdown and reopen commandsGravatar mbaruh2021-02-13-2/+24
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Reordered methodsGravatar mbaruh2021-02-13-18/+18
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Removed enabling and switched to redisGravatar mbaruh2021-02-13-132/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing self.enable and the defon & defoff commands. Defcon will now just be always 'on' and we can set the days threshold to 0 to turn it off. Switched from postgres to redis - if the data gets lost we should just reconfigure defcon again, it should not depend on the site.
| | | | * | | | | | | | | | | | | | | | | | | Defon doesn't reset the number of daysGravatar Boris Muratov2021-01-26-1/+1
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Merge branch 'mbaruh/defcon' of https://github.com/python-discord/bot into ↵Gravatar Boris Muratov2021-01-26-3222/+4337
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mbaruh/defcon
| | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into mbaruh/defconGravatar Boris Muratov2021-01-26-3222/+4337
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | | | | | | | | | | | | Added cog unloader to cancel notifierGravatar Boris Muratov2021-01-26-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | Moved channel topic change to _defcon_actionGravatar Boris Muratov2021-01-26-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | Moved self.enabled update to _defcon_actionGravatar Boris Muratov2021-01-26-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | Make the cog update even if write to DB failsGravatar Boris Muratov2021-01-26-3/+3
| | | | |/ / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The defcon cog should be functional even if there is some issue with writing to the DB for some reason. The functionality should have retention across restarts, but it shouldn't be its failing point. If necessary, it should be able to work with no DB at all
| | | | * | | | | | | | | | | | | | | | | / / / Added defcon status notifierGravatar mbaruh2020-10-30-1/+22
| | | | | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / | | | | |/| | | | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | | | | | | | | GrammarGravatar Chris2021-01-31-1/+1
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | | | | | | | | return true when tag is on cdGravatar Chris2021-01-31-3/+4
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | | | | Remove compatibility-none returns from filtersGravatar ks1292021-02-24-27/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't look good to have just None returns, so made changes so if function don't return tuple, then reason is automatically None.
| | | | | | | * | | | | | | | | | | | | | | | Move reason for guild filtering to footerGravatar ks1292021-02-20-3/+2
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | | | | Add comments about returning blacklist entry reasons to filtersGravatar ks1292021-02-17-3/+18
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | | | | Rename filter trigger reason from entry command to reasonGravatar ks1292021-02-17-2/+2
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | | | | Add missing None reason returns of filtersGravatar ks1292021-02-17-3/+3
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | * | | | | | | | | | | | | | | | Implement showing filterlist entry comment in alertsGravatar ks1292021-02-06-23/+40
| | |_|_|_|_|/ / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | |
| | | | | | | | | * | | | | | | | | | | | | Added Redis caching.Gravatar xithrius2021-03-07-0/+65
| | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | * Update error handler tests to match with recent changesGravatar ks1292021-02-19-9/+72
| | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | * Remove unnecessary ResponseCodeError suppressGravatar ks1292021-02-19-4/+2
| | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | * Remove verification channel special case from error handler testsGravatar ks1292021-02-19-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't have a verification channel anymore, so this have no point and this just give errors.
| | | | | | | | | | | | | | | | | | | | | * Merge branch 'master' into error-handler-testGravatar ks1292021-02-19-2907/+3859
| | | | | | | | | | | | | | | | | | | | | |\ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | Delete free.mdGravatar Senjan212021-02-19-5/+0
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasoning behind this is it is rarely used and when its used its often just to test something or as an attempt to close a help channel.
* | | | | | | | | | | | | | | | | | | | | Update DockerfileGravatar Joe Banks2021-02-14-1/+1
| | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | Merge pull request #1418 from python-discord/ks123/docker-git-shaGravatar Xithrius2021-02-14-5/+7
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move Git SHA defining at end of Dockerfile to re-enable caching
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into ks123/docker-git-shaGravatar Joe Banks2021-02-14-1/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | Merge pull request #1419 from python-discord/pypi-command-escape-markdownGravatar Xithrius2021-02-13-1/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Escaping markdown in the PyPi embed.
| * | | | | | | | | | | | | | | | | | | | | | Made flake8 even happier.Gravatar xithrius2021-02-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | Escaping markdown in all fields that are created.Gravatar xithrius2021-02-13-1/+2
|/ / / / / / / / / / / / / / / / / / / / / /
| * / / / / / / / / / / / / / / / / / / / / Move Git SHA defining at end of Dockerfile to re-enable cachingGravatar ks1292021-02-13-5/+7
|/ / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Defining SHA at the beginning of build breaks caching, so this should be avoided.
* | | | | | | | | | | | | | | | | | | | | Merge pull request #1416 from python-discord/pypi-commandGravatar ks1292021-02-13-6/+81
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creation of the PyPi command.
| * | | | | | | | | | | | | | | | | | | | | Taking only the first line of multiline fields.Gravatar xithrius2021-02-12-2/+7
| | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | Fixed conflicts.Gravatar xithrius2021-02-12-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | | | | | | | | | | Made docstring more specific.Gravatar Xithrius2021-02-12-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Shivansh-007 <[email protected]>
| * | | | | | | | | | | | | | | | | | | | | | Rotating colours in embed, title now links to package.Gravatar xithrius2021-02-12-5/+12
| | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | Added colours yellow, blue, and white.Gravatar xithrius2021-02-12-6/+12
| |/ / / / / / / / / / / / / / / / / / / / /
| * | | | | | | | | | | | | | | | | | | | | Moved hyperlink to title.Gravatar xithrius2021-02-12-2/+2
| | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | Finalized logic to account for null cases.Gravatar xithrius2021-02-12-3/+3
| | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | Accounting for completely empty fields that only contain whitespaces.Gravatar xithrius2021-02-12-1/+2
| | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | Empty fields have been accounted for by getting usually non-empty ones.Gravatar xithrius2021-02-12-7/+8
| | | | | | | | | | | | | | | | | | | | | |