aboutsummaryrefslogtreecommitdiffstats
path: root/bot/resources (follow)
Commit message (Collapse)AuthorAgeLines
...
* Add private board membership total to embed (#82)Gravatar sco12018-12-02-1/+1
| | | | | | * Add private board membership total to embed * Fix flake8, description typo
* Add AoC Cog (#66)Gravatar sco12018-11-27-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Advent of Code cog * Update leaderboard last updated time when updating the leaderboard Remove unnecessary test command * Shift leaderboard embed build into helper method * Frame global leaderboard command * Split leaderboard entries check into helper method * Refactor commands to support global board * Remove unused leaderboard update, wall off global leaderboard command Hide & short circuit global leaderboard command until implemented Fix faulty logic causing board to be reloaded regardless of the age of the cache * Add help shortstrings * Use command builtin to disable global lb command until implemented * Add AoC global leaderboard parsing * Update pipfile and lock Tweak global lb regex Tweak method names for clarity * Refactor for global leaderboard command Separate Global & Private leaderboards into distinct classes * Add missing header divider * Move token for Joseph * Phrasing We're still doing phrasing, right? * Clarify variable name
* Allows you to create Seasons. (#64)Gravatar Leon Sandøy2018-11-27-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
* Add typing context manager where appropriateGravatar sco12018-11-20-1/+2
| | | Some minor syntax & logic fixes where noticed
* Fixing flake8 errors, and making the gif post inside an embed.Gravatar Leon Sandøy2018-11-20-8/+1
|
* fixing merge requests and preventing a race conditionGravatar Leon Sandøy2018-11-20-0/+41
|\
| * Add cog to play spooky soundsGravatar meooow252018-10-14-0/+41
| | | | | | | | | | | | * Add SpookySound cog * Add sound files * Add PyNaCl to Pipfile (required for Discord voice)
* | Cleaning up bats a bitGravatar Leon Sandøy2018-11-20-0/+8
| |
* | Solved merge conflictsGravatar Leon Sandøy2018-11-20-0/+0
|\ \
| * | Various minor fixes.Gravatar hundredrab2018-10-26-1/+1
| | |
| * | Add more spookifications.Gravatar hundredrab2018-10-22-0/+42
| | |
| * | Fix formatting and add docstrings.Gravatar hundredrab2018-10-21-0/+4
| | |
| * | Fix issues related to spookyavatar cog.Gravatar hundredrab2018-10-21-0/+7
| |/
* | It should work now.Gravatar Leon Sandøy2018-11-20-2/+4
| |
* | Minor changesGravatar Leon Sandøy2018-11-20-28/+0
| |
* | Merge branch 'vote-monster-refactor' of ↵Gravatar Leon Sandøy2018-11-20-0/+28
|\ \ | | | | | | | | | https://github.com/dfitzpatrick/hacktoberbot into dfitzpatrick-vote-monster-refactor
| * | Resolved PR comments.Gravatar Derek Fitzpatrick2018-10-31-1/+1
| | |
| * | Merge branch 'master' of https://github.com/discord-python/hacktoberbot into ↵Gravatar Derek Fitzpatrick2018-10-31-0/+14
| |\| | | | | | | | | | vote-monster-refactor
| * | Resolved feedback from PR. Resolved lint extra spacing.Gravatar Derek Fitzpatrick2018-10-31-7/+1
| | |
| * | Merge branch 'master' of https://github.com/discord-python/hacktoberbot into ↵Gravatar Derek Fitzpatrick2018-10-12-0/+3
| |\ \ | | | | | | | | | | | | vote-monster-refactor
| * | | Fixed linting: Multiple imports on single line.Gravatar Derek Fitzpatrick2018-10-12-3/+5
| | | |
| * | | Refactor monstersurvey. Added leaderboard and show.Gravatar Derek Fitzpatrick2018-10-12-4/+28
| | | |
| * | | Merge branch 'deploy' of https://github.com/dfitzpatrick/hacktoberbot into ↵Gravatar Derek Fitzpatrick2018-10-11-1/+4
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31-vote-for-favorite-monster # Conflicts: # Pipfile
| * | | | Initial commit.Gravatar Derek Fitzpatrick2018-10-11-0/+5
| |/ / /
* | | / Adding the files this PR was supposed to haveGravatar Leon Sandøy2018-11-20-0/+28
| |_|/ |/| |
* | | Added cog for Halloween facts (#36)Gravatar Soumik Sarkar2018-10-13-0/+14
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added cog for Halloween facts * Posts a random Halloween fact to a channel at regular intervals. * Displays last posted fact on command. * Update README for Halloween facts * Markdown fix * Add a random spooky emoji to embed titles * Use on_ready instead of wait_until_ready * Relocate halloween facts to a JSON file * Update Hacktoberbot channel ID * Remove unnecessary variable * Update JSON file location
* | Adding Pale Man, fixing all flake8 issues, converting halloweenify to use ↵Gravatar Leon Sandøy2018-10-11-0/+3
|/ | | | aiohttp, fixing broken logging, ignoring irrelevant loggers, and turning the script into a valid module script.
* Implement Halloweenify feature.Gravatar Marko Kovačević2018-10-09-0/+79