Skip to content

YAGPCB v2.1

Choose a tag to compare

@dunno4321 dunno4321 released this 29 Oct 18:41
· 18 commits to main since this release
ff36c6c

Released on 10/29/23
upgrades people, upgrades!

Adds advanced custom command syntax

  • {{by}} --> chatter that sent the message
  • {{arg1}}, {{arg2}} --> arguments provided in the message calling the command
  • {{random_a_b}} --> random number from a to b, inclusive
  • {{channeltime}} --> channel local time
  • {{increment_[counter]}} --> increments a counter. Things like {{increment_bonk_{{arg1}}}} also work
  • {{counter_[counter]}} --> displays a counter. Things like {{counter_bonk_{{arg1}}}} also work
  • {{streamer}} --> channel name
    Examples:
  • !addcmd bonk {{by}} bonks {{arg1}}. ({{arg1}} has been bonked {{increment_bonk_{{arg1}}}} times)
    • somedude: !bonk dunno4321

    • somedude bonks dunno4321 (dunno4321 has been bonked 1 times)

    • somedude: !bonk dunno4321

    • somedude bonks dunno4321 (dunno4321 has been bonked 2 times)

    • somedude: !bonk dunno4321

    • somedude bonks dunno4321 (dunno4321 has been bonked 3 times)

  • !addcmd time it is currently {{channeltime}} for {{streamer}}
    • somedude: !time

    • it is currently 02:30 PM for dunno4321

  • !addcmd nerd {{by}} challenges {{arg1}} to a quick math battle: first to solve {{random_10_100}}*{{random_10_100}} wins!
    • somedude: !nerd dunno4321

    • somedude challenges dunno4321 to a quick math battle: first to solve 67*94 wins!

How to use:

  1. Download and run YAGPCBv2-1.exe
  2. Follow these steps to get your client_id and client_secret
  3. Go to http://localhost:3000 and enter your client_id, client_secret, and channel name
  4. Click Save, and the bot should accept the configuration and open a new browser window (and print the link if the window doesn't open) and you should be able to authorize the bot
  5. It might error out with a message like "JSON parse error: extra data" or "Please rerun the bot, this is a weird glitch!"
    a. I don't know why it does this, just re-run the bot by closing the command prompt window and reopening YAGPCBv2-1.exe
  6. It should connect and be ready to go!
  • To test: type !ping and press Enter in your chat
  • It should respond with Pong!
    You can view the configuration page at http://localhost:3000