Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Merge branch 'master' into hanukkah_embed_iceman | 2019-05-11 | -7/+7 | |
|\ | ||||
| * | Constants cleaning | 2019-04-23 | -3/+0 | |
| | | ||||
| * | Merge pull request #166 from RohanJnr/april_fools_vids | 2019-04-23 | -0/+1 | |
| |\ | | | | | | | April fools vids | |||
| | * | added yellow color to contants.py | 2019-03-31 | -0/+1 | |
| | | | ||||
| * | | Allow prefix env, move db location. | 2019-04-21 | -1/+1 | |
| | | | ||||
| * | | Change devlog to seasonalbot-log channel. | 2019-04-21 | -1/+1 | |
| | | | ||||
| * | | Add seasonalbot-chat and python-discussion channels. | 2019-04-21 | -0/+2 | |
| |/ | ||||
* | | added doc strings to setup function and removed yellow color from constants ↵ | 2019-03-31 | -1/+0 | |
| | | | | | | | | cuz ill add it when i make PR for easter | |||
* | | using the Colours from constants.py and added 2 colors - blue for christmas ↵ | 2019-03-31 | -0/+2 | |
|/ | | | | and yellow for easter | |||
* | Merge pull request #133 from python-discord/snake-cog | 2019-03-09 | -1/+17 | |
|\ | | | | | | | | | Snake cog | |||
| * | Formating and linter fixes | 2019-03-05 | -3/+0 | |
| | | ||||
| * | Initial move of Snakes cog from the bot to seasonalbot | 2019-03-04 | -1/+20 | |
| | | ||||
* | | Merge pull request #91 from python-discord/join-code-dm | 2019-03-05 | -1/+1 | |
|\ \ | |/ |/| | AoC Join Code Refactor | |||
| * | Update static files for new code functionality | 2018-12-10 | -1/+1 | |
| | | ||||
* | | Add direct reference to terning emoji to constants, fun cog | 2019-02-17 | -0/+7 | |
| | | ||||
* | | added a color called bright_green to the colors class.gave the variables ↵ | 2019-02-07 | -0/+1 | |
| | | | | | | | | more descriptive names. | |||
* | | Change Lovefest role ID | 2019-02-05 | -1/+1 | |
| | | ||||
* | | Add Lovefest configuration, update project documents | 2019-02-05 | -0/+5 | |
| | | | | | | | | | | | | | | Add Lovefest role & channel IDs to bot constants Update environment variable name for seasonalbot (was hacktoberbot) Update Contributor doc to reference pipenv guide rather than the deprecated Seasonalbot GH wiki | |||
* | | Add valentines season | 2019-02-03 | -0/+1 | |
|/ | ||||
* | Send devlog message on season load. | 2018-12-05 | -1/+1 | |
| | ||||
* | Use contextlib.suppress, remove unnecessary `u` prefix. | 2018-12-04 | -2/+2 | |
| | ||||
* | Handle edit errors, tidy model and docs | 2018-12-03 | -22/+27 | |
| | ||||
* | Add season announcement support | 2018-12-03 | -2/+2 | |
| | ||||
* | Add season element set methods, add server icon change support | 2018-12-03 | -1/+1 | |
| | ||||
* | Allow Admin role env setting when debugging | 2018-12-03 | -1/+1 | |
| | ||||
* | Cleanup Baseclass | 2018-12-03 | -0/+1 | |
| | ||||
* | AoC countdown (#81) | 2018-12-02 | -0/+2 | |
| | | | | | | | | | | | | | | | | * Add countdown status and notifications * Remove debug print * flake8 my ass * Import order fixes * while is_in_advent() instead of while True * 2 * 60 => 120 * while is_in_advent() instead of while True in notifier | |||
* | Add AoC Cog (#66) | 2018-11-27 | -0/+19 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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) | 2018-11-27 | -4/+72 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]> | |||
* | Fixing flake8 errors, and making the gif post inside an embed. | 2018-11-20 | -0/+3 | |
| | ||||
* | fixing merge requests and preventing a race condition | 2018-11-20 | -1/+2 | |
|\ | ||||
* | | Cleaning up bats a bit | 2018-11-20 | -0/+1 | |
|/ | ||||
* | Add some comments and docstrings documenting the code and replacing minor ↵ | 2018-10-02 | -1/+0 | |
| | | | | issues. | |||
* | Implemented flake8 and a Discord Bot base. | 2018-10-02 | -0/+1 | |