aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | Constants: add a help channel name prefix constantGravatar MarkKoz2020-03-22-1/+5
| | | | | | | |
| * | | | | | | HelpChannels: implement create_channel_queueGravatar MarkKoz2020-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 categoryGravatar MarkKoz2020-03-22-2/+2
| | | | | | | |
| * | | | | | | HelpChannels: retrieve category channels more efficientlyGravatar MarkKoz2020-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_queueGravatar MarkKoz2020-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 namesGravatar MarkKoz2020-03-22-0/+13
| | | | | | | |
| * | | | | | | HelpChannels: set a ready event when cog initialisation completesGravatar MarkKoz2020-03-22-0/+3
| | | | | | | |
| * | | | | | | HelpChannels: cancel the init task when unloading the cogGravatar MarkKoz2020-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 cogGravatar MarkKoz2020-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 categoriesGravatar MarkKoz2020-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 APIGravatar MarkKoz2020-03-22-0/+8
| | | | | | | |
| * | | | | | | HelpChannels: add a loggerGravatar MarkKoz2020-03-22-0/+3
| | | | | | | |
| * | | | | | | HelpChannels: add method stubsGravatar MarkKoz2020-03-22-1/+48
| | | | | | | |
| * | | | | | | Constants: add help category constantsGravatar MarkKoz2020-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 messagesGravatar MarkKoz2020-03-22-0/+24
| | | | | | | |
| * | | | | | | Constants: add constants for HelpChannels cogGravatar MarkKoz2020-03-22-0/+19
| | | | | | | |
| * | | | | | | HelpChannels: load element names from JSONGravatar MarkKoz2020-03-22-0/+7
| | | | | | | |
| * | | | | | | HelpChannels: create boilerplate extension and cogGravatar MarkKoz2020-03-22-0/+12
| | | | | | | |
| * | | | | | | Resources: add JSON with array of chemical element namesGravatar MarkKoz2020-03-22-0/+120
| | | | | | | |
| | | | | | | * Infraction Tests: Small fixesGravatar ks1292020-05-20-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove unnecessary space from placeholder - Rename `has_active_infraction` to `get_active_infraction`
| | | | | | | * ModLog Tests: Fix truncation tests docstringGravatar ks1292020-05-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]>
| | | | | | | * (Infractions and ModLog Tests): Replaced `shortening` with `truncation`, ↵Gravatar ks1292020-04-16-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed unnecessary type hint and added comment to kick truncation test about awaiting `kick`.
| | | | | | | * (ModLog): Removed unused `textwrap` import.Gravatar ks1292020-04-16-1/+0
| | | | | | | |
| | | | | | | * (ModLog Tests): Created reason shortening tests for `send_log_message`.Gravatar ks1292020-04-16-0/+29
| | | | | | | |
| | | | | | | * (Infraction Tests): Created reason shortening tests for ban and kick.Gravatar ks1292020-04-16-0/+54
| | | | | | | |
| | | | | | | * (Test Helpers): Added `__ge__` function to `MockRole` for comparing.Gravatar ks1292020-04-15-0/+4
| | | | | | | |
| | | | | | | * (Scheduler): Added removal of infraction in DB, when applying infraction ↵Gravatar ks1292020-04-14-18/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fail. Also don't send DM in this case.
| | | | | | | * (Scheduler): Removed empty line when expiration not specified in ↵Gravatar ks1292020-04-14-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `apply_infraction`.
| | | | | | | * (ModLog): Applied force embed description truncating in `send_log_message` ↵Gravatar ks1292020-04-14-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to avoid removing newlines.
| | | | | | | * (Big Brother): Added truncating reason.Gravatar ks1292020-04-09-2/+3
| | | | | | | |
| | | | | | | * (Watchchannel): Added footer shortening.Gravatar ks1292020-04-09-1/+2
| | | | | | | |
| | | | | | | * (Talent Pool): Applied reason shortening.Gravatar ks1292020-04-09-5/+5
| | | | | | | |
| | | | | | | * (Scheduler): Replaced `infraction['reason']` with `reason` variable using in ↵Gravatar ks1292020-04-09-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `end_msg`.
| | | | | | | * (Scheduler): Move reason to end of log text to avoid truncating keys.Gravatar ks1292020-04-09-2/+7
| | | | | | | |
| | | | | | | * (Mod Utils): Moved embed description to variable.Gravatar ks1292020-04-09-5/+7
| | | | | | | |
| | | | | | | * (Superstarify): Removed unnecessary truncation on `superstarify` command, ↵Gravatar ks1292020-04-08-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reordered ModLog text.
| | | | | | | * (Mod Utils): Removed truncation of reason itself and added truncation to ↵Gravatar ks1292020-04-08-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | whole embed in `notify_infraction`.
| | | | | | | * (Scheduler): Removed reason truncation from `apply_infraction`, changed ↵Gravatar ks1292020-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.Gravatar ks1292020-04-08-1/+2
| | | | | | | |
| | | | | | | * (Scheduler): Changed reason truncating in `apply_infraction` from 1900 chars ↵Gravatar ks1292020-04-08-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to 1500, added shortening to end message too.
| | | | | | | * (Superstarify, Scheduler): Added reason shortening for ModLog.Gravatar ks1292020-04-08-2/+2
| | | | | | | |
| | | | | | | * (Infractions): Moved truncated reason to variable instead on ban coroutine ↵Gravatar ks1292020-04-08-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | creating.
| | | | | | | * (Infractions): Removed unnecessary logging that notify when reason will be ↵Gravatar ks1292020-04-08-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | truncated for Audit Log.
| | | | | | | * (Mod Utils): Added shortening reason on embed creation in `notify_infraction`.Gravatar ks1292020-04-08-1/+1
| | | | | | | |
| | | | | | | * (Ban and Kick): Added space to `textwrap.shorten` `placeholder`.Gravatar ks1292020-04-06-1/+1
| | | | | | | |
| | | | | | | * (Ban and Kick): Changed length in `textwrap.shorten` from 309 to 312 because ↵Gravatar ks1292020-04-06-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shorten already include `placeholder` to length.
| | | | | | | * (Mod Scheduler): Added reason truncations to Scheduler's `apply_infraction`Gravatar ks1292020-04-05-1/+2
| | | | | | | |
| | | | | | | * (Ban and Kick): Applied simplification to reason truncating.Gravatar ks1292020-04-05-2/+2
| | | | | | | |
| | | | | | | * (Ban and Kick): Replaced force reason truncating with `textwrap.shorten`.Gravatar ks1292020-04-04-2/+3
| | | | | | | |
| | | | | | | * (Kick Command): Added logging and truncating to correct length for Discord ↵Gravatar ks1292020-04-04-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Audit Log when kick reason length is more than 512 characters.