aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | Added dynamic available help channels messageGravatar xithrius2021-02-04-0/+48
| | | | |
| * | | | Added how_to_get_help constant.Gravatar xithrius2021-02-04-0/+2
|/ / / /
* | | | Merge pull request #1378 from PH-KDX/patch-1Gravatar Matteo Bertucci2021-02-03-0/+3
|\ \ \ \ | | | | | | | | | | Create voice.md
| * \ \ \ Merge branch 'master' into patch-1Gravatar Matteo Bertucci2021-02-03-349/+444
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Merge pull request #1313 from HassanAbouelela/fix-voiceban-member-bugGravatar Senjan212021-02-03-14/+52
|\ \ \ \ \ | | | | | | | | | | | | Adds Member Checks Before Changing Voice
| * | | | | Updates Apply Infraction DocstringGravatar Hassan Abouelela2021-01-21-0/+1
| | | | | |
| * | | | | Restructures Voice Ban ActionGravatar Hassan Abouelela2021-01-21-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the voice ban action so the infraction pardoning is always run, and so all operations are handled in the _scheduler. Updates tests.
| * | | | | Merge branch 'master' into fix-voiceban-member-bugGravatar Hassan Abouelela2021-01-20-1421/+2007
| |\ \ \ \ \
| * | | | | | Cleans Up TestsGravatar Hassan Abouelela2021-01-20-5/+5
| | | | | | |
| * | | | | | Adds Member Checks Before Changing VoiceGravatar Hassan Abouelela2020-11-30-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a check that checks if the user object is an instance of guild member, before performing guild operations. Adds tests. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Merge pull request #1395 from python-discord/wookie184-floats-tagGravatar Xithrius2021-02-03-0/+20
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Add tag on float imprecision
| * | | | | | | Mention math.isclose and add an exampleGravatar wookie1842021-02-03-4/+5
| | | | | | | |
| * | | | | | | Add tag on float imprecisionGravatar wookie1842021-02-02-0/+19
|/ / / / / / / | | | | | | | | | | | | | | Adds a tag on float imprecision
* | | | | | | Merge pull request #1390 from ChrisLovering/Handle-OverflowErrorsGravatar Xithrius2021-02-01-1/+1
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | Protect against overflows caused by large expirations
| * | | | | | Merge branch 'master' into Handle-OverflowErrorsGravatar Xithrius2021-02-01-2/+4
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
* | | | | | | Make sure that restrictions also applies to moderatorsGravatar Matteo Bertucci2021-01-30-2/+4
| | | | | | | | | | | | | | | | | | | | | Without this, if a moderator add a reaction to any message, all the messages currently listening for reaction will pass the check since the user has a moderation role.
| * | | | | | Protect against overflows caused by large expirationsGravatar Chris2021-01-30-1/+1
|/ / / / / /
* | | | | | Merge PR #1388 - gracefully handle non-existing infractionsGravatar Mark2021-01-29-1/+7
|\ \ \ \ \ \
| * | | | | | Remove ConversionError from comment, as its now handled above.Gravatar Chris2021-01-29-1/+1
| | | | | | |
| * | | | | | handle within the error handlerGravatar Chris2021-01-29-4/+7
| | | | | | |
| * | | | | | catch the response error and deal with itGravatar Chris2021-01-28-1/+4
| | | | | | |
* | | | | | | Merge pull request #1358 from python-discord/trashcan-modsGravatar Hassan Abouelela2021-01-29-4/+16
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Make sure that moderators can interact with trashcans and restrict paginator usage
| * | | | | | Merge branch 'master' into trashcan-modsGravatar Hassan Abouelela2021-01-29-558/+617
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Merge branch 'trashcan-mods' of github.com:python-discord/bot into trashcan-modsGravatar Matteo Bertucci2021-01-24-59/+983
| |\ \ \ \ \ \
| | * \ \ \ \ \ Merge branch 'master' into trashcan-modsGravatar Xithrius2021-01-19-59/+983
| | |\ \ \ \ \ \
| * | | | | | | | Make sure that the paginator doesn't choke on DMsGravatar Matteo Bertucci2021-01-24-1/+2
| |/ / / / / / /
| * | | | | | | Restrict paginator usage to the author and moderatorsGravatar Matteo Bertucci2021-01-17-4/+11
| | | | | | | |
| * | | | | | | Add an allow_moderation_roles argument to the wait_for_deletion() utilGravatar Matteo Bertucci2021-01-16-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `allow_moderation_roles` bool can be specified to allow anyone with a role in `MODERATION_ROLES` to delete the message.
| | | | | * | | Rename voice.md to voice-verification.mdGravatar PH-KDX2021-01-23-0/+0
| | | | | | | |
| | | | | * | | Create voice.mdGravatar PH-KDX2021-01-22-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This tag would provide info for users which are not voice-verified, so that they can easily be directed toward the appropriate channel.
| | | | | | * | "handle converting" -> "convert ... for you". Gravatar Steele Farnsworth2021-02-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per Gustav's suggestion. Co-authored-by: Gustav Odinger <[email protected]>
| | | | | | * | Removed extra blank line. Gravatar Steele Farnsworth2021-02-06-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It added more vertical white space than was wanted. Co-authored-by: Gustav Odinger <[email protected]>
| | | | | | * | New example to emphasize the mapping functionality rather than filtering.Gravatar swfarnsworth2021-02-06-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the example only conveyed how the `if` statement of list comps could be used to filter a list, whereas the mapping functionality is what people primarily use list comps for.
| | | | | | * | More robust example with no reference to Python versions or `str.format`.Gravatar swfarnsworth2021-02-06-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The example emphasizes that you can evaluate expressions in the curly braces. Python 3.5 has already reached EOL, so anyone who doesn't have f-strings at this point is probably running 2.7 anyway. I also removed the information about `str.format` to reduce the scope.
| | | | | | * | Rewrite to use simpler examples.Gravatar swfarnsworth2021-02-06-14/+9
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | The previous examples might have been confusing for some readers. I also removed the part about inverting a dict because I think that's out of scope and would require more explanation given all the consequences that could have.
| | | | | | * 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
| | | | | | |