aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/fun.py (follow)
Commit message (Collapse)AuthorAgeLines
* Move game and fun commands to Fun folder, fix ddgGravatar Janine vN2021-09-05-250/+0
| | | | | | | | | | | This moves all the fun commands and games into the fun folder. This commit also makes changes to the duck_game. It was setting a footer during an embed init, which is no longer possible with the version of d.py we use. Additionally, an issue with editing an embed that had a local image loaded. The workaround for the time being is to update the message, not the embed.
* Merge branch 'main' into decorator-factory/typehints-fixGravatar Xithrius2021-09-02-5/+7
|\
| * Use permissions_for over permissions_inGravatar Chris Lovering2021-09-01-5/+7
| | | | | | | | `discord.Member.permissions_in()` was removed in d.py 2.0 in favour of using `discord.Channel.permissions_for()` everywhere.
* | Removed None return annotation for any __init__Gravatar Xithrius2021-09-01-1/+1
| |
* | Union item with None to Optional with item.Gravatar Xithrius2021-09-01-1/+1
| |
* | Fix type annotationsGravatar decorator-factory2021-08-31-2/+3
|/
* chore: Use pathlib.Path.read_text & write_text over openGravatar ToxicKidz2021-05-13-2/+1
|
* fix: Resolve Merge ConflictsGravatar ToxicKidz2021-05-03-0/+3
|\
| * Suppresses Links In CommandsGravatar Hassan Abouelela2021-04-23-0/+3
| | | | | | | | | | | | Suppresses links in certain commands that can echo back user input. Signed-off-by: Hassan Abouelela <[email protected]>
* | chore(evergreen): format each cog load docstring the same wayGravatar vcokltfre2021-04-19-1/+1
| |
* | chore: switch commands.Bot typehints to bot.bot's BotGravatar vcokltfre2021-04-19-2/+3
|/
* Change error msg for roll to use correct prefixGravatar Gustav Odinger2020-10-18-2/+2
| | | | | - Previously used `!` as the prefix, while `.` is the correct one - Now imports prefix from bot.constants, so it'll always be up to date
* Change call of `_get_random_dice` call to use self Gravatar gustavwilliam2020-10-07-1/+1
| | | | | - Considered best practice Co-authored-by: Leon Sandøy <[email protected]>
* Move _get_random_die to me a separate functionGravatar Gustav Odinger2020-10-05-7/+7
| | | | - The function is only created once, instead of every time the roll command is run
* Rewrite roll commandGravatar Gustav Odinger2020-10-05-10/+12
| | | | | | - Improves readability - Sends dice separated by single spaces
* Revert and update roll commandGravatar Gustav Odinger2020-10-04-5/+7
| | | | | | | | - Returns to previous version of code - Improves readability - Adds spaced between dice
* Add space between dice in roll commandGravatar Gustav Odinger2020-10-04-7/+5
| | | | | | - Looks much better - Cleans up the code of the roll command
* Use clean_content when fetching linked msgs for fun commands.Gravatar scragly2020-09-21-2/+2
|
* Merge branch 'master' into clean_uwuGravatar scragly2020-09-21-8/+109
|\
| * Stop users from viewing messages they shouldn't.Gravatar kosayoda2020-09-18-6/+10
| | | | | | | | | | | | | | | | | | Using a user token, a user could fetch the message ID of a message in any channel, which may leak information when potential Message objects are automatically converted and parsed. Now, the bot will only retrive text from a valid Message object if the user has read permissions for the message the channel is in.
| * Merge branch 'master' into caesar-commandGravatar Kieran Siek2020-09-18-18/+12
| |\
| * | Fix typo in casercipher help.Gravatar Kieran Siek2020-09-18-1/+1
| | |
| * | Refactor methods to use _get_text_and_embedGravatar PureFunctor2020-09-18-7/+4
| | | | | | | | | | | | | | | | | | | | | This changes the converters used by caesarcipher_encrypt and caesarcipher_decrypt in order to accomodate for the manual conversion that _get_text_and_embed does, which allows for this feature to be easily disabled.
| * | Make the encryption function top-levelGravatar PureFunctor2020-09-18-13/+21
| | | | | | | | | | | | | | | This makes caesar_func a top-level function and renames it to caesar_cipher.
| * | Explicitly pass left_shift as a keyword argumentGravatar PureFunctor2020-07-29-2/+2
| | |
| * | Refactor translation methods to avoid repetitionGravatar PureFunctor2020-07-15-12/+12
| | |
| * | Add 'enc'/'dec' aliases for encrypt/decryptGravatar PureFunctor2020-07-02-2/+2
| | |
| * | Separate the formula for the actual offsetGravatar PureFunctor2020-07-02-1/+4
| | |
| * | Change text to msg in command docstringsGravatar PureFunctor2020-06-30-3/+3
| | |
| * | Fix return type annotationGravatar PureFunctor2020-06-29-2/+2
| | |
| * | Add 'cc' alias for caesarcipherGravatar PureFunctor2020-06-28-1/+1
| | |
| * | Add UTF-8 encoding when loading embed informationGravatar PureFunctor2020-06-27-1/+1
| | |
| * | Use pathlib and fix grammar in the information embedGravatar PureFunctor2020-06-27-1/+2
| | |
| * | Utilize Union[Message, str] for converting messagesGravatar PureFunctor2020-06-27-8/+13
| | |
| * | Use Context.invoke instead of invoking the Help cogGravatar PureFunctor2020-06-27-1/+1
| | |
| * | Load embed data in __init__ and use Embed.from_dictGravatar PureFunctor2020-06-26-8/+5
| | |
| * | Add offset validationGravatar PureFunctor2020-06-26-2/+8
| | |
| * | Refactor translate subcommand to encrypt and decryptGravatar PureFunctor2020-06-26-9/+31
| | |
| * | Add basic caesar cipher information embedGravatar PureFunctor2020-06-26-1/+12
| | |
| * | Make caesarcipher a command groupGravatar PureFunctor2020-06-14-6/+19
| | |
| * | Add initial caesarcipher commandGravatar PureFunctor2020-06-14-0/+34
| | |
* | | Prevent uwu output from pinging globally allowed roles.Gravatar scragly2020-09-21-2/+2
| |/ |/|
* | Update variable name from terning to diceGravatar Gustav Odinger2020-09-17-2/+2
| |
* | Update .roll to use new dice emojisGravatar Gustav Odinger2020-09-16-1/+1
| | | | | | | | - Resolves #440
* | Remove whitespace from fun.pyGravatar Joe Banks2020-08-20-1/+1
| |
* | Update fun.py to satisfy the linterGravatar Joe Banks2020-08-20-6/+2
| |
* | Temporarily remove message functionality from FunGravatar Joe Banks2020-08-20-10/+8
|/ | | Remove message link functionality from uwu and randomcase due to a security vulnerability
* Deseasonify: log in `add_cog` rather than in each `setup`Gravatar kwzrd2020-03-28-1/+0
| | | | | | | | | | | | The previous system required each extension's `setup` func to log that the cog was loaded. This leads to inconsistent messages all trying to convey the same thing, variable logger names in the output file are difficult to read, and several extensions were not logging at all. By logging directly in the `add_cog` method, we reduce code repetition, ensure consistent format, and remove the responsibility to remember that a log should be made.
* Deseasonify: rename `seasons` pkg to `exts`Gravatar kwzrd2020-03-28-0/+148
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.