Commit Graph

9 Commits

Author SHA1 Message Date
Xevion
b311700356 Expanded database testing
- Tested Submission.count descriptor
- Tested Submission.clear_other_votes
- Expanded Submission.advance testing to include exceptions, Submission
.active, Submission.completed and Submission.voting
- Changed db model __repr__ implementations to use f-strings
- Fixed Submission.update force kwarg not implemented.
- Small formatting changes, new TODO, noinspection on protected access
- Votes setter now removes duplicate keys (maintains order)
- Removed 'aiosqlite' from Pipfile general package requirements
2021-02-19 03:29:53 -06:00
Xevion
63f4c594b7 Improved 'leaderboard' command embed formatting
- Added proper vote count to leaderboard
- Supported shared rankings in leaderboard
- New generator in helpers 'ending_iterator'
2021-02-18 09:31:16 -06:00
Xevion
eb93b9f3bf Fix critical mistake in Submission.clear_other_votes
- As well as other possible flaws in various functions of the bot's
operation.
- Fixed inactive prematurely closed Period's showing their final state
instead of Finished.
2021-02-18 09:04:55 -06:00
Xevion
813bb7ea1d Improve permission_explanation for prematurely closed Periods
- Periods closed improperly through the 'close' command were not being
shown properly through the 'status' command.
- Fixed error in Submission state checking in on_message handling.
- Added embed support to 'close' command message responses.
2021-02-18 08:04:27 -06:00
Xevion
1dc9c7d435 Implemented generic command error handling
Also:
- Removed emotes from some of the error messages.
- Changed how emotes were placed into the leaderboard slightly
- Moved around TODO strings into proper files and added more.
- Corrected main.py cog loading references.
- Improved ContestBot.reject with message references and used built-in
delete_after keyword argument.
- Minor docstring/light formatting
2021-02-18 06:07:40 -06:00
Xevion
8164d528a5 Used Embeds in all messages sent
Additionally, helper methods and new constants for Embed colors have
been added to simplify this process of sending messages with embeds.
Colors have been chosen, too.

Extra: The ContestCommandsCog has been given a
name kwarg for the 'help' command to display it better.
2021-02-18 05:11:06 -06:00
Xevion
5a4da4cec0 Implement simple 'status' command
Implements the status command, creating a new Submission.permission_explanation
function in the process. Also changes the leaderboard command's embed
formatting slightly.
2021-02-18 04:31:45 -06:00
Xevion
95a87cb6dd Implemented 'leaderboard' command
This takes use of the previous commit's changes: the Submission.count
column.
2021-02-18 04:07:59 -06:00
Xevion
1b777a3689 Split ContestCog into ContestCommandsCog and ContestEventsCog
expected_react_deletions and expected_msg_deletions were moved into bot
.py
There may be more edits included in this that I cannot see.
Added docstrings to get_message and fetch_message
2021-02-18 01:35:33 -06:00