Repository navigation
YAGPCB v2.1
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:
- Download and run YAGPCBv2-1.exe
- Follow these steps to get your client_id and client_secret
- Go to http://localhost:3000 and enter your client_id, client_secret, and channel name
- 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
- 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 - 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