Commit Graph

21 Commits

Author SHA1 Message Date
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
91594646c3 simplify period deactivation logic, refactor advance_state logic into check_not_finished wrapper 2021-02-13 05:14:42 -06:00
Xevion
2eb44b56e4 improve models relationships, add state management to Period model 2021-02-13 05:00:20 -06:00
Xevion
7e578fb132 begin switching to sqlalchemy for database management 2021-02-13 03:23:00 -06:00
Xevion
ea825b9a30 switch to pipfile, new tests 2021-02-12 23:19:35 -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
Xevion
5defafa36e begin refactoring into namedtuple style, add period setup, transition to more modular and safer database state management 2021-02-09 14:32:32 -06:00
Xevion
294b34abe0 fixed bot not clearing old submission rows, fixed bot trying to use database before initialization, forgot to commit in deleted submission handling 2021-02-08 01:13:39 -06:00
Xevion
573d8aa06a automatic deleted submission database updating 2021-02-08 00:49:56 -06:00
Xevion
28c425ba9e complete submission tracking in database, old submission auto deletion 2021-02-08 00:49:23 -06:00
Xevion
b2dc0fdc91 update README to current progress 2021-02-07 14:42:22 -06:00
Xevion
b748db0866 submission channel config command, basic submission filtering 2021-02-07 14:29:15 -06:00
Xevion
9cb226b502 permissions check, more db helper functions 2021-02-07 14:11:06 -06:00
Xevion
288f1e3a61 switch to bot commands extension style bot setup 2021-02-07 14:10:42 -06:00
Xevion
5f832de5f2 setup row adding/removal on guild changes, improved logging + basic command processing, add logging format to main file 2021-02-07 07:47:51 -06:00
Xevion
4527a3e427 fix async issues, add logging, get database to be created on startup 2021-02-07 07:04:16 -06:00
Xevion
0dadb30680 setup basic logging constants/handlers, write all table creation/update/basic fetching behavior sqlite statements 2021-02-07 06:23:25 -06:00
Xevion
71c6c3936b setup bot with feature list and command schema/list, update requirements.txt with aiosqlite 2021-02-07 06:22:32 -06:00
Xevion
3807c10feb gitignore 2021-02-07 05:38:08 -06:00
Xevion
b7d4a810e9 basic bot setup 2021-02-07 05:37:02 -06:00