aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen (follow)
Commit message (Collapse)AuthorAgeLines
* Fix broken avatar URL getter patternsGravatar sco12019-05-11-8/+6
| | | | | | avatar_url_as now returns an Asset object, which cannot be passed directly to aiohttp since it's expecting a string. Asset objects also provide a read method, returning the bytes directly so the aiohttp call is no longer necessary.
* Fix broken help getter patternsGravatar sco12019-05-11-8/+1
| | | | | | Utilize new ctx.send_help coro Bump d.py minor version & relock
* Update contributor docGravatar sco12019-04-02-31/+0
| | | | Remove April Fools lemon counter
* Add lemon counterGravatar sco12019-03-31-0/+31
| | | | For April Fools
* Re-add cog inheritance removed by poor merge conflict resolutionGravatar sco12019-03-30-3/+3
|
* Merge branch 'master' into hotfixGravatar sco12019-03-30-110/+172
|\
| * Merge branch 'master' into flake8-docstringGravatar sco12019-03-26-67/+85
| |\ | | | | | | | | | Resolve merge conflicts
| * | Add D400 to ignored linting error codes & revert affected docstringsGravatar sco12019-03-20-2/+2
| | |
| * | Update awkward docstring syntaxGravatar Johannes Christ2019-03-19-1/+1
| | | | | | | | | Co-Authored-By: sco1 <[email protected]>
| * | Update bot/seasons/evergreen/snakes/snakes_cog.pyGravatar Johannes Christ2019-03-19-1/+1
| | | | | | | | | Co-Authored-By: sco1 <[email protected]>
| * | Fix docstring typo Gravatar Johannes Christ2019-03-19-1/+1
| | | | | | | | | | | | | | | Kaizened Co-Authored-By: sco1 <[email protected]>
| * | Merge branch 'master' into flake8-docstringGravatar sco12019-03-19-1/+1
| |\ \
| * | | Docstring pass for Evergreen cogsGravatar sco12019-03-19-100/+167
| | | |
* | | | Add missing Cog inheritance to 8ballGravatar sco12019-03-26-1/+1
| |_|/ |/| |
* | | Merge pull request #132 from python-discord/dpy-cog-changesGravatar Chris Goes2019-03-25-68/+55
|\ \ \ | | | | | | | | Add new Cog class inheritance & event listener decoration
| * | | Remove unneeded fstring prefix.Gravatar scragly2019-03-26-1/+1
| | | |
| * | | Adjust cog load logs for consistency, remove old setup function.Gravatar Scragly2019-03-26-6/+1
| | | |
| * | | Recombine error handlers into the main listener. Fix cooldown revert.Gravatar Scragly2019-03-26-54/+45
| | | |
| * | | Remove unnecessary listener from local error handlerGravatar sco12019-03-20-1/+0
| | | |
| * | | Merge branch 'master' into dpy-cog-changesGravatar sco12019-03-19-1/+1
| |\ \ \ | | | |/ | | |/|
| * | | Add missed error listener decoratorGravatar sco12019-03-09-0/+1
| | | |
| * | | Migrate snakes cog to new d.py cogsGravatar sco12019-03-09-2/+2
| | | |
| * | | Merge branch 'master' into dpy-cog-changesGravatar sco12019-03-09-1/+1985
| |\ \ \ | | | |/ | | |/|
| * | | Set cog load log messages to infoGravatar sco12019-03-05-3/+3
| | | | | | | | | | | | Per the contributor doc
| * | | Add new Cog class inheritance & event listener decorationGravatar sco12019-03-03-3/+4
| | | | | | | | | | | | Mitigates recent breaking d.py changes
* | | | Use keyword-only arg, output usage if length requirement not metGravatar bramz2019-03-24-2/+4
| | | |
* | | | Change debug to infoGravatar bramz2019-03-24-1/+1
| | | |
* | | | Fix importsGravatar bramz2019-03-22-1/+0
| | | |
* | | | Correct improper import positioningGravatar bramz2019-03-22-1/+2
| | | |
* | | | Change path to evergreen directoryGravatar bramz2019-03-22-28/+7
| | | |
* | | | Add magic 8ball command, resolves #124Gravatar bramz2019-03-22-0/+55
| |_|/ |/| |
* | | changes lemon made me doGravatar Madison Mcdonald2019-03-18-1/+1
| |/ |/|
* | Merge pull request #133 from python-discord/snake-cogGravatar scragly2019-03-09-0/+1984
|\ \ | | | | | | | | | | | | Snake cog
| * | Formating and linter fixesGravatar Christopher Goes2019-03-05-36/+25
| | |
| * | Make this pig flyGravatar Chris Goes2019-03-04-22/+11
| | |
| * | Initial move of Snakes cog from the bot to seasonalbotGravatar Chris Goes2019-03-04-0/+2006
| |/
* / Added `bot_icon` attribute to `SeasonBase` to handle bot-only avatarsGravatar kosayoda2019-03-07-1/+1
|/ | | | | * The `icon` attribute of the `SeasonBase` class now defaults to the original server icon. * Getting avatar icons through `get_icon` by passing in `avatar=True` returns `bot_icon` if present.
* Merge pull request #120 from RohanJnr/small_changes_icemanGravatar scragly2019-02-27-1/+4
|\ | | | | | | | | added help message for .savethedate and edited the error_message for cooldown error
| * changed variable name from message to time_remainingGravatar Rohan2019-02-17-2/+2
| |
| * Changed the variable name error_message to messageGravatar Rohan2019-02-17-2/+2
| |
| * I did the following changes:Gravatar Rohan2019-02-17-1/+4
| | | | | | | | | | 1)Added a help text to .savethedate 2)Edited the error message for cooldowns so that it shows not only seconds remaining but also minutes(if cooldowntime>60 seconds)
* | Add direct reference to terning emoji to constants, fun cogGravatar sco12019-02-17-1/+4
|/
* 3rd code review. Added docstring.Gravatar astieman2019-02-16-0/+3
|
* 2nd code review complete. Default roll once and warning to roll at least ↵Gravatar astieman2019-02-15-2/+2
| | | | once implemented.
* Code review changes implemented. Reverted so error handling is done by base bot.Gravatar astieman2019-02-14-15/+7
|
* Readded fun.py file to evergreen and added roll command.Gravatar astieman2019-02-11-0/+40
|
* Cleanup BaseclassGravatar scragly2018-12-03-9/+1
|
* Allows you to create Seasons. (#64)Gravatar Leon Sandøy2018-11-27-0/+160
* 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]>