| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I left as many available as possible. Some of the commands also handle
being outside of their original season, e.g. by showing the amount of
time until Hacktoberfest begins, if not currently active. These were
left available as well.
If a group is to be locked, the `invoke_without_command` param must
be False (default), otherwise the group's callback will be circumvented
if a valid subcommand is invoked.
I adjusted these where necessary, except for the `HacktoberStats` cog,
whose cmd group takes an arg, which would require a more involved
adjustment - I decided to leave it as is, and instead manually lock
both subcommands.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Defining seasons in seasonal packages' __init__.py files made more
sense when extensions were strictly tied to seasons. It introduces an
annoying circular dependency where a seasonal package must be imported
in order for the __init__.py file to run and register the season, but
it also imports SeasonBase from the parent directory so that it can
inherit from it.
I have made the decision to scrap the seasonal __init__.py files, and
instead define all seasons directly under SeasonBase. The classes are
no longer scattered around, we remove the above mentioned import
problem, and everything is more transparent and easier to digest.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We no longer use the class docstrings for announcements, and they
mostly contain outdated information. Sentences still relevant are
used to populate the `description` attr (which shows in the branding
embed), the rest is scrapped.
The descriptions themselves can still be improved in the future, once
we figure out exactly in which direction we want to go with them.
The idea of providing a description for each season's branding was
originally brought up by neonsea, co-authored below.
Co-authored-by: Rasmus Moorats <[email protected]>
|
| |
|
|
|
|
| |
We'll use this to colour the branding embed, as it currently looks very
plain. Seasons can either provide their own, or just use the default
green.
|
| |
|
|
|
| |
We want to prevent listeners from performing season-specific behaviour
outside of specific months.
|
| |
|
|
|
| |
Ensure that all inheriting seasons are now providing the right attrs
as defined in `SeasonBase`.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
The `_fact_publisher_task` task was removed many commits ago, yet the
listener still attempts to launch it.
There is no need to set the channel instance attr, as it isn't used
anywhere.
This renders the listener useless, and it can be removed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\ |
|
| | |\
| | |
| | | |
Relock
|
| | | |
| | |
| | |
| | |
| | | |
The command is mostly used to calculate the time left in the DO's Hacktoberfest event we are participating in. However, the current end datetime was specified as a day before the actual end of the event. This hotfix remedies that for the end-calculation only.
This code should get a proper fix to rework the entire logic to use the correct start and end datetimes for DO's event.
|
| | | | |
|
| | | | |
|
| | |\| |
|
| | | |\
| | | |
| | | | |
Hacktober issue finder fix - divide count by 100
|
| | | | |\
| | | | |
| | | | |
| | | | | |
hacktober-issue-finder
|
| | | | | | |
|
| | |\ \ \ \
| | | | | |
| | | | | |
| | | | | | |
into monster_bio
|
| | | |\| | | |
|
| | | | |\ \ \
| | | | | |/
| | | | |/| |
|
| | | | | | | |
|
| | |/ / / / |
|
| | | | | | |
|
| | | |/ /
| |/| | |
|
| | | | | |
|
| | | | | |
|
| |/ / / |
|
| |\| |
| |/
|/| |
|
| | |
| |
| |
| | |
beginning of it
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
query for Hacktoberfest user pull requests
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |
|
|
|
|
|
|
| |
The Halloween season was currently configured to run with spooky
icons and to announce a terrible, contentless announcement.
This has been disabled and the neon hacktoberfest icon has been
placed in its stead.
|
| |\ |
|