aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
* | | | | | | | | | | | | | | | | | | | | | | | | Merge pull request #1428 from python-discord/wookie184-tag-updatesGravatar Xithrius2021-02-25-14/+7
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pep 8 and inline-codeblock tag updates
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into wookie184-tag-updatesGravatar Xithrius2021-02-25-11/+73
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | | | Add pep 8 song to pep 8 tagGravatar wookie1842021-02-22-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | | | Rewrite inline codeblock tagGravatar wookie1842021-02-22-12/+3
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | | | Removes Unused VariableGravatar Hassan Abouelela2021-02-25-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | | | | | | | | Call Super __init__ in Startup ErrorGravatar Hassan Abouelela2021-02-25-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Matteo Bertucci <[email protected]>
| | | | * | | | | | | | | | | | | | | | | | | | | Cleans Up Startup Error Handler Code StyleGravatar Hassan Abouelela2021-02-25-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Akarys42 <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | | | | | | | | Catches All Site Startup IssuesGravatar Hassan Abouelela2021-02-25-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a missing exception when trying to connect to the site on startup. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | | | | | | | | Adds Site Readiness ChecksGravatar Hassan Abouelela2021-02-25-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempts to connect to the site multiple times before throwing an exception to allow the site to warm up when running in docker. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | | | | | | | | Adds More Descriptive Startup Error MessagesGravatar Hassan Abouelela2021-02-25-5/+32
| |_|_|/ / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | | | | | | | | | | | | | | | Merge pull request #1409 from HassanAbouelela/insensitive-otn-searchGravatar Senjan212021-02-25-11/+32
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes Off Topic Name Search Insensitive
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into insensitive-otn-searchGravatar Senjan212021-02-25-27/+188
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | | Merge pull request #1433 from python-discord/etiquette-off-topic-tagGravatar Senjan212021-02-25-0/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | Add the off-topic etiquette to the off-topic tag
| * | | | | | | | | | | | | | | | | | | | | | | | Add off-topic etiquette to the off-topic tagGravatar Matteo Bertucci2021-02-24-0/+2
|/ / / / / / / / / / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | | | | | | | | | Fixes Problems With Help Channel DMGravatar Hassan Abouelela2021-02-23-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | | | | | | | | | | | | | | | Merge pull request #1429 from python-discord/dm-on-open-help-channelGravatar Xithrius2021-02-23-0/+38
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | DM on open help channel
| * | | | | | | | | | | | | | | | | | | | | | | Use textwrap.shorten instead of custom functionGravatar Gustav Odinger2021-02-23-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies to the help channel DM embed, where the user is sent a truncated version of their message.
| * | | | | | | | | | | | | | | | | | | | | | | Update embed field title to be more formalGravatar Gustav Odinger2021-02-23-1/+1
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Send DM when user claims help channelGravatar Gustav Odinger2021-02-23-0/+1
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Add green question mark to default configGravatar Gustav Odinger2021-02-23-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add green question mark to default config Add green question mark to config
| * | | | | | | | | | | | | | | | | | | | | | | Add function to DM users when opening help channelGravatar Gustav Odinger2021-02-23-0/+33
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Add truncate_message utilGravatar Gustav Odinger2021-02-23-0/+9
|/ / / / / / / / / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | | | | | | | | Update max available channels to 3Gravatar Joe Banks2021-02-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially resolves #1427
* | | | | | | | | | | | | | | | | | | | | | | Update token remover unittestsGravatar Matteo Bertucci2021-02-21-2/+2
| | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | Ping the mods if a token present in the server is found no matter the kindGravatar Matteo Bertucci2021-02-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | Show the last three characters of censored tokensGravatar Matteo Bertucci2021-02-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | Merge pull request #1404 from python-discord/ks123/duplicates-ignore-attachmentsGravatar Boris Muratov2021-02-20-1/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore attachment-only messages for duplicates antispam rule
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into ks123/duplicates-ignore-attachmentsGravatar Boris Muratov2021-02-20-59/+213
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | Update CODEOWNERSGravatar Boris Muratov2021-02-20-1/+5
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Set max attachment from 3 -> 6Gravatar ks1292021-02-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Remove attachments check in duplicates filterGravatar ks1292021-02-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Lower max attachments per 10 seconds to 3Gravatar ks1292021-02-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | Ignore attachment-only messages for duplicates antispam ruleGravatar ks1292021-02-06-0/+1
| | |_|/ / / / / / / / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | | | | | | Makes Off Topic Name Search Case InsensitiveGravatar Hassan Abouelela2021-02-09-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modifies the off topic channel name search to match upper and lower cased letters, as well as punctuation. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | | | | | | | | | | | | | | | | | | | | Moves Off Topic Name TranslatorGravatar Hassan Abouelela2021-02-09-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Breaks out the off topic name translation functionality into its own function. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * | | | | | | | | | | | | | | | | | | Merge branch 'mbaruh/defcon' of https://github.com/python-discord/bot into ↵Gravatar mbaruh2021-03-02-12/+19
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mbaruh/defcon
| | | | | * | | | | | | | | | | | | | | | | | | Provide default cache values when syncingGravatar Boris Muratov2021-03-01-2/+2
| | | | | | | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | Change to handle specifically redis errorsGravatar Boris Muratov2021-03-01-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea to ignore alerts on fake redis didn't solve the problem completely, because sometimes you'll just develop with a real redis. It also didn't solve the ping we would get on first start up. After looking into it there seems like there's no actual reason to alert on key errors, as they should only happen if the cache gets wiped for some reason, which shouldn't happen, but in which case we have bigger issues. Alerts are therefore limited to connection errors raised by redis. This additionally handles only redis errors when writing to it as well. If any other error is raised it is ok for the function to stop at that point, as all variables have already been set. The only thing which doesn't get executed is the confirmation message and logging, the lack of which is an exception message in itself.
| | | | | * | | | | | | | | | | | | | | | | | | Sync alert won't trigger with fake redisGravatar Boris Muratov2021-02-26-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The alert will trigger with fake redis on every bot startup even when people aren't working on the defcon cog. Added a condition to check if fake redis is being used.
| | | | | * | | | | | | | | | | | | | | | | | | Changed name of _duration_parser constant to uppercaseGravatar Boris Muratov2021-02-26-2/+2
| | | | | | | | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | | | | | | | Supressing any exceptions while updating the threshold in redisGravatar Boris Muratov2021-02-26-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating redis might cause an error, making sure it doesn't stop the command mid-way
| | | | * | | | | | | | | | | | | | | | | | | | Improved docstring for threshold command.Gravatar mbaruh2021-03-02-1/+8
| | | | |/ / / / / / / / / / / / / / / / / / /
| | | | * | | | | | | | | | | | | | | | | | | Retain 'd' alias for threshold commandGravatar mbaruh2021-02-19-1/+1
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Error to load settings will send the traceback to the channelGravatar mbaruh2021-02-19-0/+2
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Threshold has false-y value when set to 0Gravatar mbaruh2021-02-17-15/+20
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Error loading settings will also ping devops roleGravatar mbaruh2021-02-17-1/+5
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Gave more meaningful name and description to the cacheGravatar mbaruh2021-02-17-5/+8
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Changed server command to work with new defcon cogGravatar mbaruh2021-02-17-6/+7
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Renamed _defcon_action to _update_threshold and updated docstringGravatar mbaruh2021-02-14-4/+4
| | | | | | | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | | | | | | Removed cog check, shutdown restricted to adminsGravatar mbaruh2021-02-14-4/+5
| | | | | | | | | | | | | | | | | | | | | | |