94 Commits
Author SHA1 Message Date
c0de f1db0f62fc Await discord user interaction with name get 2022-12-10 17:57:53 -06:00
c0de fd5f5a7e7a I Completely disagree with this decision.
Remove the table for the original output
2022-12-10 12:36:36 -06:00
c0de fc2fe0a396 update help 2022-12-10 12:31:56 -06:00
c0de 292db8133d clear total points 2022-12-10 12:31:19 -06:00
c0de febdfaf355 Format points table with beautifultable 2022-12-09 23:20:54 -06:00
c0de 9702e1e77a Add reset command / module 2022-12-09 23:20:20 -06:00
c0de ff5e7f310a Sort endgame table by difference 2022-12-09 23:15:28 -06:00
c0de d7f4540dcd Install beautifultable 2022-12-09 22:44:04 -06:00
c0de 97a1ab1b2b disable too-few-public-methods pylint warning 2022-12-09 22:30:36 -06:00
c0de 43cfb49cd6 remove unused import 2022-12-09 22:28:51 -06:00
c0de 133af80aad Use BeautifulTable library to make nice tables :3 2022-12-09 22:28:37 -06:00
c0de 59d1dc4afb generate uuid on the model 2022-12-09 21:34:47 -06:00
c0de 7577e3afee generate the uuid on the model 2022-12-09 21:34:32 -06:00
c0de ad70870d8e Update readme with correct information 2022-11-12 01:01:27 -06:00
c0de a774d0a0fc It's baseball, not ghostball :) 2022-11-12 01:00:24 -06:00
c0de 512b3b05d2 Nedc to set difference to the class 2022-11-12 00:02:14 -06:00
c0de 0c4224314b Add ping to help message 2022-11-11 23:55:15 -06:00
c0de 1a3d2f0b14 update dockerfile 2022-11-11 21:29:05 -06:00
c0de 4318b58db0 remove comment 2022-11-11 21:23:17 -06:00
c0de a32bb598d2 Get rid of original/reference code, move everything to root 2022-11-11 20:45:49 -06:00
c0de dbaa692711 Add dockerfile 2022-11-11 20:16:36 -06:00
c0de 5557c16d8c Sync vscode settings because why not 2022-11-11 20:16:25 -06:00
c0de b7bd032e07 format with black 2022-11-11 20:07:23 -06:00
c0de 16a419f558 Fix circular import issue 2022-11-11 20:06:14 -06:00
c0de 03fcc5ef52 Uninstall dateparser 2022-11-11 13:03:26 -06:00
c0de 5f70ffd69b Init before registering command 2022-11-11 12:52:54 -06:00
c0de 460a3e08d2 Remove comment 2022-11-10 22:45:16 -06:00
c0de 51092e52a2 Add extra whitespace 2022-11-10 22:44:24 -06:00
c0de b067a6ca07 Use the new game manager 2022-11-10 22:43:49 -06:00
c0de bcbb74a3e1 Create composit class of available commands 2022-11-10 22:43:40 -06:00
c0de 0ed4ca4034 Add process_guess (this is the old guess.py) 2022-11-10 22:43:19 -06:00
c0de 2d8dc471f5 Add help manager 2022-11-10 22:42:45 -06:00
c0de 1b53d230cb Add points manager 2022-11-10 22:42:38 -06:00
c0de 13eab14f17 Add guess manager 2022-11-10 22:42:30 -06:00
c0de 3e98b025c7 Add end game manager 2022-11-10 22:42:20 -06:00
c0de f9a5a8023d Add new game manager 2022-11-10 22:42:08 -06:00
c0de 98de64b7aa Add new game manager 2022-11-10 22:41:42 -06:00
c0de 353f858bac Delete GameManager 2022-11-10 22:40:33 -06:00
c0de e05f023c4e Update docstrings 2022-11-10 22:13:07 -06:00
c0de 7818109a9c Fix database query 2022-11-10 22:10:58 -06:00
c0de 49f2630e38 Save to database seperately from getting points 2022-11-10 22:10:31 -06:00
c0de 175b02536c Refactor init to what is passed and defaults 2022-11-10 22:09:36 -06:00
c0de 5cf6b30eb2 Remove check_is_running decorator since it didn't work 2022-11-10 21:59:49 -06:00
c0de 7cf006cd4f Add help command 2022-11-10 21:58:55 -06:00
c0de 5131c4a3c1 linting 2022-11-10 21:46:42 -06:00
c0de fbf588a85e Show table of points 2022-11-10 21:46:18 -06:00
c0de bf8819fb46 Show total difference 2022-11-10 21:45:45 -06:00
c0de 946d826dc4 Only update the guess for the current game 2022-11-10 21:05:21 -06:00
c0de 83b6bda124 Linting changes 2022-11-10 21:03:38 -06:00
c0de e68ef52292 Add calculation for the difference score 2022-11-10 21:02:20 -06:00
c0de 3435e4ce7a Fix to the point of being runnable 2022-11-09 11:48:31 -06:00
c0de eb5ed5fe9e update readme 2022-10-30 22:56:41 -05:00
c0de e39a19da55 [refactor] Processing guesses moved to own class 2022-10-30 22:24:51 -05:00
c0de f6860bb43f maybe, maybe not 2022-10-27 00:18:12 -05:00
c0de 3c5fead8b0 Allow the bot to see channel messages 2022-10-27 00:04:54 -05:00
c0de b6377aef97 no change database path 2022-10-26 23:53:46 -05:00
c0de 9a39399936 Don't need to pass game manager instance 2022-10-26 23:37:23 -05:00
c0de 65bc29cfa1 Refactor and get the game to run (in DMs) 2022-10-26 23:36:41 -05:00
c0de b0c6b8e5bb Create database before starting the client 2022-10-26 23:35:52 -05:00
c0de e9d80e5e62 Add PlayerModel to create_models 2022-10-25 23:18:52 -05:00
c0de 1a62747da1 Difference code in place 2022-10-25 23:17:57 -05:00
c0de efe58e0278 Add Player Model for total points 2022-10-25 23:17:06 -05:00
c0de 84e4975d27 The game is GameManager now 2022-10-25 23:16:33 -05:00
c0de 3dfbb247da Change guess update logic 2022-10-25 19:23:54 -05:00
c0de f4bd33b4d5 Fix linting on Game
Also default guess value to 0
2022-10-24 20:53:51 -05:00
c0de 545e0442eb Fix linting on database models (except todo) 2022-10-24 20:31:47 -05:00
c0de e0dc0e6b78 Fix linting issues with client 2022-10-24 20:22:04 -05:00
c0de b154efb6cc Fix linting issues with main 2022-10-24 20:06:50 -05:00
c0de 57a808f19d Create lint log 2022-10-24 20:05:21 -05:00
c0de b32d76bf16 The decorator should be outside of the class 2022-10-24 20:02:26 -05:00
c0de 07ecd2248c Format with Black 2022-10-24 20:00:39 -05:00
c0de 7d684d8b9d Install pylint and black
for formatting and ensuring the code conforms to PEP standards
2022-10-24 19:59:18 -05:00
c0de 1845e42488 Use the with statement on the game class
This is because the class is a context manager / state machine
2022-10-24 19:55:50 -05:00
c0de 7101db5394 We'll be fine with one database connection, and don't have to repeat ourselves 2022-10-24 19:13:34 -05:00
c0de 49d3672936 Add extra time tracking 2022-10-24 19:12:48 -05:00
c0de 8ab3cd611f These need to be named properly 2022-10-24 18:49:26 -05:00
c0de e771ea8764 Ignore databases 2022-10-24 18:47:12 -05:00
c0de 321fa9ae7c It's an Integer 2022-10-24 18:43:38 -05:00
c0de 59b8c673e0 Use correct model class 2022-10-03 20:08:42 -05:00
c0de 311dcac071 Fix import paths 2022-10-03 20:08:27 -05:00
c0de b95e5d6bad Install dateparser 2022-10-03 20:07:01 -05:00
c0de c08eb54081 Update readme 2022-10-03 19:58:48 -05:00
c0de 2cc664dd06 Fix class identification for ide 2022-10-03 19:47:55 -05:00
c0de 5ece30bb03 Need to pass a game instance to bare function calls 2022-10-03 19:42:42 -05:00
c0de 348ae34dd3 Add !points command
Trying to parse this "PointsService"... wtf is even going on there
2022-10-03 19:41:02 -05:00
c0de 305dda222f Add !guess command 2022-10-03 19:33:15 -05:00
c0de 65192ab2c2 Begin adding game logic 2022-09-23 21:41:03 -05:00
c0de 67a018f897 Add the bot entrypoint 2022-09-23 21:40:51 -05:00
c0de 04e1556d2d Add discord client implementation 2022-09-23 21:40:35 -05:00
c0de ddbb884a43 Add database models 2022-09-23 21:40:18 -05:00
c0de b43ee8a39c Set environment variables and start the game 2022-09-23 21:39:58 -05:00
c0de 38b549e10c New app - Install dependencies 2022-09-23 21:39:37 -05:00
c0de 2566104b0d Add readme for the idea 2022-09-23 17:48:40 -05:00
c0de 20ca7befdf Initial Code 2022-09-23 17:40:31 -05:00