A simple self-bot which switches games without typing !game SUPERLONGNAMEFORAGAME
in chat. Requires Nightbot running in the channel.
This bot is dedicated for the laziest streamer in the world. FeelsWeirdMan 👉 beastyZF
- NodeJS at least ES2015/ES6 compatible. Read compatibility list here.
- Yarn or npm.
- Make directory called
.config
- Copy
config.json.example
to.config
directory and rename it toconfig.json
- Create your app in Twitch developer dashboard
- Get client id and client secret from your app. Store it in
config.json
and prefill it in these fields:
{
"clientId": "CLIENT_ID",
"clientSecret": "CLIENT_SECRET"
}
- Make file
package.json
insideconfig/
directory and prefill it with:
{
"accessToken": "INITIAL_ACCESS_TOKEN",
"refreshToken": "INITIAL_REFRESH_TOKEN",
"expiryTimestamp": 0
}
Access token and refresh token can be obtained by generating Twitch OAuth token. I've made a simple express app for this. This app will also use the same clientId and clientSecret.
- Add your packages
- Build your package.
- Modify
config.json
as you wish. Fieldchannel
is the most important one.prefix
andgameMap
can be changed as long as they're using the same format.
Configuration file and tokens are shipped inside the container
docker build -t lazybum .
docker run --detach --name lazybum-container -v <PATH_TO_CONFIG_DIR>:/usr/src/.config lazybum
Path to config directory is $PWD/config
for Unix. Reminder that running WSL1 docker cli with Windows docker daemon needs special treatment for volume mounting:
docker run --detach --name lazybum-container -v $(wslpath -w $(pwd)/.config):/usr/src/.config/ lazybum