Commit Graph

51 Commits

Author SHA1 Message Date
Elnath 75a653270e Give permission to players to pin messages in their own channel 2021-07-26 23:08:04 +02:00
Elnath f0c164fd51 If auto end vote is off, ping GM when everybody has voted 2021-07-20 22:39:15 +02:00
Elnath 7e60012118 Commands now case-insensitive 2021-07-13 00:30:02 +02:00
Elnath 5760ea201e Added possibility to add more policies to the deck 2021-07-13 00:27:40 +02:00
Elnath 42619ac83d Made number of policies to win parametrable 2021-07-13 00:14:13 +02:00
Elnath 54a4e6cade Added StopGame command to reveal all secret channels 2021-07-06 10:38:08 +02:00
Elnath ccda132bf5 StartGame: fix: player channels correctly sorted 2021-07-06 10:17:14 +02:00
Elnath 2e7d31ad2a Added command for observers and gm to peek at all the deck 2021-07-05 21:02:58 +02:00
Elnath ee1619c757 Added possibility to manually trigger an update of the vote message 2021-07-01 14:57:13 +02:00
Elnath 45c16cb9ad Game creation: player channels are placed in turn order 2021-07-01 14:53:03 +02:00
Elnath 77678878cc Vote channel no longer exist. Announcements channel used instead 2021-07-01 14:52:48 +02:00
Elnath b4bad89089 Game: messages with player mentions now have permission to ping players to fix undefined-user problem on mobile 2021-06-21 23:27:02 +02:00
Elnath 1cb879aa09 GamesFile: added debug log 2021-06-20 21:44:05 +02:00
Elnath 06629433b8 Added command to force a shuffle of the draw and discard 2021-06-20 21:42:38 +02:00
Elnath a00120d559 Added possibility to cancel a legislative phase 2021-06-20 21:35:14 +02:00
Elnath 45afcee8fb Added possibility to cancel a running vote 2021-06-20 21:22:51 +02:00
Elnath daa2a094f2 Game: replaced logging.debug with logger.debug 2021-06-20 21:10:09 +02:00
Elnath b92ab9ce2f Small improvements on vote casting 2021-06-20 21:08:19 +02:00
Elnath 3b8fc9e76d Added docker files 2021-06-14 01:33:14 +02:00
Elnath 6f359abeaf Do not save to file every time a Game instance asks for it, but instead every 10 seconds if needed 2021-06-14 01:24:00 +02:00
Elnath 41af88bdb1 Game: annoucning when the deck is shuffled 2021-06-14 01:12:36 +02:00
Elnath b6184624f8 Implemented veto power 2021-06-14 01:08:33 +02:00
Elnath d06954b1a3 Implemented player killing 2021-06-13 20:20:49 +02:00
Elnath cc4990093e Added possibility to automatically end vote once everybody has voted 2021-06-13 19:59:08 +02:00
Elnath a9b9c4cbe7 Stop vote: mention gm as well as players in announcement 2021-06-13 19:33:56 +02:00
Elnath 532b81fa54 Implemented chaos counter for failed votes 2021-06-13 19:26:56 +02:00
Elnath 697ac095b4 Added an image for the bot 2021-06-13 18:51:30 +02:00
Elnath a9e82aeabd Game creation: send a welcome message to each player channel 2021-06-13 18:45:57 +02:00
Elnath 0792753673 Game creation: shuffle players and announce play order 2021-06-13 18:40:23 +02:00
Elnath ef65c2dda6 GM and observer roles created by the bot on game start 2021-06-12 21:16:10 +02:00
Elnath 03cee9963b Added possibility to confirm some actions 2021-06-12 20:34:27 +02:00
Elnath 15945d839c Game: using asyncio tasks to run in parallel operation that do not need to be sequential 2021-06-12 19:09:12 +02:00
Elnath 867f7c48eb Better function to announce when a policy is enacted 2021-06-11 01:20:30 +02:00
Elnath 3bc3077de8 Command to peek top three cards 2021-06-11 01:07:52 +02:00
Elnath ad439faed0 Game: decorator to save config after end of method 2021-06-11 00:55:34 +02:00
Elnath 4e825e10ce Draw and enact policies for legislative step 2021-06-11 00:45:13 +02:00
Elnath fa28e10f27 DeleteGame: added a try catch 2021-06-11 00:00:17 +02:00
Elnath 21810d3b53 SecretBot: added get_running_game_or_error_message utility function 2021-06-10 23:57:52 +02:00
Elnath f6d8bcb955 Game: renamed started_only decorator to game_started 2021-06-10 23:50:38 +02:00
Elnath 19e2811823 Implemented casting votes and ending the vote 2021-06-10 01:32:06 +02:00
Elnath 5f20403b9b Added start vote and fixed deocrator bug 2021-06-10 00:37:25 +02:00
Elnath 27c45f863f Game: decorator for raising explicit exception on methods that need the game to be started 2021-06-09 23:53:09 +02:00
Elnath 8d8b0bc4b9 Game: fixed unused param in delete function 2021-06-09 23:38:33 +02:00
Elnath b9d5b17954 Start and delete game: check if the user has rights to execute the command 2021-06-09 23:21:10 +02:00
Elnath b268527fa7 Start and delete game: send message on success 2021-06-09 23:08:23 +02:00
Elnath a5b05e81ad Storing guild object in game for easier access to discord objects 2021-06-09 23:03:58 +02:00
Elnath aae877693a Typos and reformat 2021-06-08 01:56:58 +02:00
Elnath f395e3561b Added delete game command 2021-06-08 01:54:36 +02:00
Elnath c42f017241 Added start game command 2021-06-08 01:41:18 +02:00
Elnath 3673a10669 Added GameFiles classes skeletons 2021-06-08 00:52:05 +02:00