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
Xevion
39b0dc9a96
Enforce Period.states for on_raw_reaction_add
...
New submissions are also properly enforced via Period.states, in-case
one makes it passed message permissions. Added helper reject method
2021-02-17 22:55:31 -06:00
Xevion
7427763b57
Implement Submission.update and get/fetch message helper functions
...
Added and implemented helper functions for getting and fetching messages
given a payload's integer channel and message IDs.
Implemented Submission.votes list modifications and Submission.update in
code (tested with real bot)
Committed constants.py containing ReactionMarker used in models.py
2021-02-17 05:18:25 -06:00
Xevion
c234487302
minor typehint fixes, make optional arg into optional kwarg, add additional TODOs, add basic attachment filtering
2021-02-15 05:22:22 -06:00
Xevion
e6d001f2b7
add voting reactions method, typehint the rest of the bot.py session.query calls
2021-02-14 01:19:56 -06:00
Xevion
1f46a98f37
add guilds to database on connection if not already in database, remove old db.py, switch from query filter_by to simple get by primary key
2021-02-13 08:35:00 -06:00
Xevion
5978068e9b
add sqlalchemy to bot startup, fix PyCharm typehinting for Session context manager, simplify autocommit and autoclose separate context managers into singular with kwargs
2021-02-13 05:23:12 -06:00
Xevion
c8e0ae1bf2
refactor base ContestBot logic to use new sqlalchemy models, commit exceptions.py
2021-02-13 05:18:34 -06:00
Xevion
89b16fdc04
refactor contest to bot folder, work on generic sqlite update query generator, work on new submissions/voting period logic commands, get away from get_submission_channel
2021-02-12 17:46:46 -06:00