aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-05-14PEP Improvisations: Implemented stats to PEP commandGravatar ks129-7/+11
2020-05-13PEP Improvisations: Made PEP URLs refreshing task PEP number resolving easierGravatar ks129-2/+4
2020-05-13PEP Improvisations: Added logging to PEP URLs fetching taskGravatar ks129-0/+3
2020-05-13PEP Improvisations: Replaced `wait_until_guild_available` with ↵Gravatar ks129-1/+1
`wait_until_ready`
2020-05-13PEP Improvisations: Added `staticmethod` decorator to `get_pep_zero_embed`Gravatar ks129-1/+2
2020-05-13PEP Improvisations: Moved PEP functions to one regionGravatar ks129-27/+29
2020-04-25Replaced 24 hours with 3 hours in `refresh_peps_urls`Gravatar ks129-2/+2
Made modification to include new PEPs faster.
2020-04-25Refactor `pep` command, implement cachingGravatar ks129-55/+46
Moved PEP embed getting to function, that use caching.
2020-04-25Created new task in `Utils` cog: `refresh_peps_urls`Gravatar ks129-1/+20
Task refresh listing of PEPs + URLs in every 24 hours
2020-04-25Moved `async_cache` decorator from `Doc` cog file to `utils/cache.py`Gravatar ks129-30/+34
2020-04-21Improve `!pep` commandGravatar ks129-6/+3
- Made `pep_number` type hint to `int` to avoid unnecessary manual converting. - Added `ctx.trigger_typing` calling to show user that bot is responding.
2020-04-21Fix category cache issueGravatar Joseph Banks-3/+2
2020-04-20HelpChannels: add logging to answered checkGravatar MarkKoz-3/+4
2020-04-20Extra documentation + split out to separate functionGravatar Joseph Banks-8/+26
2020-04-20Add different emoji for different channel statuses (in use answered/unanswered)Gravatar Joseph Banks-2/+7
2020-04-20Incorrect comparison, we need to check if we are in help_in_use, not out of itGravatar Joseph Banks-1/+1
2020-04-20Add statistics on whether a help session was closed with no input from ↵Gravatar Joseph Banks-0/+15
anyone but the claimant
2020-04-17HelpChannels: ensure `is_in_category` returns a boolGravatar Mark-1/+1
Co-Authored-By: kwzrd <[email protected]>
2020-04-16Remove `.md` from anti-malware whitelistGravatar Sebastiaan Zeeff-1/+0
We want our members to use the paste site to share text-based files instead of them sharing the files as attachments on Discord. As `.md`, a file extensions used for plain-text files with markdown formatting, is such a text file, I've removed it from the anti-malware whitelist.
2020-04-14Revert deletion of !dormant invocation messagesGravatar Sebastiaan Zeeff-4/+0
PR #868 introduced the automatic deletion of the message that issued the `!dormant` command. The idea behind this was that moving the channel to the dormant category makes it obvious that a channel has gone dormant and the message would only serve as visual clutter. However, removing the command invocation also means that it's less obvious why a channel was moved to the dormant category. As the message gets deleted almost immediately, you have to be actively watching the channel to know that the command was issued and who issued it. This has already caused some confusion where helping members where left wondering why a channel suddenly went dormant while they felt that the conversation was still ongoing. To improve the user experience, this commit removes the deletions of the command invocation messages.
2020-04-13[stat] Tag statistic was using the user input as the series name, not the ↵Gravatar Joseph Banks-1/+1
resolved tag name
2020-04-12[stat] Create a statistic for whether dormant was called by the claimant or ↵Gravatar Joseph Banks-1/+7
staff
2020-04-12timer -> timing for statsdGravatar Joseph Banks-2/+2
2020-04-12Use underscore for metric names instead of dashGravatar Joseph Banks-1/+1
2020-04-12Add a timeout to prevent the bot from being overloaded with presence updatesGravatar Joseph Banks-5/+21
2020-04-12Address aeros' review comment regarding help channel stat reportingGravatar Joseph Banks-3/+3
2020-04-11Add a metric for tracking how long defcon was activeGravatar Joseph Banks-1/+15
2020-04-11Use in for membership check as opposed to .get()Gravatar Joseph Banks-1/+1
2020-04-11Update bot/cogs/stats.pyGravatar Joseph-1/+1
Co-Authored-By: Mark <[email protected]>
2020-04-11Additional statisticsGravatar Joseph Banks-9/+45
2020-04-11Move create_socket to the login method of the botGravatar Joseph Banks-4/+1
2020-04-11Implement an AsyncStatsClient to send statsd communications asynchronouslyGravatar Joseph Banks-3/+49
2020-04-11Address review comments from MarkGravatar Joseph Banks-3800/+5
2020-04-11Address review comments from MarkGravatar Joseph Banks-14/+3837
2020-04-11HelpChannels: create helper method for checking channel's categoryGravatar MarkKoz-4/+8
2020-04-11HelpChannels: create a helper method for checking a channGravatar MarkKoz-2/+4
2020-04-11StatsD integrationGravatar Joseph Banks-34/+145
2020-04-10Tags: explicitly use UTF-8 to read filesGravatar MarkKoz-1/+1
Not all operating systems use UTF-8 as the default encoding. For systems that don't, reading tag files with Unicode would cause an unhandled exception.
2020-04-10Fix `help_channel_claimants` typehint.Gravatar Numerlor-1/+3
`ctx.author` that is used to populate the dict returns a `Member` object in most cases while only `User` was documented as a possible value.
2020-04-10Use synchronized permission reset.Gravatar Numerlor-1/+1
2020-04-09Specify encoding to logging file handler.Gravatar Numerlor-1/+1
With the new addition of non latin-11 chars in channel names - which get logged, the logging to files fails on those entries on OSs where the default encoding is not utf8 or an other encoding capable of handling them.
2020-04-09Delete channel from claimant cache.Gravatar Numerlor-0/+3
Deleting the channel from the claimant cache on invokation of the dormant command prevents users running the command multiple times before the bot moves it.
2020-04-09Reverse order of moving to dormant and task cancellation.Gravatar Numerlor-1/+1
Reversing the order ensures the task is not cancelled when moving to dormant fails which gives a fallback to move it after the initial period of time.
2020-04-09HelpChannels: check author of dormant messageGravatar MarkKoz-3/+2
In a testing environment, the bot may try to edit the message of a different bot. Therefore, the author of the message should be checked to ensure the current bot sent it.
2020-04-09Suppress errors when resetting permissions.Gravatar Numerlor-1/+2
2020-04-09Move permissions reset up.Gravatar Numerlor-1/+2
2020-04-09Move message deletion up.Gravatar Numerlor-3/+4
2020-04-09Reword comment.Gravatar Numerlor-1/+1
Co-authored-by: MarkKoz <[email protected]>
2020-04-09Add spacing.Gravatar Numerlor-0/+1
Co-authored-by: MarkKoz <[email protected]>
2020-04-09Reword strings to reflect name changes.Gravatar Numerlor-6/+6