Run Black formatter across 83 files and fix 1514 ruff violations: - E722: bare except → typed exceptions (17 fixes) - E711/E712/E721: comparison style fixes with noqa for SQLAlchemy (44 fixes) - F841: unused variable assignments (70 fixes) - F541/F401: f-string and import cleanup (1383 auto-fixes) Remaining 925 errors are all F403/F405 (star imports) — structural, requires converting to explicit imports in a separate effort. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
144 lines
7.5 KiB
Python
144 lines
7.5 KiB
Python
SHEET_SHARE_STEPS = (
|
|
"We have a very easy-to-use Google Sheet for you to manage your team. It has a script attached that "
|
|
"powers most of the advanced functionality. Google requires you to manually copy a sheet if it "
|
|
"has scripts so I need you to follow three quick steps to get it shared:\n"
|
|
"1) Make a copy of the embedded sheet below\n"
|
|
"2) Share the sheet with Paper Domo with this email address: `pd-service-account@paper-dynasty.iam."
|
|
"gserviceaccount.com`\n"
|
|
"3) Run `/newsheet <google_sheet_URL>` and I will assign it to your team!\n\n"
|
|
"__Do not__ share this sheet with anyone else. Access to the sheet grants buying and selling rights over your "
|
|
"collection."
|
|
)
|
|
|
|
HELP_SHEET_SCRIPTS = (
|
|
"The first time that you use the Paper Dynasty menu, Google Sheets will require that you authorize the script "
|
|
"the first time you access the Paper Dynasty menu following these steps:\n\n"
|
|
"1. Under **Paper Dynasty**, click Data Imports -> **Activate Scripts**\n"
|
|
"2. Click **Continue** and select your account\n"
|
|
"3. Google has not verified this app, so click **Advanced** in the lower left corner and scroll down to "
|
|
"**Go to Paper Dynasty Marketplace (unsafe)**\n"
|
|
"4. When told that the Paper Dynasty Marketplace wants to access your Google Account, scroll down and select "
|
|
"**Allow**\n"
|
|
"5. Now that scripts are allowed, under **Paper Dynasty**, click Data Imports -> **Activate Scripts**\n\n"
|
|
"The Paper Dynasty menu will now work on your Team Sheet!"
|
|
)
|
|
|
|
HELP_GAMEMODES = (
|
|
"- Campaigns: Beat all 30 MLB teams to advance from the Minor League to Major League to Hall of Fame!"
|
|
"- Ranked Play: Play against another PD manager with your ranked roster.\n"
|
|
"- Unlimited Play: Play an unranked game against another PD manager. Great for casual play, playtesting rosters, "
|
|
"and event games.\n"
|
|
"- Gauntlets: Draft a team of 26 and attempt to win 10 games before losing 2. Rewards escalate based on the "
|
|
"number of wins.\n"
|
|
"- Exhibition: Play a custom game against the AI"
|
|
)
|
|
|
|
HELP_NEWGAME = (
|
|
"- Run `/new-game` and select a game mode:\n"
|
|
"** **- gauntlet: Draft a team and attempt to go 10-0 against the AI teams\n"
|
|
"** **- mlb-campaign: Progress from Minors -> Majors -> Hall of Fame by defeating all 30 MLB teams\n"
|
|
"** **- exhibition: Play against the AI and choose the cardsets it uses to build a team\n"
|
|
"** **- ranked/unlimited: Play against another human player\n"
|
|
"- Set starting lineups with `/read-lineup` for each team\n\n"
|
|
"From here, the game scorebug will be posted and you are ready to start rolling dice!"
|
|
)
|
|
|
|
|
|
HELP_PLAYGAME = (
|
|
"- Run `/gamestate` for the current scorebug and click the Roll AB button\n"
|
|
"- Log results with `/log <play-data>`; all results on the card should be represented, some have "
|
|
"nested commands (e.g. `/log flyball b`)\n"
|
|
"- When you mess up a result, run `/log undo-play` and it will roll back one play\n"
|
|
"- Run `/gamestate` to see the scorebug with both lineups\n"
|
|
"- Run `/substitution` to make lineup changes\n"
|
|
"- Run `/show-card` to see upcoming batters or the current defenders"
|
|
)
|
|
|
|
HELP_ENDGAME = "- Run `/end-game`\n" "- ???\n" "- Profit\n"
|
|
|
|
HELP_TS_DASH = (
|
|
"Your dashboard is split into three main columns:\n\n"
|
|
"- The left column has your depth chart and lineups at the top, your roster list in the middle, and "
|
|
"the bulk marketplace category at the bottom.\n"
|
|
"- The center column is the Paper Dynasty Marketplace. You can search and filter cards in Paper "
|
|
"Dynasty to purchase, sell, or just view them.\n"
|
|
"- The right column is the player overview. This will display the most recently selected player "
|
|
"from the Marketplace column."
|
|
)
|
|
|
|
HELP_TS_ROSTER = (
|
|
"Top left of the My Team tab\n\n"
|
|
"You have three rosters available for use: Primary, Secondary, and Ranked. The roster highlighted "
|
|
"green is the active roster; to swich the active roster, click on its name in the gray cell.\n\n"
|
|
"You can set your rotation and two default lineups in the Lineups section. These are imported "
|
|
"by Paper Domo when you play a game so it sets your lineup automatically.\n\n"
|
|
"If you don't have any players showing up in the Depth Chart, scroll down and add players to your "
|
|
"roster in the Roster Management section"
|
|
)
|
|
|
|
HELP_TS_MARKET = (
|
|
"By default, this column will display all player cards in the Paper Dynasty universe. You can set "
|
|
"filters at the very top; you can also search for a first or last name in the search bar.\n\n"
|
|
"By checking the box beside a player's name, it sets them as the active player. This will display "
|
|
'their overview on the right of the dashboard and select them for any "Quick" actions.'
|
|
)
|
|
|
|
HELP_TS_MENU = (
|
|
"In the top bar (to the far right of File / Edit) is a Paper Dynasty tab. When that is selected, "
|
|
"you have access to the automations built into your team sheet.\n\n"
|
|
"Rosters - save or clear your saved rosters and lineups\n"
|
|
"Marketplace - buy it now, add to card, and quick sell cards\n"
|
|
"Shopping Cart - manage your cart and purchase multiple cards at once\n"
|
|
"Sale Barn - bulk sell cards in the bottom-left corner of your team sheet\n"
|
|
"Player Stats - activate and refresh your team stats\n"
|
|
"Data Imports - sync data between the pd bot and your team sheet\n"
|
|
)
|
|
|
|
HELP_REWARDS_PREMIUM = (
|
|
"- Win a 9-inning game\n"
|
|
"- Purchasable for 300₼\n"
|
|
"- Purchasable for $3 on the ko-fi shop"
|
|
)
|
|
|
|
HELP_REWARDS_STANDARD = (
|
|
"- Win a 3-inning game\n"
|
|
"- Purchasable for 200₼\n"
|
|
"- Every fifth check-in (`/comeonmanineedthis`)\n"
|
|
"- Purchasable for $2 on the ko-fi shop"
|
|
)
|
|
|
|
HELP_REWARDS_MONEY = (
|
|
"- 75₼ for playing a 9-inning game\n" "- 25₼ for playing a 3-inning game\n"
|
|
)
|
|
|
|
HELP_REWARDS_SHOP = (
|
|
"The Ko-fi shop can be [viewed here](https://ko-fi.com/manticorum/shop). In addition to card packs, "
|
|
"the full ratings guide is available for purchase."
|
|
)
|
|
|
|
HELP_START_WHAT = (
|
|
"Well, whipper snapper, have a seat and I'll tell you. We're running a diamond dynasty / "
|
|
"ultimate team style game with electronic card and dice baseball!\n\nGet a starter pack, play "
|
|
"games at your leisure either solo or against another player, and collect cards from the "
|
|
"custom Paper Dynasty player sets."
|
|
)
|
|
|
|
HELP_START_HOW = (
|
|
"Run the `.in` command - that's a period followed by the word \"in\". That'll get you the "
|
|
"Paper Dynasty Players role so you can run all of the other PD commands!\n\nOnce you get your "
|
|
"role, run `/newteam` and follow the prompts to get your starter team."
|
|
)
|
|
|
|
HELP_START_PLAY = (
|
|
"A step-by-step of how to play was written by Riles [starting here](https://discord.com/channels"
|
|
"/613880856032968834/633456305830625303/985968300272001054). "
|
|
"In addition, you can find the Rules Reference [right here](https://docs.google.com/document/d/"
|
|
"1yGZcHy9zN2MUi4hnce12dAzlFpIApbn7zR24vCkPl1o).\n\nThere are three key differences from league "
|
|
'play:\n1) Injuries: there are no injuries in Paper Dynasty!\n2) sWAR: there is no sWAR "salary '
|
|
'cap" for your team like in league play. Some events will have roster construction rules to '
|
|
"follow, though!\n3) The Universal DH is in effect; teams may forfeit the DH at their "
|
|
"discretion."
|
|
)
|
|
|
|
HELP_START_ASK = "Feel free to ask any questions down in #paper-dynasty-chat"
|