aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween (follow)
Commit message (Collapse)AuthorAgeLines
* Deseasonify: rename `seasons` pkg to `exts`Gravatar kwzrd2020-03-28-1560/+0
| | | | | | | | | 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.
* Deseasonify: move decorators module under utilsGravatar kwzrd2020-03-28-4/+4
|
* Deseasonify: season-lock commands where appropriateGravatar kwzrd2020-03-26-3/+10
| | | | | | | | | | | | | | | | 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.
* Deseasonify: re-lock seasonal listeners with new `in_month`Gravatar kwzrd2020-03-24-5/+5
|
* Deseasonify: define all seasons in one placeGravatar kwzrd2020-03-21-16/+0
| | | | | | | | | | | | | | 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.
* Deseasonify: turn legacy docstrings into attrsGravatar kwzrd2020-03-19-7/+2
| | | | | | | | | | | | | | | 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]>
* Deseasonify: add colour attr to seasonal classesGravatar kwzrd2020-03-19-1/+3
| | | | | | 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.
* Deseasonify: season-lock listeners where appropriateGravatar kwzrd2020-03-15-1/+8
| | | | | We want to prevent listeners from performing season-specific behaviour outside of specific months.
* Deseasonify: adjust inheriting seasons in accordance with new systemGravatar kwzrd2020-03-08-9/+4
| | | | | Ensure that all inheriting seasons are now providing the right attrs as defined in `SeasonBase`.
* Deseasonify: remove redundant importGravatar kwzrd2020-03-07-2/+0
|
* Deseasonify: remove reference to non-existent task, redundant attrGravatar kwzrd2020-03-07-7/+0
| | | | | | | | | | 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.
* Add more pre-commit hooksGravatar MarkKoz2020-03-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Update dependenciesGravatar MarkKoz2020-03-04-6/+6
| | | | | | | | | | | | | 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
* Strip references to seasonalbot chatGravatar S. Co12020-03-01-5/+5
| | | | Redirect any output to seasonalbot commands, where relevant
* Merge branch 'master' into exclude-draft-prsGravatar Mark2019-12-03-2/+60
|\
| * Merge branch 'master' into monster_bioGravatar S. Co12019-11-30-1/+1
| |\ | | | | | | Relock
| | * Hotfix end date of HacktoberGravatar Sebastiaan Zeeff2019-10-31-1/+1
| | | | | | | | | | | | | | | 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.
| * | Refactor random generator to use a local instance rather than systemGravatar S. Co12019-11-30-11/+15
| | |
| * | Readd cog init & rename *.py fileGravatar S. Co12019-10-24-0/+3
| | |
| * | Merge branch 'master' into monster_bioGravatar quizzicaltrains2019-10-19-1/+1
| |\|
| | * Hacktober issue finder fix - divide count by 100 (#301)Gravatar scragly2019-10-20-1/+1
| | |\ | | | | | | | | Hacktober issue finder fix - divide count by 100
| | | * Merge remote-tracking branch 'origin/hacktober-issue-finder' into ↵Gravatar vivax37942019-10-12-2/+7
| | | |\ | | | | | | | | | | | | | | | hacktober-issue-finder
| | | * | Fixed forgetting to divide by 100.Gravatar vivax37942019-10-12-1/+1
| | | | |
| * | | | Merge branch 'monster_bio' of https://github.com/quizzicaltrains/seasonalbot ↵Gravatar quizzicaltrains2019-10-19-0/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | into monster_bio
| | * | | | Merge branch 'master' into monster_bioGravatar quizzicaltrains2019-10-18-0/+2
| | |\| | |
| | | * | | Merge branch 'master' into limit-command-channelsGravatar Leon Sandøy2019-10-14-0/+107
| | | |\ \ \ | | | | | |/ | | | | |/|
| | | * | | override global whitelist on all hacktober subcommandsGravatar Numerlor2019-10-04-0/+2
| | | | | |
| * | | | | Fixes the changes.Gravatar quizzicaltrains2019-10-19-5/+8
| |/ / / /
| * | | | Changed several things.Gravatar quizzicaltrains2019-10-18-20/+11
| | | | |
| * | | | Adds the monsterbio command!Gravatar quizzicaltrains2019-10-12-0/+55
| | |/ / | |/| |
* | | | Readd user agent to request headerGravatar kosayoda2019-10-23-1/+2
| | | |
* | | | Filter draft PRs in query url insteadGravatar kosayoda2019-10-23-11/+4
| | | |
* | | | Ignore Draft PRs in .hackstatsGravatar kosayoda2019-10-13-2/+10
|/ / /
* | / Merge branch 'master' into hacktober-issue-finderGravatar Kieran Siek2019-10-12-2/+7
|\| | | |/ |/|
| * adjust end date time to the end of the last day of october instead of the ↵Gravatar Numerlor2019-10-02-1/+1
| | | | | | | | beginning of it
| * Use rewritten override_in_channel to create a new whitelist for the commandGravatar Numerlor2019-10-02-3/+4
| |
| * fix typo in headerGravatar Numerlor2019-10-01-1/+1
| |
| * allow hacktoberstats commands to be used in the hacktober channelGravatar Numerlor2019-10-01-0/+4
| |
| * Add +14h to start UTC offset and -11 to end UTC offset to date_range in ↵Gravatar Numerlor2019-10-01-1/+1
| | | | | | | | query for Hacktoberfest user pull requests
* | had the wrong prefix in docstring xDGravatar vivax37942019-10-12-1/+1
| |
* | fixed " misplace meant.Gravatar vivax37942019-10-12-1/+1
| |
* | Added Beginner to docstring.Gravatar vivax37942019-10-12-1/+6
| |
* | Added logging to "get_issues".Gravatar vivax37942019-10-07-2/+7
| |
* | bug fixesGravatar vivax37942019-10-05-8/+13
| |
* | added beginnerGravatar vivax37942019-10-05-14/+36
| |
* | added embed.Gravatar vivax37942019-10-02-11/+28
| |
* | get issue dataGravatar vivax37942019-10-01-2/+37
| |
* | added hacktober-issue-finder cog.Gravatar vivax37942019-10-01-0/+18
|/
* Disable announcements and add hacktober icon.Gravatar Leon Sandøy2019-09-30-4/+10
| | | | | | | | 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.
* Merge branch 'master' into date-fixGravatar Leon Sandøy2019-09-30-111/+101
|\