Skip to content

SixiS/convertee-twitch-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convertee Twich Bot

License: GPL v3

Converty twitch bot to listen in a channel and do forex conversions.

Listens for convert [number] [currency_code] to [currency_code] e.g. convert 60 usd to zar

Also listens for R[value] and $[value] to show conversions between these two currencies.

Building and Running

To start the bot and have it litsen in a twitch channel just pass the twitch username as the first arg.

go build
./convertee-twitch-bot twitchusername

Expects a secrets.yaml file to be in the same directory as the executable.

./secrets.yaml

twitch_username: username
twitch_oauth: oauth:tokeotokentoenontek
twitch_colour: SeaGreen
fixer_api_key: asdasdasdasdadasdasdasdsd
google_translate_api_key: asdasdasdasdasdasdasd

Twitch

Sign up for a normal twitch account.

You can get your twitch oauth token by visiting: https://twitchapps.com/tmi/ More info at: https://dev.twitch.tv/docs/irc

Available colours for normal twitch accounts: Blue, Coral, DodgerBlue, SpringGreen, YellowGreen, Green, OrangeRed, Red, GoldenRod, HotPink, CadetBlue, SeaGreen, Chocolate, BlueViolet, and Firebrick

Fixer

Sign up for a free fixer.io account This package just uses the free API endpoint and that does up to 1000 requests per month.

The API key is on the dashboard.

Deploying

To build for linux and upload to server

env GOOS=linux GOARCH=amd64 go build
scp ./convertee-twitch-bot deploy@serverip:/home/deploy
ssh deloy@serverip
vi secrets.yaml
./convertee-twitch-bot channel

TODO

Tests

About

Forex conversion bot for twitch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages