Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Move game and fun commands to Fun folder, fix ddg | 2021-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-fix | 2021-09-02 | -5/+7 | |
|\ | ||||
| * | Use permissions_for over permissions_in | 2021-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__ | 2021-09-01 | -1/+1 | |
| | | ||||
* | | Union item with None to Optional with item. | 2021-09-01 | -1/+1 | |
| | | ||||
* | | Fix type annotations | 2021-08-31 | -2/+3 | |
|/ | ||||
* | chore: Use pathlib.Path.read_text & write_text over open | 2021-05-13 | -2/+1 | |
| | ||||
* | fix: Resolve Merge Conflicts | 2021-05-03 | -0/+3 | |
|\ | ||||
| * | Suppresses Links In Commands | 2021-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 way | 2021-04-19 | -1/+1 | |
| | | ||||
* | | chore: switch commands.Bot typehints to bot.bot's Bot | 2021-04-19 | -2/+3 | |
|/ | ||||
* | Change error msg for roll to use correct prefix | 2020-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 | 2020-10-07 | -1/+1 | |
| | | | | | - Considered best practice Co-authored-by: Leon Sandøy <[email protected]> | |||
* | Move _get_random_die to me a separate function | 2020-10-05 | -7/+7 | |
| | | | | - The function is only created once, instead of every time the roll command is run | |||
* | Rewrite roll command | 2020-10-05 | -10/+12 | |
| | | | | | | - Improves readability - Sends dice separated by single spaces | |||
* | Revert and update roll command | 2020-10-04 | -5/+7 | |
| | | | | | | | | - Returns to previous version of code - Improves readability - Adds spaced between dice | |||
* | Add space between dice in roll command | 2020-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. | 2020-09-21 | -2/+2 | |
| | ||||
* | Merge branch 'master' into clean_uwu | 2020-09-21 | -8/+109 | |
|\ | ||||
| * | Stop users from viewing messages they shouldn't. | 2020-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-command | 2020-09-18 | -18/+12 | |
| |\ | ||||
| * | | Fix typo in casercipher help. | 2020-09-18 | -1/+1 | |
| | | | ||||
| * | | Refactor methods to use _get_text_and_embed | 2020-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-level | 2020-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 argument | 2020-07-29 | -2/+2 | |
| | | | ||||
| * | | Refactor translation methods to avoid repetition | 2020-07-15 | -12/+12 | |
| | | | ||||
| * | | Add 'enc'/'dec' aliases for encrypt/decrypt | 2020-07-02 | -2/+2 | |
| | | | ||||
| * | | Separate the formula for the actual offset | 2020-07-02 | -1/+4 | |
| | | | ||||
| * | | Change text to msg in command docstrings | 2020-06-30 | -3/+3 | |
| | | | ||||
| * | | Fix return type annotation | 2020-06-29 | -2/+2 | |
| | | | ||||
| * | | Add 'cc' alias for caesarcipher | 2020-06-28 | -1/+1 | |
| | | | ||||
| * | | Add UTF-8 encoding when loading embed information | 2020-06-27 | -1/+1 | |
| | | | ||||
| * | | Use pathlib and fix grammar in the information embed | 2020-06-27 | -1/+2 | |
| | | | ||||
| * | | Utilize Union[Message, str] for converting messages | 2020-06-27 | -8/+13 | |
| | | | ||||
| * | | Use Context.invoke instead of invoking the Help cog | 2020-06-27 | -1/+1 | |
| | | | ||||
| * | | Load embed data in __init__ and use Embed.from_dict | 2020-06-26 | -8/+5 | |
| | | | ||||
| * | | Add offset validation | 2020-06-26 | -2/+8 | |
| | | | ||||
| * | | Refactor translate subcommand to encrypt and decrypt | 2020-06-26 | -9/+31 | |
| | | | ||||
| * | | Add basic caesar cipher information embed | 2020-06-26 | -1/+12 | |
| | | | ||||
| * | | Make caesarcipher a command group | 2020-06-14 | -6/+19 | |
| | | | ||||
| * | | Add initial caesarcipher command | 2020-06-14 | -0/+34 | |
| | | | ||||
* | | | Prevent uwu output from pinging globally allowed roles. | 2020-09-21 | -2/+2 | |
| |/ |/| | ||||
* | | Update variable name from terning to dice | 2020-09-17 | -2/+2 | |
| | | ||||
* | | Update .roll to use new dice emojis | 2020-09-16 | -1/+1 | |
| | | | | | | | | - Resolves #440 | |||
* | | Remove whitespace from fun.py | 2020-08-20 | -1/+1 | |
| | | ||||
* | | Update fun.py to satisfy the linter | 2020-08-20 | -6/+2 | |
| | | ||||
* | | Temporarily remove message functionality from Fun | 2020-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` | 2020-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` | 2020-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. |