| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This function will get re-used in _scheduled_task, but it will only
need to move a single channel. Therefore, to promote code re-use, this
change was made. The init_cog will instead do a loop to call this on
all channels in the in-use category.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* Remove await from create_channel_queue
* Call the correct function to create the name queue
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Make all in-use channels dormant if idle or schedule the move if still
active. This is intended to clean up the in-use channels when the bot
restarts and has lost the tasks it had scheduled in another life.
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Initialises the Available category with channels if any are missing.
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
It returns a queue of dormant channels in random order. The queue will
be used to get the next available channel.
Using a random order is simpler than trying to sort by the timestamp
of the most recent message in each channel and this decision will only
"negatively" impact the system when the bot restarts or the extension
is reloaded. Ultimately, it just means in such events some dormant
channels may chosen to become active again sooner than expected.
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The channels property of categories sorts the channels before returning
them.
* Add a generator function to get category channels
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
It returns a queue of element names to use for creating new channels,
taking into account which names are already being used.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This will prevent initialisation from proceeding when the category
channels fail to be retrieved.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
It's created as a task in __init__ because coroutines cannot be awaited
in there.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
As the categories are essential for the functionality of the cog, if
this function fails to get a category, it will remove/unload the cog.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The original category was re-purposed as the "in-use" category so that
deployment of the new system will not interrupt ongoing help sessions.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
- Remove unnecessary space from placeholder
- Rename `has_active_infraction` to `get_active_infraction`
|
| | | | | | | | |
| | | | | | | |
| | | | | | | | |
Co-authored-by: Leon Sandøy <[email protected]>
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
removed unnecessary type hint and added comment to kick truncation test about awaiting `kick`.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
fail. Also don't send DM in this case.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
`apply_infraction`.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
to avoid removing newlines.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
`end_msg`.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
reordered ModLog text.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
whole embed in `notify_infraction`.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
order of ModLog embed description item in same function.
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
to 1500, added shortening to end message too.
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
creating.
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
truncated for Audit Log.
|
| | | | | | | | | |
|
| | | | | | | | | |
|