| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | | |
Makes them easier to identify when debugging.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a major change which simplifies the interface. It removes the
need to implement an abstract method, which means the class can now
be instantiated rather than subclassed.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Each instance now requires a name to be specified, which will be used
as the suffix of the logger's name. This removes the need to manually
prepend every log message with the name.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Let's continue to use "@everyone" for now, and add an explicit allow for
it so that it successfully pings people.
There's a full justification for this in the pull request.
https://github.com/python-discord/bot/issues/1038
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This comment violates the DRY principle.
Co-authored-by: Sebastiaan Zeeff <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now that we're running Discord 1.4.0a, we need to explicitely allow all
the role mentions for sends that don't use ping one of the globally
whitelisted role pings, which are Moderators, Admins and Owners.
We were pinging roles other than Mods+ in exactly two cases:
- Inside the Syncers, whenever we ask for sync confirmation (if the
number of roles or users to sync is unusually high)
- In the help_channels.py system, whenever we max out help channels and
are unable to create more.
This commit addresses both of these.
GitHub #1038
https://github.com/python-discord/bot/issues/1038
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of pinging @everyone, let's just ping the people who actually
need to see the mod alerts or the modlogs, which would be the mods.
`@everyone` is currently not permitted by our allowed_mentions setting,
so this also restores pings to those channels.
GitHub #1038
https://github.com/python-discord/bot/issues/1038
|
| |\ \ \
| | | |
| | | | |
Add range-len tag
|
| | |\ \ \
| |/ / /
|/| | | |
|
| | |_|/
|/| |
| | |
| | | |
Fixes BOT-6T
|
| | | |
| | |
| | | |
Removed all blank lines to improve how it's rendered on Discord; thanks @kwzrd for rendering this!
|
| | | | |
|
| |/ / |
|
| | |
| |
| |
| | |
Forgot to do this after removing editable.
|
| | |
| |
| |
| | |
It may be causing it to not be cached in Azure.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
This was open to abuse when the bot relayed user input.
|
| |\ \
| | |
| | | |
ModLog: fix AttributeError in on_member_update
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Implement the Slowmode cog
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |\ \ \
| | | | |
| | | | |
| | | | | |
feat/util/1019/slowmode
|
| | | |\ \ \
| |_|/ / /
|/| | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |\ \ \ \
| |/ / / /
|/| / / /
| |/ / / |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This makes sure the log will be made, since the operations executed are now below it.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The DurationDelta converter will allow the Slowmode cog to use a formatted timestamp instead of an integer representing seconds. I created a new converter because the Duration converter returned a datetime.datetime object, instead of a time delta.
Joe mentioned that I could just subtract the datetime.datetime object from datetime.utcnow(), but there is a small delay between conversion and when the function is actually executed.
This caused something like `!slowmode set #python-general 5s` to set the slowmode delay to 4 seconds instead of 5.
Now, with this new converter, the set command can be invoked using a formatted timestamp like so: `!slowmode set #python-general 4h23M19s`. This would set the slowmode delay in #python-general to 4 hours, 23 minutes, and 19 seconds.
Of course that delay would be quite overkill for #python-general, but that's just for the sake of this example.
|