| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | | | | | | Constants: add a help channel name prefix constant | 2020-03-22 | -1/+5 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: implement create_channel_queue | 2020-03-22 | -2/+15 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| | * | | | | | | | HelpChannels: only yield text channels from a category | 2020-03-22 | -2/+2 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: retrieve category channels more efficiently | 2020-03-22 | -7/+15 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The channels property of categories sorts the channels before returning them. * Add a generator function to get category channels | ||||
| | * | | | | | | | HelpChannels: implement create_name_queue | 2020-03-22 | -1/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It returns a queue of element names to use for creating new channels, taking into account which names are already being used. | ||||
| | * | | | | | | | HelpChannels: add a function to return used channel names | 2020-03-22 | -0/+13 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: set a ready event when cog initialisation completes | 2020-03-22 | -0/+3 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: cancel the init task when unloading the cog | 2020-03-22 | -1/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will prevent initialisation from proceeding when the category channels fail to be retrieved. | ||||
| | * | | | | | | | HelpChannels: add a function to initialise the cog | 2020-03-22 | -0/+17 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's created as a task in __init__ because coroutines cannot be awaited in there. | ||||
| | * | | | | | | | HelpChannels: add a function to init the categories | 2020-03-22 | -0/+16 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| | * | | | | | | | HelpChannels: add a function to get a channel or fetch it from API | 2020-03-22 | -0/+8 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: add a logger | 2020-03-22 | -0/+3 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: add method stubs | 2020-03-22 | -1/+48 | ||
| | | | | | | | | | |||||
| | * | | | | | | | Constants: add help category constants | 2020-03-22 | -3/+7 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original category was re-purposed as the "in-use" category so that deployment of the new system will not interrupt ongoing help sessions. | ||||
| | * | | | | | | | HelpChannels: add constants for active/dormant messages | 2020-03-22 | -0/+24 | ||
| | | | | | | | | | |||||
| | * | | | | | | | Constants: add constants for HelpChannels cog | 2020-03-22 | -0/+19 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: load element names from JSON | 2020-03-22 | -0/+7 | ||
| | | | | | | | | | |||||
| | * | | | | | | | HelpChannels: create boilerplate extension and cog | 2020-03-22 | -0/+12 | ||
| | | | | | | | | | |||||
| | * | | | | | | | Resources: add JSON with array of chemical element names | 2020-03-22 | -0/+120 | ||
| | | | | | | | | | |||||
| | | | | | | | * | Infraction Tests: Small fixes | 2020-05-20 | -4/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove unnecessary space from placeholder - Rename `has_active_infraction` to `get_active_infraction` | ||||
| | | | | | | | * | ModLog Tests: Fix truncation tests docstring | 2020-05-20 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]> | ||||
| | | | | | | | * | (Infractions and ModLog Tests): Replaced `shortening` with `truncation`, ↵ | 2020-04-16 | -5/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed unnecessary type hint and added comment to kick truncation test about awaiting `kick`. | ||||
| | | | | | | | * | (ModLog): Removed unused `textwrap` import. | 2020-04-16 | -1/+0 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (ModLog Tests): Created reason shortening tests for `send_log_message`. | 2020-04-16 | -0/+29 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Infraction Tests): Created reason shortening tests for ban and kick. | 2020-04-16 | -0/+54 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Test Helpers): Added `__ge__` function to `MockRole` for comparing. | 2020-04-15 | -0/+4 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Scheduler): Added removal of infraction in DB, when applying infraction ↵ | 2020-04-14 | -18/+28 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fail. Also don't send DM in this case. | ||||
| | | | | | | | * | (Scheduler): Removed empty line when expiration not specified in ↵ | 2020-04-14 | -3/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `apply_infraction`. | ||||
| | | | | | | | * | (ModLog): Applied force embed description truncating in `send_log_message` ↵ | 2020-04-14 | -1/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to avoid removing newlines. | ||||
| | | | | | | | * | (Big Brother): Added truncating reason. | 2020-04-09 | -2/+3 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Watchchannel): Added footer shortening. | 2020-04-09 | -1/+2 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Talent Pool): Applied reason shortening. | 2020-04-09 | -5/+5 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Scheduler): Replaced `infraction['reason']` with `reason` variable using in ↵ | 2020-04-09 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `end_msg`. | ||||
| | | | | | | | * | (Scheduler): Move reason to end of log text to avoid truncating keys. | 2020-04-09 | -2/+7 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Mod Utils): Moved embed description to variable. | 2020-04-09 | -5/+7 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Superstarify): Removed unnecessary truncation on `superstarify` command, ↵ | 2020-04-08 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reordered ModLog text. | ||||
| | | | | | | | * | (Mod Utils): Removed truncation of reason itself and added truncation to ↵ | 2020-04-08 | -3/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | whole embed in `notify_infraction`. | ||||
| | | | | | | | * | (Scheduler): Removed reason truncation from `apply_infraction`, changed ↵ | 2020-04-08 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | order of ModLog embed description item in same function. | ||||
| | | | | | | | * | (ModLog): Added mod log item embed description truncating when it's too long. | 2020-04-08 | -1/+2 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Scheduler): Changed reason truncating in `apply_infraction` from 1900 chars ↵ | 2020-04-08 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to 1500, added shortening to end message too. | ||||
| | | | | | | | * | (Superstarify, Scheduler): Added reason shortening for ModLog. | 2020-04-08 | -2/+2 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Infractions): Moved truncated reason to variable instead on ban coroutine ↵ | 2020-04-08 | -5/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | creating. | ||||
| | | | | | | | * | (Infractions): Removed unnecessary logging that notify when reason will be ↵ | 2020-04-08 | -6/+0 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | truncated for Audit Log. | ||||
| | | | | | | | * | (Mod Utils): Added shortening reason on embed creation in `notify_infraction`. | 2020-04-08 | -1/+1 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Ban and Kick): Added space to `textwrap.shorten` `placeholder`. | 2020-04-06 | -1/+1 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Ban and Kick): Changed length in `textwrap.shorten` from 309 to 312 because ↵ | 2020-04-06 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shorten already include `placeholder` to length. | ||||
| | | | | | | | * | (Mod Scheduler): Added reason truncations to Scheduler's `apply_infraction` | 2020-04-05 | -1/+2 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Ban and Kick): Applied simplification to reason truncating. | 2020-04-05 | -2/+2 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Ban and Kick): Replaced force reason truncating with `textwrap.shorten`. | 2020-04-04 | -2/+3 | ||
| | | | | | | | | | |||||
| | | | | | | | * | (Kick Command): Added logging and truncating to correct length for Discord ↵ | 2020-04-04 | -1/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Audit Log when kick reason length is more than 512 characters. | ||||