| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-03-04 | Add more pre-commit hooks | -100/+113 | ||
| Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Convert some CRLF files to LF * Remove noqa and add missing type annotations * Add missing newlines at end of files See: python-discord/organisation#138 | ||||
| 2020-03-04 | Update dependencies | -290/+317 | ||
| The pipfile will need to be re-locked to add a dependency so may as well re-pin some dependencies to reflect the more recent versions that will be used. discord.py was pinned to a patch version instead of a minor version to be on the safe side. Notable updates: * discord.py -> 1.3.2 * flake8-annotation -> 2.0 * pre-commit -> 2.1 | ||||
| 2020-03-04 | (Games Cog): Added space between game search result + removed cutoff in ↵ | -2/+2 | ||
| get_close_matches. | ||||
| 2020-03-04 | (Games Cog): Moved `string.Template` to `str.format()`, applied changes ↵ | -51/+37 | ||
| everywhere. | ||||
| 2020-03-04 | (Games Cog): Moved self.genres to __init__ and added type hints. Added lower ↵ | -3/+3 | ||
| `difflib.get_close_matches` cutoff from 0.6 (default) to 0.4. | ||||
| 2020-03-04 | (Games Cog): Replaced - with space in genre aliases, added multiword genres ↵ | -9/+10 | ||
| support for .games command, modified docstring to explain this and added str.title() to embed title genre showing. | ||||
| 2020-03-04 | (Games Cog): Remove too much empty lines in .games search command, simplify ↵ | -1/+1 | ||
| lines. | ||||
| 2020-03-04 | (Games Cog): Stop refreshing genres task when Cog unload | -0/+5 | ||
| 2020-03-04 | (Games Cog): Added try block to genres refresh task. | -1/+6 | ||
| 2020-03-04 | (Games Cog): Added .games refresh|r command for refreshing genres. | -1/+13 | ||
| 2020-03-04 | (Games Cog): Created task for fetching genres (every hour) | -2/+7 | ||
| 2020-03-04 | (Games Cog): Fixed _get_genres function looping over genres (started using ↵ | -5/+5 | ||
| dict.items()) | ||||
| 2020-03-04 | (Games Cog): Fixed get_games_list calling formatting at L192 | -2/+1 | ||
| 2020-03-02 | (Games Cog): Fixed companies list generating code (.games <genre> command). | -3/+2 | ||
| 2020-03-02 | (Games Cog): Added comments about offsets, use keyword parameters for ↵ | -1/+5 | ||
| get_companies_list. | ||||
| 2020-03-02 | (Games Cog): Fixed and added content to docstrings. | -2/+7 | ||
| 2020-03-01 | Strip references to seasonalbot chat | -15/+12 | ||
| Redirect any output to seasonalbot commands, where relevant | ||||
| 2020-02-28 | (Games Cog): Moved layouts, request bodies and URLs to Templates. Added ↵ | -162/+213 | ||
| token check on load. Other small code improvisations. | ||||
| 2020-02-25 | Update devlog channel constant | -1/+1 | ||
| The log channels have become one | ||||
| 2020-02-25 | Added .games command with all it's subcommands, added IGDB token requirement ↵ | -19/+4 | ||
| to constants.py. | ||||
| 2020-02-25 | Remove keys() from total_rating count (Games Cog) | -1/+1 | ||
| Co-Authored-By: Thomas Petersson <[email protected]> | ||||
| 2020-02-25 | Added .games command with all it's subcommands, added IGDB token requirement ↵ | -0/+339 | ||
| to constants.py. | ||||
| 2020-02-24 | Added .games command with all it's subcommands, added IGDB token requirement ↵ | -0/+334 | ||
| to constants.py. | ||||
| 2020-02-23 | Cycle icons within season in configured interval only | -1/+12 | ||
| The `load_seasons` task now has an internal state, which increments for every day. Before cycling the icon within the same season, first check whether we've waited the configured amount of days since the last cycle. Entering a new season, or changing the icon, resets the state to 0. This allows us to slow down the rate at which we cycle icons, addressing a bug where the icon wasn't loading for some users. | ||||
| 2020-02-23 | Add icon cycle frequency constant | -0/+1 | ||
| 2020-02-23 | Calculate seconds as n_hours * seconds_in_hour | -1/+1 | ||
| This is a lot more readable than just 86400. | ||||
| 2020-02-18 | Fixed comments in Movie cog | -2/+2 | ||
| 2020-02-18 | Fixed error message for less than 1 movie check. | -1/+1 | ||
| 2020-02-17 | Added .movies genres|genre|g command. Made .movies command docstring ↵ | -46/+43 | ||
| smaller. Added warning loggings. Better Some Numbers section formatting. | ||||
| 2020-02-17 | Lint error - missing line | -1/+0 | ||
| 2020-02-17 | Paginator Migration - Added trashcan emoji to constants.py | -1/+4 | ||
| 2020-02-17 | Paginator Migration - Added trashcan emoji to constants.py | -1/+1 | ||
| 2020-02-17 | Paginator Migration - Added trashcan emoji to constants.py | -1/+3 | ||
| 2020-02-17 | Pagination migrations - Data Structure Modified | -1/+1 | ||
| Changed the pagination emoji collection from list to tuple This change was suggested since this collection is constant | ||||
| 2020-02-17 | Pagination migrations - Actions and emojis | -6/+6 | ||
| Clicking on [:trashcan:] broke the loop and deleted the message, instead, now we return after a message deletion and break when an `asyncio.TimeoutError` is raised (when a user fails to add reactions in time) | ||||
| 2020-02-16 | Paginator Migration - Emoji and actions | -10/+10 | ||
| Switched the emoji used to clear the reactions of a paginator [":x:"] With [":trashcan:"], Clicking on this emoji deletes the message | ||||
| 2020-02-16 | Fix the Pagination cog | -1/+1 | ||
| When using pagination in the Reddit cog, clicking the LAST_EMOJI would raise an exception like this: TypeError: unsupported operand type(s) for -: 'list' and 'int' This was resolved by taking the subtraction out of the len() function. | ||||
| 2020-02-16 | Small style fixes: removed unnecessary comments, made ifs easier readable, ↵ | -26/+17 | ||
| fixed type hints. | ||||
| 2020-02-15 | Moved get_random_movies to Movie cog and made this to smaller functions. | -141/+128 | ||
| 2020-02-14 | Replaced check from Enum members to try-except block. | -5/+4 | ||
| 2020-02-14 | Made .movies command genres getting ID and name check to Enum, also made ↵ | -57/+33 | ||
| things more dynamical. | ||||
| 2020-02-14 | Moved .movies command genres from subcommands to if-elif-else statement, ↵ | -328/+96 | ||
| added alias .movie | ||||
| 2020-02-13 | Remove metadata from PR template | -8/+0 | ||
| GH wasn't making use of the metadata section the same way as the issue templates do, so they appeared in the pre-fill, confusing contributors. This removes the section entirely to prevent the confusion. | ||||