simsim discord bot
Go to file
2021-01-04 17:57:13 -05:00
.github Added initial dockerfile 2021-01-01 14:23:18 -05:00
matteo_env got a web page with all current games' full display states available in json 2020-12-28 03:21:47 -05:00
sql scripts adjusted game diplay for half-inning changeover, changed title of web page 2020-12-30 02:48:39 -05:00
static fix safari display, maybe 2021-01-04 17:57:13 -05:00
templates css fixes x_x 2021-01-03 15:24:50 -05:00
.DS_Store css changes and add title field 2021-01-03 15:09:31 -05:00
.gitattributes Add .gitignore and .gitattributes. 2020-12-19 19:07:51 -05:00
.gitignore edited gitignore 2020-12-29 00:02:22 -05:00
database.py 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
debug storage.py added ;saveteam, ;showteam, ;showplayer 2020-12-24 04:51:38 -05:00
Dockerfile typo 2021-01-01 14:24:34 -05:00
games.py Merge branch 'indev' into leagues 2021-01-03 23:23:02 -05:00
leagues.py finished implementing tournaments, slowed game ticks to 8 seconds 2021-01-03 23:18:45 -05:00
main_controller.py finished implementing tournaments, slowed game ticks to 8 seconds 2021-01-03 23:18:45 -05:00
onomancer.py Pull real stats if present 2020-12-29 13:26:50 -08:00
README.md updated the readme and the help commands to keep them consistent when it makes sense 2021-01-04 08:42:02 -08:00
requirements.txt added requirements.txt 2020-12-31 13:37:00 -05:00
roman.py added m!roman [int]; returns error string or a number in roman numerals 2020-12-20 05:28:47 -05:00
the_prestige.py updated the readme and the help commands to keep them consistent when it makes sense 2021-01-04 08:42:02 -08:00
the-prestige.pyproj m;starttournament now starts a debug tournament 2021-01-03 06:06:51 -05:00
the-prestige.sln added introduction command, to be run by owner only 2020-12-20 00:16:36 -05:00

matteo-the-prestige

simsim discord bot

blaseball, blaseball, is back! in an unofficial capacity. this project is completely unaffiliated with the game band.

we have custom players (generated by onomancer), custom teams, custom leagues (that last one is coming soon™), all set up in discord and watchable at https://simsim.sibr.dev!

if you would like to add matteo to your server to be able to set up teams and games, you can do so with this link: https://discord.com/api/oauth2/authorize?client_id=789956166796574740&permissions=388160&scope=bot

accepting pull requests, check the issues for to-dos.

commands: (everything here is case sensitive, and can be prefixed with either m; or m!)

team commands:

creation and deletion:

  • m;saveteam
    • saves a team to the database allowing it to be used for games. use this command at the top of a list with entries separated by new lines:
      • the first line of the list is your team's name.
      • the second line is the team's icon and slogan, generally this is an emoji followed by a space, followed by a short slogan.
      • the third line must be blank.
      • the next lines are your batters' names in the order you want them to appear in your lineup, lineups can contain any number of batters between 1 and 12.
      • then another blank line seperating your batters and your pitchers.
      • the final lines are the names of the pitchers in your rotation, rotations can contain any number of pitchers between 1 and 8.
    • if you did it correctly, you'll get a team embed with a prompt to confirm. hit the 👍 and your team will be saved!
  • m;deleteteam [teamname] (requires team ownership)
    • allows you to delete the team with the provided name. you'll get an embed with a confirmation to prevent accidental deletions. hit the 👍 and your team will be deleted.
  • m;import
    • imports an onomancer collection as a new team. you can use the new onomancer simsim setting to ensure compatibility. similarly to saveteam, you'll get a team embed with a prompt to confirm, hit the 👍 and your team will be saved!

editing (all of these commands require ownership and exact spelling of the team name):

  • m;addplayer batter/pitcher [team name] [player name]
    • adds a new player to the end of your team, either in the lineup or the rotation depending on which version you use. use addplayer batter or addplayer pitcher at the top of a list with entries separated by new lines:
      • the name of the team you want to add the player to.
      • the name of the player you want to add to the team.
  • m;moveplayer [team name] [player name] [new lineup/rotation position number]
    • moves a player within your lineup or rotation. if you want to instead move a player from your rotation to your lineup or vice versa, use m;swapsection instead. use this command at the top of a list with entries separated by new lines:
      • the name of the team you want to move the player on.
      • the name of the player you want to move.
      • the position you want to move them too, indexed with 1 being the first position of the lineup or rotation. all players below the specified position in the lineup or rotation will be pushed down.
  • m;swapsection [team name] [player name]
    • swaps a player from your lineup to the end of your rotation or your rotation to the end of your lineup. use this command at the top of a list with entries separated by new lines:
      • the name of the team you want to swap the player on.
      • the name of the player you want to swap.
  • m;removeplayer [team name] [player name]
    • removes a player from your team. if there are multiple copies of the same player on a team this will only delete the first one. use this command at the top of a list with entries separated by new lines:
      • the name of the team you want to remove the player from.
      • the name of the player you want to remove.

viewing and searching:

  • m;showteam [name]
    • shows the lineup, rotation, and slogan of any saved team in a discord embed with primary stat star ratings for all of the players. this command has fuzzy search so you don't need to type the full name of the team as long as you give enough to identify the team you're looking for.
  • m;searchteams [searchterm]
    • shows a paginated list of all teams whose names contain the given search term.
  • m;showallteams
    • shows a paginated list of all teams available for games which can be scrolled through.

player commands:

  • m;showplayer [name]
    • displays any name's stars, there's a limit of 70 characters. that should be plenty. note: if you want to lookup a lot of different players you can do it on onomancer instead of spamming this command a bunch and clogging up discord: https://onomancer.sibr.dev/reflect
  • m;idolize [name]
    • records any name as your idol, mostly for fun.
  • m;showidol
    • displays your idol's name and stars in a discord embed.

game commands:

  • m;startgame --day # or -d #
    • starts a game with premade teams made using saveteam. provides a link to the website where you can watch the game.
    • the --day/-d is optional, if used it'll force the game to use the #th spot in each team's rotations. if this number is larger than the number of pitchers in one or both of the teams' rotations it'll wrap around. if it is not used pitchers will be chosen randomly from the teams' rotations.
    • use this command at the top of a list with entries separated by new lines:
      • the away team's name.
      • the home team's name.
      • optionally, the number of innings, which must be greater than 2 and less than 31. if not included it will default to 9.
    • this command has fuzzy search so you don't need to type the full name of the team as long as you give enough to identify the team you're looking for.
  • m;randomgame
    • starts a 9-inning game between 2 entirely random teams. embrace chaos!
  • m;starttournament --rounddelay #
    • starts a randomly seeded tournament with up to 64 provided teams, automatically adding byes as necessary. all series have a 5 minute break between games. the current format is: best of 5 until the finals which are best of 7.
    • the --rounddelay is optional, if used, # must be between 1 and 120 and it'll set the delay between rounds to be # minutes. if not included it will default to 10.
    • use this command at the top of a list with entries separated by new lines:
      • the name of the tournament.
      • the name of each participating team on its own line.

other commands:

  • m;help [command]
    • shows instructions for a given command. if no command is provided, it will instead provide a list of all of the commands that instructions can be provided for.
  • m;credit
    • shows artist credit for matteo's avatar.
  • m;roman [number]
    • converts any natural number less than 4,000,000 into roman numerals, this one is just for fun.

patreon!

these folks are helping me a ton via patreon, and i cannot possibly thank them enough:

  • Ale Humano
  • Chris Denmark
  • Astrid Bek
  • Kameleon