Commit graph

267 commits

Author SHA1 Message Date
Sakimori af7112367d added m;leagueschedule 2021-01-15 04:27:20 -05:00
Sakimori 5eec52db62 made tournaments use rotations when leagues are assigned 2021-01-15 03:22:26 -05:00
Sakimori e77e406470 adjusted tournaments to work on the same schedule system as leagues 2021-01-15 03:18:41 -05:00
Sakimori 8d6f6ab33a direct start to postseason, partial series support 2021-01-15 02:23:44 -05:00
Sakimori 19072f2111 implemented tiebreakers and postseason tournament 2021-01-15 02:12:30 -05:00
Sakimori 333476548d standings and wildcard commands added 2021-01-14 23:39:08 -05:00
Sakimori 4acaca0fb1 added the startleague command 2021-01-14 02:37:23 -05:00
Sakimori b83bf771ca made leagues save properly after autoplaying 2021-01-14 00:37:58 -05:00
Sakimori da8607e295 fixed some blocking bugs in startleague 2021-01-14 00:25:24 -05:00
Sakimori 5826574a1d startleague command attempt 2021-01-14 00:20:43 -05:00
Sakimori 3def1378a9 bugfixes for veil and twilight, changed veil text and emoji 2021-01-13 23:21:28 -05:00
Sakimori ae256de645 implemented thinned veil and twilight weathers 2021-01-13 22:34:46 -05:00
Sakimori 22115ee2c3 closed #142 2021-01-13 20:55:12 -05:00
Sakimori cbcb950d78 implemented league saving and loading 2021-01-13 19:20:58 -05:00
Sakimori 8255d838e5 got leagues actually functioning, i think 2021-01-13 06:32:28 -05:00
Sakimori b6e4c1069c lots of league database foundation 2021-01-13 04:23:48 -05:00
Sakimori df09a2cf97 added standings to league object and began collecting them from prestige.py 2021-01-11 06:36:13 -05:00
Sakimori 31930aab63 this should add all the infrastructure needed to run a league's games (and only *run* them, no data yet). untested 2021-01-11 06:17:14 -05:00
Sakimori c04e96f8f5 Merge branch 'indev' of https://github.com/Sakimori/matteo-the-prestige into indev 2021-01-08 13:55:59 -05:00
Sakimori 0a1f1a9e73 added connection closing statements to most database.py functions 2021-01-08 13:55:52 -05:00
Genderdruid ad6cc90e82 Update the_prestige.py 2021-01-08 10:15:50 -08:00
Genderdruid d34efcad4b a few minor text updates 2021-01-08 10:10:01 -08:00
joe 97546d7be5 erroneous merge 2021-01-06 17:45:39 -08:00
joe c15f500058 Final tweaks 2021-01-06 17:42:33 -08:00
joe c65d81a5e6 fix help text 2021-01-06 17:42:33 -08:00
joe b76c7de8bc text tweaks 2021-01-06 17:42:33 -08:00
joe b17d3a3042 pitcher fix 2021-01-06 17:42:33 -08:00
joe ba70ac4f31 some fixes 2021-01-06 17:42:33 -08:00
joe 56a1b06d28 rebase latest master 2021-01-06 17:42:33 -08:00
joe 5bc2c520ea discord commands 2021-01-06 17:41:52 -08:00
Astrid 47b5788a09 Store bot data in a data/ directory 2021-01-06 11:53:51 +01:00
Sakimori 9b7038990f strip trailing spaces from team name and slogan 2021-01-05 17:28:45 -05:00
Sakimori 84cb16ab5d added --bestof and --finalsbestof flags to tournament 2021-01-05 15:31:50 -05:00
Sakimori ccd7702db8
Merge pull request #127 from jmaliksi/jm_fix_imports
Fix onomancer import
2021-01-05 14:29:36 -05:00
Sakimori 803f633a9e changed timestamp to uuid strings, adjusted variable names in the_prestige and main_controller 2021-01-05 14:26:54 -05:00
joe 60196929fd erroneous not 2021-01-05 09:15:54 -08:00
joe 56fbe809c7 fix onomancer import with add_pitcher 2021-01-05 09:09:41 -08:00
Sakimori d331338d93 stopped games printing end-card 1 update too soon 2021-01-04 20:35:59 -05:00
Sakimori 6235564622 fixed random game end cards for real this time (probably) 2021-01-04 20:23:32 -05:00
Sakimori 5cb23c87df games will stay on "play blall" for a shorter time 2021-01-04 19:42:42 -05:00
Sakimori 772aa2f770 deletes tournament setup message, ensures more than 1 team in a tournament 2021-01-04 16:17:55 -05:00
Sakimori 32136b51dc added error message to addplayer if pitcher/batter is not specified 2021-01-04 15:45:30 -05:00
Sakimori 5870325254 Merge branch 'indev' of https://github.com/Sakimori/matteo-the-prestige into indev 2021-01-04 15:24:44 -05:00
Sakimori 5f5ee9e1f0 fixed bug in game_watcher, added game_freeze check to tournament and randomgame 2021-01-04 15:24:19 -05:00
Genderdruid 4e9e02ba12 updated the readme and the help commands to keep them consistent when it makes sense 2021-01-04 08:42:02 -08:00
Sakimori 864c1af655 made day=1 give first pitcher, not second 2021-01-03 23:43:04 -05:00
Sakimori ee11aca3c0 added a -d or --day flag to force rotation slots in games 2021-01-03 23:41:31 -05:00
Sakimori f391577792
Merge branch 'indev' into leagues 2021-01-03 23:23:02 -05:00
Sakimori ff582d8709 finished implementing tournaments, slowed game ticks to 8 seconds 2021-01-03 23:18:45 -05:00
Sakimori a2a6e9d7bb added m;randomgame 2021-01-03 17:59:13 -05:00
Sakimori 63db3ba1be added handling for teams without slogans 2021-01-03 17:16:05 -05:00
Sakimori 1838e9198a added weather to discord embed at end of game 2021-01-03 16:57:41 -05:00
Sakimori 5e00d0d271 moved the team fuzzy searching to a get_team_fuzzy_search for ease of coding 2021-01-03 16:48:51 -05:00
Sakimori 5697c5dbb3 got leagues up to date with indev 2021-01-03 16:33:45 -05:00
Sakimori 222d2f2fba fixed some inconsestencies with new commands 2021-01-03 16:29:56 -05:00
Sakimori 2c14d7cf73 added win values to debug tourney to test win seeding 2021-01-03 06:56:40 -05:00
Sakimori 527170a81e fixed tournament blocking everything else 2021-01-03 06:30:07 -05:00
Sakimori d5f2ceeac9 set max innings of debug tournament round to 3 for faster testing 2021-01-03 06:09:27 -05:00
Sakimori 12255e3eef m;starttournament now starts a debug tournament 2021-01-03 06:06:51 -05:00
Sakimori f16cee6f84 added error messages to not enough lines on new commands 2021-01-03 03:55:03 -05:00
Sakimori 28dca13f53 moved league work to new branch in case not ready for monday release 2021-01-03 03:51:45 -05:00
Elijah Steres 09375e9fe9 add game query param that bumps game to top 2021-01-02 11:52:06 -05:00
Sakimori e2eb77b1ef fully implemented heavy snow and slight tailwind weathers. removed supernova from the pool 2021-01-02 05:42:14 -05:00
Sakimori 23431ba424 Merge branch 'indev' of https://github.com/Sakimori/matteo-the-prestige into indev 2021-01-02 04:03:05 -05:00
Sakimori 00e4426e56 added moveplayer, removeplayer, and addplayer for roster management 2021-01-02 04:02:57 -05:00
Elijah Steres 5bd45bacf8 make startgame command post link to league 2021-01-02 03:05:54 -05:00
Sakimori 07a7c5c3c3 added rotations to teams, and automatic conversion. updated saveteam to new format, supporting rotation. games choose random pitcher 2021-01-02 01:10:52 -05:00
Sakimori 9c4eae8ec1 fixed game_watcher, maybe 2021-01-01 16:24:05 -05:00
Sakimori acdc160ab0 fixed outs not displaying, fixed game end notification in discord 2021-01-01 12:08:11 -05:00
Elijah Steres 9c92afedc2 add league filters 2020-12-31 20:19:57 -05:00
Sakimori 2d6ba652b7 added is_league flag to game updates 2020-12-31 17:06:56 -05:00
Sakimori 0ed85a7975
adjusted start_delay and end_delay tick times 2020-12-31 15:13:02 -05:00
Sakimori 20e7e80760
Merge pull request #84 from Sakimori/redacted
website branch is... done. we think.
2020-12-31 14:51:36 -05:00
Sakimori 240f545468 corrected a double await 2020-12-31 14:19:54 -05:00
Sakimori 986135fd89 added error message if team not found 2020-12-31 14:13:36 -05:00
Sakimori 3ee7c71362 added --league [league name] flag to startgame (also -l [league name]) 2020-12-31 14:09:50 -05:00
Sakimori dfd5fd8940 added the fuzzy search to startgame 2020-12-31 14:04:55 -05:00
Sakimori 42524cb434 removed an unused user.mention 2020-12-31 13:59:30 -05:00
Sakimori debffec9b0 first attempt at adding league or user info to the game display 2020-12-31 13:41:32 -05:00
Sakimori 5e51648484
Update the_prestige.py
removed all those commented lines
2020-12-31 04:02:33 -05:00
Sakimori b93fffba64 removed the 10 team limit 2020-12-31 03:53:59 -05:00
Sakimori 1cf79ce861 tidyed up some half-inning and game end weirdness, fixed end_delay, added game end pings and summary embeds in discord 2020-12-31 03:32:01 -05:00
Sakimori 36a626a8f6
increased precision of master_games_dic keys 2020-12-30 18:03:01 -05:00
Sakimori 7e2c275b6a merged import and other misc changes from master 2020-12-29 20:20:35 -05:00
joe ce87683957 Pull real stats if present 2020-12-29 13:26:50 -08:00
Sakimori be18cf83b7 built rudimentary css grid for games, loader.js now directs updates to appropriate grid square as they come in 2020-12-28 19:48:50 -05:00
Danny Ben-David c059992ec8
[tweak] "Game for {user.mention}:"
`user.display_name` doesn't tag the user who requested the game. Using `user.mention` makes at tags, which also means users can search for games using Discord search (`Game for mentions:@foobar`)
2020-12-28 18:06:50 -05:00
Sakimori 96c9692d09
Merge pull request #57 from esSteres/master
Add import command for onomancer url (#26)
2020-12-28 16:32:48 -05:00
Genderdruid 96a0a8a38e Updated README and help text in the_presige
Updated all of the help text for the commands to match the text in the readme and updated the readme, fixing a few spelling/grammar errors and removing the section about and all references to the now disabled pickup game funtionality.
2020-12-28 08:05:19 -08:00
Elijah Steres 1812553c9b cache player retrieved from collection url 2020-12-28 10:27:20 -05:00
Elijah Steres 8bc3abdf4d add m;import - no cache for collections currently 2020-12-28 04:09:02 -05:00
Sakimori 2a40cbfbd2 got a web page with all current games' full display states available in json 2020-12-28 03:21:47 -05:00
Sakimori 62a96521c5
Update the_prestige.py
set max concurrent games to 10 due to a misunderstanding of the rate limits doc, removed setupgame
2020-12-27 22:22:40 -05:00
Sakimori c1e7f189d6 added assignowner and deleteteam 2020-12-27 19:05:49 -05:00
Sakimori fd9e3a9c4d
Merge pull request #51 from Genderdruid/master
updated README to be clearer and better organized, also fixed Matteo self-referring with 'I' instead of 'we' in a few places
2020-12-27 17:31:44 -05:00
Sakimori b76a3fb3c0 moved weathers to an external config 2020-12-27 17:27:30 -05:00
Genderdruid 4e5653761e Update the_prestige.py 2020-12-27 14:22:11 -08:00
Sakimori 8ba7a4ff45 added weather and stolen bases 2020-12-27 16:51:41 -05:00
Sakimori 8348521f12 added a return to errored startgamecommands, adjusted help text to reflect new default 2020-12-27 14:47:32 -05:00
Sakimori 7d111b1fdd fixed typeerror at lines 131 and 135 of prestige 2020-12-27 14:40:40 -05:00
Sakimori 743c18e4f5 fixed another start game bug 2020-12-27 14:38:34 -05:00
Sakimori 30e9baef15 fixed broken game start, added call for default-length in startgame 2020-12-27 14:36:25 -05:00
Sakimori 856ba2e41a added a note before each game with display name of creator 2020-12-27 14:28:05 -05:00
Sakimori 3750fd439a fixed bug with saveteam errors, double play not always advancing runners, and emoji deletion on pagination 2020-12-27 14:23:17 -05:00
Eli 7d0dc57bf8 Make showteam a little more forgiving 2020-12-27 04:32:19 -05:00
Eli ee61e9a923 Merge remote-tracking branch 'upstream/master' 2020-12-27 04:03:41 -05:00
Eli 2305d55624 refactor commands into objects 2020-12-27 03:42:09 -05:00
Sakimori 929e095f9b fixed the reaction remove 2020-12-27 03:21:48 -05:00
Sakimori 7858e92852 have bot remove reactions to page flipping 2020-12-27 03:00:29 -05:00
Sakimori af59437abe disable debug speed 2020-12-27 02:12:45 -05:00
Sakimori c91ab77b6f sim overhaul: more baserunner motion, less double plays, better fielders' choice text 2020-12-27 02:06:43 -05:00
Sakimori bade9c4ede added a game queue for more than 45 consecutive games 2020-12-27 00:52:34 -05:00
Sakimori 43736e28f5 delete startgame message after game start 2020-12-26 22:53:32 -05:00
Sakimori e369099544 added team owner id to database 2020-12-26 21:53:46 -05:00
Sakimori 663fc6c3f6 added countactivegames admin command 2020-12-26 21:36:39 -05:00
Sakimori 7f5df5b47b fixed the math for extra innings 2020-12-26 21:21:43 -05:00
Sakimori dbef439f76 cleanup after setupgame timeout properly 2020-12-26 21:15:19 -05:00
Sakimori 41c924a9ef fixed some bad attribute calls and amended the extra innings calc to account for the ghost inning at the end of games 2020-12-26 21:06:33 -05:00
Sakimori d76551d79d added a max inning indicator to embed 2020-12-26 21:00:05 -05:00
Sakimori 97cde3652e fixed a missing return 2020-12-26 20:56:10 -05:00
Sakimori 3e1ce7d2bf missed some close quotes too 2020-12-26 20:43:18 -05:00
Sakimori d330a36849 missed a paren 2020-12-26 20:42:25 -05:00
Sakimori 145cd6a8c0 made it more clear which team is batting 2020-12-26 20:35:38 -05:00
Sakimori 4330c57b67 made my own dang name consistent 2020-12-26 20:28:36 -05:00
Sakimori 1aac5fbc1a
Merge branch 'master' into master 2020-12-26 20:27:03 -05:00
Sakimori b3d0f8c731 added more information to end_of_game embed 2020-12-26 20:23:44 -05:00
RLB a2817a9710 i think this is just atom removing trailing whitespace when i save 2020-12-26 20:18:27 -05:00
RLB a334d43c55 fix 0 star display, hopefully 2020-12-26 20:18:01 -05:00
Sakimori 29a87f4234 fixed the teams search list out of range error with a single "-1" 2020-12-26 20:11:05 -05:00
Sakimori 84e2bccb75 added 120 second timeout to setupgame 2020-12-26 20:09:19 -05:00
Sakimori c6ca204c7f added "game_freeze" to config, set 1 to stop new games. also added 30 inning limit to non-owners 2020-12-26 20:02:39 -05:00
Sakimori 1b8a597af8 removes trailing spaces from player names in saveteam 2020-12-26 18:12:38 -05:00
Eli 696d065cb7 add help command 2020-12-26 16:35:18 -05:00
Sakimori da38583463
Update the_prestige.py
added a *single space*
2020-12-26 05:23:01 -05:00
Sakimori cab164aec8 made the search results title reflect the actual search, limited search length 2020-12-26 05:09:49 -05:00
Sakimori d8a1817bfd fixed another typo 2020-12-26 04:51:43 -05:00
Sakimori 00fbbf71a5 added stat collection, fixed a database bug, fixed a typo, added showallteams and searchteams 2020-12-26 04:46:42 -05:00
Sakimori 1d20d8b862 fixed a stray parenthese 2020-12-26 01:07:10 -05:00
Sakimori c9f0ebfc93 required at least 2 innings for startgame, checks player name length in save team 2020-12-26 00:27:14 -05:00
Sakimori 0ba2f35978 pins and unpins games 2020-12-26 00:17:49 -05:00
Sakimori a1970d6077 gave half-innings and start of game some room to breathe 2020-12-26 00:08:45 -05:00
Sakimori 14c324c2cb moved the bases into the embed, increasing max games three-fold 2020-12-25 20:47:24 -05:00
Sakimori 5f8de16d51 removed stray dot in team embeds 2020-12-25 20:38:03 -05:00
Sakimori b81b237fd8 fixed the error messages 2020-12-24 05:43:23 -05:00
Sakimori 1197bbbccc removed a debug print, added startgame with 2 saved teams 2020-12-24 05:18:29 -05:00
Sakimori ab8151206b added ;saveteam, ;showteam, ;showplayer 2020-12-24 04:51:38 -05:00
Sakimori 2ec0efefc9 fix soulscream display bug, fixed sac fly runs not scoring properly 2020-12-23 18:02:55 -05:00
Sakimori 25ab287529 broke idolizing, then fixed it 2020-12-22 21:03:27 -05:00
Sakimori 3bb98ab8a0 complete in-situ setup of a blaseball game. 2020-12-22 20:20:58 -05:00
Sakimori 74e35f71e3 added a name limit for idols, and escaped mentions from names 2020-12-22 15:15:18 -05:00