| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |
| |
| |
| | |
Redirect any output to seasonalbot commands, where relevant
|
| | |
| |
| | |
The log channels have become one
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | |
| |
| |
| | |
This is a lot more readable than just 86400.
|
| | |
| |
| |
| | |
get_close_matches.
|
| | |
| |
| |
| | |
everywhere.
|
| | |
| |
| |
| | |
`difflib.get_close_matches` cutoff from 0.6 (default) to 0.4.
|
| | |
| |
| |
| | |
support for .games command, modified docstring to explain this and added str.title() to embed title genre showing.
|
| | |
| |
| |
| | |
lines.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
dict.items())
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
get_companies_list.
|
| | | |
|
| | |
| |
| |
| | |
token check on load. Other small code improvisations.
|
| | |
| |
| |
| | |
to constants.py.
|
| | |
| |
| | |
Co-Authored-By: Thomas Petersson <[email protected]>
|
| |/
|
|
| |
to constants.py.
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
smaller. Added warning loggings. Better Some Numbers section formatting.
|
| | |
| |
| |
| | |
fixed type hints.
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
things more dynamical.
|
| | |
| |
| |
| | |
added alias .movie
|
| | |
| |
| |
| | |
depending how much movies you define. This use TMDB API.
|
| | | |
|
| |\ \
| | |
| | |
| | | |
F4zi/bug/LAST_EMOJI-352
|
| | | | |
|
| | | | |
|
| |/ / |
|
| | |
| |
| |
| |
| |
| | |
Changed the pagination emoji collection from list to tuple
This change was suggested since this collection is constant
|
| | |
| |
| |
| |
| |
| |
| | |
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)
|
| | |
| |
| |
| |
| | |
Switched the emoji used to clear the reactions of a paginator [":x:"]
With [":trashcan:"], Clicking on this emoji deletes the message
|
| |/
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The emoji IDs in the Reddit cog were for emojis that are not available to Seasonal Bot. While I think a proper solution using constants is to be preferred, I've edited in IDs for emojis that can be used by the bot in the mean time.
I've reused three of the emojis that we were already using for our Reddit webhook and added four new emojis to the `PyDis Emoji II` server.
Reused emojis:
:user: 638729835442602003
:upvotes: 638729835245731840
:comments: 638729835073765387
New emojis available on PyDis Emoji II:
:reddit_logo: 676030265734332427
:reddit_post_photo: 676030265734201344
:reddit_post_text: 676030265910493204
:reddit_post_video: 676030265839190047
The latter four may need to be restyled to match the first three in the future.
|
| |
|
|
| |
reddit posts insted of using a while loop
|
| |\ |
|
| | |
| |
| | |
Update logging events so they follow the correct chain of execution
|
| | | |
|