aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils (follow)
Commit message (Collapse)AuthorAgeLines
...
* Type hint optional parameterGravatar ChrisJL2021-05-16-1/+1
| | | Co-authored-by: ToxicKidz <[email protected]>
* Bump d.py to 1.7.2Gravatar Chris2021-05-16-4/+15
| | | | | | | d.py 1.5.1 depending on multidict, which needs gcc installed. Bumping d.py to 1.7.2 removes the need fo rbuild tools in the image. d.py 1.7 introduced the line sep are on the paginator, so this needs to be added to our linepaginator subclass.
* fix: Resolve merge conflicts againGravatar ToxicKidz2021-05-15-2/+1
|\
* | chore: Reformat bot/utils/__init__.pyGravatar ToxicKidz2021-05-15-6/+10
| |
* | chore: Refactor more code to follow our style guideGravatar ToxicKidz2021-05-14-13/+28
| |
* | fix: Resolve Merge ConflictsGravatar ToxicKidz2021-05-10-3/+51
|\|
| * Pull upstream and resolve conflicts.Gravatar rohan2021-05-10-1/+9
| |\
| * | Fix Bug:Paginated embed image gets carried to next pageGravatar Rohan2021-04-20-3/+3
| | |
| * | Merge branch 'main' into reddit_migrationGravatar Rohan Reddy Alleti2021-04-15-49/+172
| |\ \
| * | | Add sub_clyde utility function.Gravatar Rohan2020-12-02-0/+19
| | | |
| * | | Add Subreddit converter.Gravatar Rohan2020-12-02-1/+31
| | | |
* | | | fix: Use str.isdecimal instead of str.isdigitGravatar ToxicKidz2021-05-09-4/+4
| | | |
* | | | chore: Add all of the converters into bot/utils/converters.pyGravatar ToxicKidz2021-05-05-3/+74
| | | |
* | | | chore: Replace the remaining double quotes with double quotesGravatar ToxicKidz2021-05-04-1/+1
| | | |
* | | | chore: Prefer double quotes over single quotesGravatar ToxicKidz2021-05-04-21/+21
| | | |
* | | | chore: Don't return a Message object when the return annotation is NoneGravatar ToxicKidz2021-05-03-4/+6
| |_|/ |/| |
* | | Updated bot/utils/exceptions.pyGravatar Salil Chincholikar2021-04-27-1/+1
| | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
* | | Reworded/fixed grammatical errorGravatar Salil Chincholikar2021-04-27-1/+1
| | |
* | | Adds Link Suppressing HelperGravatar Hassan Abouelela2021-04-23-0/+8
| |/ |/| | | | | | | | | Adds a helper to find and escape links in a message. Signed-off-by: Hassan Abouelela <[email protected]>
* | Replace list comp with a set update + sequenceGravatar Chris2021-03-21-1/+1
| |
* | Only output override channels & bot commands channel on whitelist errorGravatar Chris2021-03-20-1/+7
| | | | | | | | | | | | | | | | Previously this would output all channels, and could result in an error. This change ensures only the main bot channel & and any overridden channels are shown in the embed. We do this before the categories block as the categories kwarg itself is an override, so we want to include those in any output.
* | master => mainGravatar Joe Banks2021-03-13-1/+1
| |
* | make invoke_help_command only take ctxGravatar ToxicKidz2021-03-13-3/+3
| |
* | Make flake8 happy again.Gravatar ToxicKidz2021-03-12-1/+2
| |
* | Make flake8 happy.Gravatar ToxicKidz2021-03-12-5/+2
| |
* | make utility invoke_help_command functionGravatar ToxicKidz2021-03-12-0/+12
| |
* | Merge branch 'master' into masterGravatar scragly2021-03-08-48/+71
|\ \
| * | Adds Category Channels To Error MessageGravatar Hassan Abouelela2021-02-07-1/+12
| | | | | | | | | | | | | | | | | | | | | Adds the channels within categories to the failure message of the command whitelist check. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Overhauls In Channel CheckGravatar Hassan Abouelela2021-02-07-49/+61
| |/ | | | | | | | | | | | | Upgrades in channel check to support categories, and in the case of overrides, roles too. Signed-off-by: Hassan Abouelela <[email protected]>
* | Merge branch 'master' into masterGravatar Matteo Bertucci2020-11-30-96/+215
|\|
| * Remove references to old name.Gravatar Leon Sandøy2020-11-21-1/+1
| | | | | | | | | | I've tried to replace this with generic references where appropriate, but a lot of the time it just doesn't make a lot of sense to do so.
| * Get rid from branding management stuffGravatar ks1292020-11-17-27/+1
| |
| * Remove persist bot utilGravatar Jeremiah Boby2020-11-14-69/+0
| |
| * Rename BetterMessageConverter -> WrappedMessageConverterGravatar bast2020-09-29-1/+1
| |
| * Add more docstrings and flake8 cleanupGravatar bast2020-09-25-3/+4
| |
| * Make .bm handle embed-suppression syntax for message links <link>Gravatar bast2020-09-25-0/+15
| | | | | | | | [link] and [<link>] are also supported
| * Add extensions.py fileGravatar Gustav Odinger2020-09-21-0/+34
| | | | | | | | | | | | - Necessary for extensions.py to work - Fully copied over from the 'Python' bot
| * Add checks.py fileGravatar Gustav Odinger2020-09-21-0/+164
| | | | | | | | | | | | - Necessary for extensions.py to work - Copied from the 'Python' bot, with minor tweaks to make it work with SeasonalBot
* | Add time utilsGravatar AtieP2020-09-28-0/+84
|/
* Update bot/utils/randomization.pyGravatar Xithrius2020-09-10-1/+5
| | | Co-authored-by: Dennis Pham <[email protected]>
* Added RandomCycle utility to jump between set indexes repeatedly.Gravatar Xithrius2020-09-09-0/+19
|
* Remove redundant f-stringsGravatar MarkKoz2020-07-14-3/+3
| | | | This fixes a new lint error (F541) introduced by flake8 3.8.
* Remove accidental extra word from docstringGravatar kwzrd2020-05-25-1/+1
|
* 5/24 - bot utils - added encoding, and notes for persistGravatar jodth072020-05-24-1/+4
|
* (Minesweeper): Moved `UserNotPlayingError` to `bot.utils.exceptions`, ↵Gravatar ks1292020-04-08-0/+6
| | | | removed definition in extensions. Removed custom error handler.
* Deseasonify: implement __str__ for Month enumGravatar kwzrd2020-04-01-11/+15
| | | | | | | | This way, we can standardize the way Months are shown to both the user and the developer. Note that if passing a Month member to an f-string, the `!s` format code must be specified to ensure our __str__ is used. Co-authored-by: MarkKoz <[email protected]>
* Deseasonify: move current month resolver to utilsGravatar kwzrd2020-03-30-18/+19
| | | | | The function is useful to other modules as well - not only decorators. This declares it as public and moves it to a more accessible place.
* Deseasonify: add helper func to resolve current monthGravatar kwzrd2020-03-29-3/+17
| | | | See docstring for details.
* Deseasonify: rename utility functionGravatar kwzrd2020-03-28-2/+2
| | | | | To avoid confusion, the packages should no longer be referred to as 'seasons'.
* Deseasonify: rename `seasons` pkg to `exts`Gravatar kwzrd2020-03-28-1/+1
| | | | | | | | | It is believed that this is now a more logical name for the package, as extensions no longer bind to seasons. Internally, packages are still grouped into seasonal sub-packages. There are quite a few, and it makes sense to group them by a common theme that inspired their functionality.