aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py (follow)
Commit message (Collapse)AuthorAgeLines
* Remove the need for calling dotenv manually by using pydanticGravatar Chris Lovering2023-11-25-7/+0
|
* Use new logging util from bot-coreGravatar Chris Lovering2023-11-25-18/+0
|
* Apply fixes for ruff lintingGravatar Chris Lovering2023-05-09-1/+1
| | | | | Co-authored-by: wookie184 <[email protected]> Co-authored-by: Amrou Bellalouna <[email protected]>
* Bump botcore version (#1180)Gravatar Amrou Bellalouna2022-12-28-1/+1
| | | Co-authored-by: Amrou Bellalouna <[email protected]>
* Use BotBase from bot coreGravatar Chris Lovering2022-09-21-0/+6
|
* Use monkey patches from botcoreGravatar Chris Lovering2022-09-21-17/+3
|
* Patch d.py's message converters to infer channelID from the given contextGravatar Chris Lovering2021-12-05-0/+5
| | | | Discord.py's message converter is supposed to infer channelID based on ctx.channel if only a messageID is given. A refactor (linked below) a few weeks before d.py's archival broke this, so that if only a messageID is given to the converter, it will only find that message if it's in the bot's cache.
* Move Sentry Into InitGravatar Hassan Abouelela2021-11-12-0/+18
| | | | | | | | 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]>
* Merge remote-tracking branch 'upstream/main' into coloredlogsGravatar Numerlor2021-11-09-7/+6
|\
| * Isort: give the codebase a sortGravatar Matteo Bertucci2021-10-22-1/+0
| |
| * Monkey patch http.send_typing to catch 403sGravatar Chris Lovering2021-10-04-19/+7
| | | | | | | | Sometimes discord turns off typing events by throwing 403's, so we should catch those
* | Move logging to a separate moduleGravatar Numerlor2021-09-07-61/+2
|/
* Set logging level for async-rediscache to warningGravatar Numerlor2021-09-05-0/+1
| | | | Logs below warnings aren't relevant when working on the bot
* Merge branch 'main' into pipenv-to-poetryGravatar Chris2021-05-16-2/+16
|\
| * chore: Reformat the code to follow the style guildGravatar ToxicKidz2021-05-07-1/+1
| |
| * chore: Replace the remaining double quotes with double quotesGravatar ToxicKidz2021-05-04-1/+1
| |
| * Silence matplotlib's loggerGravatar Chris2021-04-12-0/+1
| |
| * Extend root aliases to support commands.GroupGravatar Chris2021-02-18-1/+5
| |
| * Add root alias support for commandsGravatar Chris2021-02-18-0/+9
| |
* | Load environment variables from .envGravatar Joe Banks2021-03-10-0/+7
|/
* Set character encoding for logging to utf-8Gravatar Sebastiaan Zeeff2020-11-30-2/+3
|
* corrected index error and solve issue spam issue of wiki commandGravatar Anubhav16032020-09-06-1/+1
|
* Set ayncio event loop to Selector on windows.Gravatar Numerlor2020-05-17-0/+6
| | | | | | | Python 3.8 set the default asyncio event loop on windows to Proactor, which is not supported in aiodns. Co-authored-by: MarkKoz <[email protected]>
* Lint remaining filesGravatar S. Co12019-09-09-1/+1
| | | hacktoberstats cog handled in separate PR
* Initial linting passGravatar S. Co12019-09-09-1/+1
| | | | Bot root, seasons cog, easter cogs, evergreen cogs, halloween cogs
* Changed Path() arguments for readabilityGravatar AvianAnalyst2019-06-20-1/+1
|
* Relint Seasonalbot with new linting rulesGravatar sco12019-04-24-1/+0
|
* Suppress excessive PIL debug logs.Gravatar Scragly2019-04-21-0/+1
|
* Merge branch 'master' into flake8-docstringGravatar sco12019-03-26-9/+30
|\ | | | | | | Resolve merge conflicts
| * Add TRACE logging level (Fixes #149)Gravatar Christopher Goes2019-03-20-9/+29
|/
* Allows you to create Seasons. (#64)Gravatar Leon Sandøy2018-11-27-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
* Created an uptime cog. Testing Azure CI deployment.Gravatar Leon Sandøy2018-11-18-0/+4
|
* The app was logging to the wrong directory. This is now fixed. Also silenced ↵Gravatar Leon Sandøy2018-10-12-2/+4
| | | | websockets logging
* Adding Pale Man, fixing all flake8 issues, converting halloweenify to use ↵Gravatar Leon Sandøy2018-10-11-7/+12
| | | | aiohttp, fixing broken logging, ignoring irrelevant loggers, and turning the script into a valid module script.
* Added loggingGravatar ninexball2018-10-06-0/+30