aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/valentines (follow)
Commit message (Collapse)AuthorAgeLines
* Deseasonify: rename `seasons` pkg to `exts`Gravatar kwzrd2020-03-28-689/+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-1/+1
|
* Deseasonify: season-lock commands where appropriateGravatar kwzrd2020-03-26-3/+6
| | | | | | | | | | | | | | | | 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: 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-5/+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: adjust inheriting seasons in accordance with new systemGravatar kwzrd2020-03-08-10/+5
| | | | | Ensure that all inheriting seasons are now providing the right attrs as defined in `SeasonBase`.
* Update dependenciesGravatar MarkKoz2020-03-04-3/+3
| | | | | | | | | | | | | 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-1/+1
| | | | Redirect any output to seasonalbot commands, where relevant
* Update flake8-annotation pin & relintGravatar S. Co12019-09-26-1/+1
|
* Lint remaining filesGravatar S. Co12019-09-09-39/+43
| | | hacktoberstats cog handled in separate PR
* Replace paramater and return value docstring documentation with an extended ↵Gravatar kosayoda2019-08-19-4/+1
| | | | summary
* Merge pull request #230 from Suhail6inkling/icon_rotateGravatar Leon Sandøy2019-06-29-1/+3
|\ | | | | Cycle Evergreen Animated Server Icons
| * Changed all icon attributes to tuplesGravatar Suhail2019-06-22-1/+3
| |
* | Changed Path() arguments for readabilityGravatar AvianAnalyst2019-06-20-7/+7
|/
* Relint updated cogs for new linting rulesGravatar sco12019-05-28-1/+0
| | | | Fix last message scoping issue with show your project reactions
* Merge branch 'master' into docstring-lint-changeGravatar sco12019-05-28-3/+4
|\
| * Merge branch 'master' into pypi-dpyGravatar sco12019-05-11-2/+2
| |\
| | * Constants cleaningGravatar Suhail2019-04-23-2/+2
| | |
| * | Fix broken help getter patternsGravatar sco12019-05-11-1/+1
| |/ | | | | | | | | | | Utilize new ctx.send_help coro Bump d.py minor version & relock
* / Relint Seasonalbot with new linting rulesGravatar sco12019-04-24-48/+17
|/
* Re-add cog inheritance removed by poor merge conflict resolutionGravatar sco12019-03-30-7/+7
|
* Merge branch 'master' into flake8-docstringGravatar sco12019-03-26-9/+11
|\ | | | | | | Resolve merge conflicts
| * Merge pull request #132 from python-discord/dpy-cog-changesGravatar Chris Goes2019-03-25-15/+17
| |\ | | | | | | Add new Cog class inheritance & event listener decoration
| | * Adjust cog load logs for consistency, remove old setup function.Gravatar Scragly2019-03-26-1/+1
| | |
| | * Adjust cog load logs to use cog class name.Gravatar scragly2019-03-26-7/+7
| | |
| | * Migrate pickup lines cog to new d.py cogsGravatar sco12019-03-19-1/+1
| | |
| | * Merge branch 'master' into dpy-cog-changesGravatar sco12019-03-19-0/+44
| | |\
| | * | Add newlinesGravatar sco12019-03-05-2/+2
| | | | | | | | | | | | flake8 shame...
| | * | Add Cog inheritance to Valenstate cogGravatar sco12019-03-05-1/+1
| | | |
| | * | Set cog load log messages to infoGravatar sco12019-03-05-5/+7
| | | | | | | | | | | | Per the contributor doc
| | * | Merge branch 'master' into dpy-cog-changesGravatar sco12019-03-05-0/+85
| | |\ \
| | * | | Add new Cog class inheritance & event listener decorationGravatar sco12019-03-03-7/+7
| | | | | | | | | | | | | | | Mitigates recent breaking d.py changes
* | | | | Add docstring spacing for consistency.Gravatar scragly2019-03-25-0/+1
| | | | |
* | | | | Merge branch 'master' into flake8-docstringGravatar scragly2019-03-25-12/+12
|\| | | |
| * | | | Save the Date - changed constant variable namingGravatar Suhail2019-03-24-2/+2
| | | | | | | | | | | | | | | a requested change
| * | | | Moved the loading of the static JSON to the module namespaceGravatar Suhail2019-03-19-11/+12
| | |_|/ | |/| |
* / | | Docstring pass for Valentine's cogsGravatar sco12019-03-19-57/+73
|/ / /
* | | Requested ChangesGravatar Suhail2019-03-14-13/+14
| | |
* | | Pickup LinesGravatar Suhail2019-03-14-0/+43
| |/ |/| | | Includes the File for the cog containing the command in addition to the JSON file containing the list of pickup lines
* | Merge pull request #129 from darthdelay/myvalenstateGravatar S. Co12019-03-05-0/+85
|\ \ | |/ |/| Add .myvalenstate
| * Fix myvalenstateGravatar Darth Delay2019-03-05-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A bug appeared, that, if a user were to have only one or two Valenstates, would throw an IndexError, thus blocking the command to run at its fullest. This commit aims at fixing this bug by refining how the leftovers are handled: Before there was only one line determining the leftover string, that was than put into the embed's add_field method with some extra stuff around it and a fixed title. This has now been changed to having a variable title changing with the length of the matches list. For example if you have 3 original matches, the matches list would be of length 2, thus the original title is displayed. If you have only 2 or just 1 match however, the matches list would be of length 1 or 0, each of which feature their own title and text now. Some style changes have been made as well: the add_field and set_image methods are now one liners.
| * Update myvalenstate.py to address requested changesGravatar Darth Delay2019-03-05-1/+1
| | | | | | | | | | | | | | | | | | A few things have been changed: - The comment under STATES = json.load(file) was useless and has been removed - A logging statement has been put under the setup function: log.debug("MyValenstate cog loaded")
| * Add .myvalenstateGravatar Darth Delay2019-02-28-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #108 This pull request adds a beta version of the command myvalenstate. This command sends an embed containing a users valenstate to the channel it has been called in. The process used here is to first put the username into a spaceless, lower case form and than compare it to the countries listed under valenstates.json, put into the same form, using an implementation of the Levenshtein algorithm. This beta version already implements everything needed for the command to work properly. The follwing things are missing, not meant for the future full implementation or are subject to change if needed: - Short comments (25 missing) - name parameter in myvalenstate (not meant for staying/Debug) - Object names in valenstates.json (subject to change) (1) - Docstring for levenshtein (subject to change) - Docstring for myvalenstate (subject to change) (1) - The object names can be put into the right case to omit the operation operation on line 54 (lower_state = state.lower().replace(' ', ''))
* | Merge pull request #112 from RohanJnr/be-my-valentine-icemanGravatar Jeremiah Boby2019-02-27-0/+241
|\ \ | | | | | | Added command .bemyvalentine
| * | Address grammatical errors.Gravatar Scragly2019-02-27-7/+4
| | |
| * | Address DM failure, random_user logic, str[key] error.Gravatar Scragly2019-02-27-7/+16
| | |
| * | In the json file,i now have a list containing all the peoms/compliments in ↵Gravatar Rohan2019-02-22-2/+2
| | | | | | | | | | | | lists insted of dictionary.
| * | Added a function called valentine check which checks if the the valetine ↵Gravatar Rohan2019-02-21-29/+14
| | | | | | | | | | | | that has to be checked needs to be a poe/compliment/custom message.
| * | I did the follow changes:Gravatar Rohan2019-02-20-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | 1.Fixed indentation 2.Removed unneccessory comments 3.Re-named the varible Role to lovefest_role 4.Edited te random user function 5.Removed unneccessory f strings(just removing the f letter,lol)