aboutsummaryrefslogtreecommitdiffstats
path: root/bot (follow)
Commit message (Collapse)AuthorAgeLines
* Setup SentryGravatar Joseph Banks2020-03-25-1/+34
|
* Merge branch 'master' into battleshipsGravatar S. Co12020-03-20-132/+1422
|\
| * Merge branch 'master' into helpGravatar S. Co12020-03-13-119/+523
| |\
| | * Add more pre-commit hooksGravatar MarkKoz2020-03-04-91/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Update dependenciesGravatar MarkKoz2020-03-04-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Merge branch 'master' into games-commandGravatar Shirayuki Nekomata2020-03-05-17/+27
| | |\
| | | * Strip references to seasonalbot chatGravatar S. Co12020-03-01-14/+12
| | | | | | | | | | | | | | | | Redirect any output to seasonalbot commands, where relevant
| | | * Update devlog channel constantGravatar S. Co12020-02-25-1/+1
| | | | | | | | | | | | The log channels have become one
| | | * Cycle icons within season in configured interval onlyGravatar kwzrd2020-02-23-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.
| | | * Add icon cycle frequency constantGravatar kwzrd2020-02-23-0/+1
| | | |
| | | * Calculate seconds as n_hours * seconds_in_hourGravatar kwzrd2020-02-23-1/+1
| | | | | | | | | | | | | | | | This is a lot more readable than just 86400.
| | * | (Games Cog): Added space between game search result + removed cutoff in ↵Gravatar Karlis S2020-03-04-2/+2
| | | | | | | | | | | | | | | | get_close_matches.
| | * | (Games Cog): Moved `string.Template` to `str.format()`, applied changes ↵Gravatar ks1232020-03-04-51/+37
| | | | | | | | | | | | | | | | everywhere.
| | * | (Games Cog): Moved self.genres to __init__ and added type hints. Added lower ↵Gravatar ks1232020-03-04-3/+3
| | | | | | | | | | | | | | | | `difflib.get_close_matches` cutoff from 0.6 (default) to 0.4.
| | * | (Games Cog): Replaced - with space in genre aliases, added multiword genres ↵Gravatar ks1232020-03-04-9/+10
| | | | | | | | | | | | | | | | support for .games command, modified docstring to explain this and added str.title() to embed title genre showing.
| | * | (Games Cog): Remove too much empty lines in .games search command, simplify ↵Gravatar ks1232020-03-04-1/+1
| | | | | | | | | | | | | | | | lines.
| | * | (Games Cog): Stop refreshing genres task when Cog unloadGravatar ks1232020-03-04-0/+5
| | | |
| | * | (Games Cog): Added try block to genres refresh task.Gravatar ks1232020-03-04-1/+6
| | | |
| | * | (Games Cog): Added .games refresh|r command for refreshing genres.Gravatar ks1232020-03-04-1/+13
| | | |
| | * | (Games Cog): Created task for fetching genres (every hour)Gravatar ks1232020-03-04-2/+7
| | | |
| | * | (Games Cog): Fixed _get_genres function looping over genres (started using ↵Gravatar ks1232020-03-04-5/+5
| | | | | | | | | | | | | | | | dict.items())
| | * | (Games Cog): Fixed get_games_list calling formatting at L192Gravatar ks1232020-03-04-2/+1
| | | |
| | * | (Games Cog): Fixed companies list generating code (.games <genre> command).Gravatar ks1232020-03-02-3/+2
| | | |
| | * | (Games Cog): Added comments about offsets, use keyword parameters for ↵Gravatar ks1232020-03-02-1/+5
| | | | | | | | | | | | | | | | get_companies_list.
| | * | (Games Cog): Fixed and added content to docstrings.Gravatar ks1232020-03-02-2/+7
| | | |
| | * | (Games Cog): Moved layouts, request bodies and URLs to Templates. Added ↵Gravatar ks1232020-02-28-162/+213
| | | | | | | | | | | | | | | | token check on load. Other small code improvisations.
| | * | Added .games command with all it's subcommands, added IGDB token requirement ↵Gravatar Karlis S2020-02-25-19/+4
| | | | | | | | | | | | | | | | to constants.py.
| | * | Remove keys() from total_rating count (Games Cog)Gravatar Karlis S2020-02-25-1/+1
| | | | | | | | | | | | Co-Authored-By: Thomas Petersson <[email protected]>
| | * | Added .games command with all it's subcommands, added IGDB token requirement ↵Gravatar ks1232020-02-25-0/+339
| | |/ | | | | | | | | | to constants.py.
| * | (Help): Comments CleanupGravatar ks1232020-03-13-13/+0
| | |
| * | (Help): Removed unnecessary comments about changesGravatar ks1232020-03-10-8/+0
| | |
| * | (Help): Added `Icons` class to constant, added `questionmark` to there, ↵Gravatar ks1232020-03-10-2/+5
| | | | | | | | | | | | reverted icon removal in `.help` command.
| * | (Help): Added cog loading to __main__.pyGravatar ks1232020-03-07-0/+1
| | |
| * | (Help): Added unloading block in cogs loadingGravatar ks1232020-03-07-1/+1
| | |
| * | (Help): Made modifications to original code to make this working in ↵Gravatar ks1232020-03-07-10/+26
| | | | | | | | | | | | SeasonalBot, marked them down with comments and fixed docstrings formatting for linting.
| * | (Help): Added information comment to top of fileGravatar ks1232020-03-07-0/+1
| | |
| * | Copy-pasted help command content from Python botGravatar ks1232020-03-07-0/+554
| |/
| * Merge branch 'master' into F4zi/bug/LAST_EMOJI-352Gravatar Shirayuki Nekomata2020-02-19-0/+199
| |\
| | * Fixed comments in Movie cogGravatar Karlis S2020-02-18-2/+2
| | |
| | * Fixed error message for less than 1 movie check.Gravatar Karlis S2020-02-18-1/+1
| | |
| | * Added .movies genres|genre|g command. Made .movies command docstring ↵Gravatar ks1232020-02-17-46/+43
| | | | | | | | | | | | smaller. Added warning loggings. Better Some Numbers section formatting.
| | * Small style fixes: removed unnecessary comments, made ifs easier readable, ↵Gravatar ks1232020-02-16-26/+17
| | | | | | | | | | | | fixed type hints.
| | * Moved get_random_movies to Movie cog and made this to smaller functions.Gravatar ks1232020-02-15-141/+128
| | |
| | * Replaced check from Enum members to try-except block.Gravatar ks1232020-02-14-5/+4
| | |
| | * Made .movies command genres getting ID and name check to Enum, also made ↵Gravatar ks1232020-02-14-57/+33
| | | | | | | | | | | | things more dynamical.
| | * Moved .movies command genres from subcommands to if-elif-else statement, ↵Gravatar ks1232020-02-14-328/+96
| | | | | | | | | | | | added alias .movie
| | * Added .movie command with what when specifing genre you get random movies, ↵Gravatar ks1232020-02-12-0/+481
| | | | | | | | | | | | depending how much movies you define. This use TMDB API.
| * | Lint error - missing lineGravatar F4zii2020-02-17-1/+0
| | |
| * | Merge remote-tracking branch 'origin/F4zi/bug/LAST_EMOJI-352' into ↵Gravatar F4zii2020-02-17-0/+1
| |\ \ | | | | | | | | | | | | F4zi/bug/LAST_EMOJI-352
| | * | Paginator Migration - Added trashcan emoji to constants.pyGravatar F4zii2020-02-17-1/+1
| | | |