| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Bump ruff from 0.2.1 to 0.3.3
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.1 to 0.3.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.2.1...v0.3.3)
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]>
* apply ruff fixes
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: shtlrs <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This also renames RedisConfig to Redis, the way we have it in Python
|
|
|
|
| |
This also renames the Client class to Bot, to align better with Python.
|
|
|
| |
Co-authored-by: Amrou Bellalouna <[email protected]>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
1<<15 is the flag for message content intent, so adding this value to the intents value hard codes that to always be enabled.
Doing it this way also bypasses the need to patch the flags themselvse in discord.py.
This is required until https://github.com/python-discord/sir-lancebot/pull/1092 is merged.
|
| |
|
|
|
|
|
|
|
|
| |
Moves the sentry setup to be one of the very first things run during
startup, so we are able to catch more errors, such as ones that might
occur while setting up logs.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Upgrades in channel check to support categories, and in the case of
overrides, roles too.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
| |
Co-authored-by: Joe Banks <[email protected]>
|
| |
|
| |
|
| |
|
|
|
|
| |
- Updates __main__.py to use the walk_extensions in utils/extensions.py
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Simplify internal structure & adjust var naming.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
This merges the newly added help cog.
Resolve slight conflict in the __main__ module caused by the the master
branch still assuming the presence of the legacy season manager cog.
|
| | |
|
| |
| |
| |
| | |
Extensions are no longer bound to their respective seasons.
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allows you to create Season objects which change the bots behavior. For example, a season can determine things like the avatar, the nickname, and which cogs are loaded. Season automatically changes according to the date range you specify when you create it.
* removing some hungarian notation.
* Automatic season changes will now always happen at a minute past midnight, no matter when the bot started.
* catching dunders in the glob.
* Refine Season Creation behaviour and structure.
* Added channel and role constants, refactored roles into NamedTuples, added role check decorators from the main bot, and added role checks for the season change feature. Yes this is duplicate code from our main bot, but it will just have to be like that for now until we get a bot core running.
* replacing the or with an xor and switching out the assert for a UserWarning
* New lockfile
* changing discord.py to discord-py to prevent pip bug from putting two of them in our lockfile
* fixing flake errors
* flake8
* Cleaned everything up, but I seem to have introduced some sort of infinite load loop? o.O
* Fixing up all bugs in the halloween cogs. This should be ready for merge now.
* Add avatar_path baseclass method for consistency.
While making it simpler to add avatar urls in new season extensions, it also allows the avatar resource path to be changed in a single place if needed in future.
* Avoid shadowing builtin `object`.
* Add debug mode, refine bot user editing on season load.
The changing of a bot's username and avatar is heavily ratelimited. While testing, restarting the bot and changing seasons is required, and hitting these limits are typical. Instead, when in debug mode, the avatar isn't set and only the nickname is changed to prevent unnecessary account edit requests.
In the case that the rate limit is hit when not in debug mode, there's an added fallback to use the nickname instead.
* Add cancel load_seasons task on SeasonManager un/reload.
Previously the load_seasons task was loaded and looping forever. Even if the cog was unloaded for some reason, it would still be running. On loading the SeasonManager again, it would create a new load_seasons task, while the old one still existed.
Adding the cancellation allows the task to end when the cog is unloaded or reloaded, and will help assist with live code changes during development at a later time where it's possible to reload this extension (perhaps when the pending bot core is implemented).
* get_season_class helper, season class attribs, fix admin id
Changes `get_season`'s date check to not initialise unwanted classes (to avoid needless loading of tasks which would otherwise cause unexpected behaviour). To do this, defining attributes of season classes have been moved from `__init__` as an instance variable, to the class variable level. This also results in `__init__` not needing to be defined for the `SeasonBase` class, and `super().__init__()` not needing to be called in individual season classes, making things cleaner/simpler for them.
Adds a helper function for retrieving a season class and combines two unnecessarily separate if statements. Credits to @MarkKoz for the suggestions.
Reverts the admin ID mistakenly changed in a previous commit.
* Update bot/seasons/halloween/hacktoberstats.py
Co-Authored-By: heavysaturn <[email protected]>
* Update bot/seasons/halloween/halloween_facts.py
Co-Authored-By: heavysaturn <[email protected]>
* No more property in halloweenfacts
* Changed all aliases to tuples
* Made tokens a seperate namedtuple
* Update bot/seasons/halloween/spookyavatar.py
Co-Authored-By: heavysaturn <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
correct path. (#43)
* Improving some docstrings and making it look in ./bot/cogs for cogs.
* Removing pointless stuff from a docstring
|
|
aiohttp, fixing broken logging, ignoring irrelevant loggers, and turning the script into a valid module script.
|