A twitch chatbot to get specific information about weather predictions, take screenshots, manage stream, manage bans and other random formation.
Bot status: https://mz-status.311312.xyz/
TWITCH_CLIENT_ID //twitch client id from your chatbot app (https://dev.twitch.tv/)
TWITCH_CLIENT_SECRET //twitch client secret from you chatbot app
TWITCH_CHANNELS //channels to automatically join separated by comma
TWITCH_USER_ID //twitch user id (https://www.streamweasels.com/tools/convert-twitch-username-to-user-id/)
MONGODB_URI //mongoodb uri for the access/refresh tokens.
AEMET_API_KEY //aemet api key to get spanish weather (https://opendata.aemet.es/centrodedescargas/inicio)
PORT //port of the running app
TELEGRAM_TOKEN //Telegram bot API token to send notifications
TELEGRAM_CHAT_ID //Telegram chat id to send the notifications
EXTERNAL_URL //external url of the running app to create the public image urls
BROWSERLESS_URL //browserless websocket url to take screenshots
BROWSERLESS_TOKEN //browserless token
STATUS_URL //uptime url for /status tiwtch chat command
WHITE_LIST_ADMINS //twitch user ids seperated by comma to run ban/unban commands
WHITE_LIST_EDITORS //twitch user ids seperated by comma to run !title/!game commands
FEATURE_TF_SPOTS //true/false to enable/disable the tf spots feature
Information from weather comes from AEMET OpenData to get Spain weather predictions.
!amanecer girona
//result: Girona amanece a las 08:02
!atardecer girona
//result: Girona atardece a las 17:59
Take a screenshot of the current stream and send it to the chat.
!foto
//result: https://external.url/i/cclj35.jpg
(only VIP, Mods and Broadcaster users)
!f5 //refreshes ghost browser to screenshots if it hangs
Save your own birthdate and get other users birthdays
!micumple 03-08
//result: @myuser cumple el dia 3 de Setiembre
!cumple @otheruser
//result: @otheruser cumple el dia 3 de Setiembre
Get band requests, ban, unban, timeout
(only VIP, Mods and Broadcaster users)
!bans
//result: a**a, as**sd ban requests pending
(only users in the admin white list)
!ban username //bans username from the cannel
!timeout username //bans username during 600 (by default) seconds
!timeout username 60 //bans username during 60 seconds
!unban username //removes the ban of the given username
Set stream title and game by using streamElements
(only users in the editors white list)
!titulo Testing title
!categoria IRL