Upvote Upvoted 5 Downvote Downvoted
Setting up LogsTFBot
posted in Q/A Help
1
#1
0 Frags +

https://github.com/dpolansky/logs-bot

I've seen it in a few streams but I couldn't figure out how to set it up myself. I tried to follow the instructions on lansky's github but got confused. I've installed go and used the go get command to get the logs-bot directory but I don't know where to go from there. If anyone's set it up before and would be willing to help it would be greatly appreciated.

Also I couldn't find a thread on here from a quick google search so I figured I'd make this so that other people don't get confused trying to set this up in the future. Huge shoutout to lansky for writing the bot and making it freely available (at least to anyone savvy enough to figure out how to set it up).

edit: to be more specific, I've created the environment variables but am unsure of where to create the file channels.json
edit2: it didn't seem to work with the file in Go\src\github.com\dpolansky\logs-bot so i moved it to Go\bin and double clicked the executable and now it says connected to twitch IRC server :)
If anyone else is stuck trying to figure out how to set it up, I followed this guide which made things pretty simple and easy to understand.
Then once that's done, just follow the instructions on the github. In order to create the environment variables you just repeat the process for adding in GOPATH and make one for LOGS_BOT_OAUTH_KEY and LOGS_BOT_USERNAME

https://github.com/dpolansky/logs-bot

I've seen it in a few streams but I couldn't figure out how to set it up myself. I tried to follow the instructions on lansky's github but got confused. I've installed go and used the go get command to get the logs-bot directory but I don't know where to go from there. If anyone's set it up before and would be willing to help it would be greatly appreciated.

Also I couldn't find a thread on here from a quick google search so I figured I'd make this so that other people don't get confused trying to set this up in the future. Huge shoutout to lansky for writing the bot and making it freely available (at least to anyone savvy enough to figure out how to set it up).

edit: to be more specific, I've created the environment variables but am unsure of where to create the file channels.json
edit2: it didn't seem to work with the file in Go\src\github.com\dpolansky\logs-bot so i moved it to Go\bin and double clicked the executable and now it says connected to twitch IRC server :)
If anyone else is stuck trying to figure out how to set it up, I followed this [url=http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/]guide[/url] which made things pretty simple and easy to understand.
Then once that's done, just follow the instructions on the github. In order to create the environment variables you just repeat the process for adding in GOPATH and make one for LOGS_BOT_OAUTH_KEY and LOGS_BOT_USERNAME
2
#2
2 Frags +

I think I got it working but I'm not sure if there's a way to verify except for playing a game and testing to see if the logs come up. I checked my twitch chat and didn't see the LogsTFBot in it even though I specified my channel name in the channels.json file (maybe that's in the wrong place?)

edit: it seems like the channels.json should be in the bin folder with logs-bot.exe but I'm unsure if it's actually working because I don't see it in my chat (though it does say Connected to Twitch IRC Server)

I think I got it working but I'm not sure if there's a way to verify except for playing a game and testing to see if the logs come up. I checked my twitch chat and didn't see the LogsTFBot in it even though I specified my channel name in the channels.json file (maybe that's in the wrong place?)

edit: it seems like the channels.json should be in the bin folder with logs-bot.exe but I'm unsure if it's actually working because I don't see it in my chat (though it does say Connected to Twitch IRC Server)
3
#3
3 Frags +

It seems the IRC part doesn't really check for OAUTH refusal, i.e. the IRC connection will be fine and valid but the twitch server will refuse to let you use the account.
I'd suggest you try connecting to the twitch IRC using the username and oauth key you're trying to use to see if something is going wrong, or even you could go as far as modifying the code to show you all messages received and sent (using log.Print and then recompiling).

Or you could just not bother at all and use http://tf.gg/42187

It seems the [url=https://github.com/dpolansky/logs-bot/blob/master/main.go#L111]IRC part[/url] doesn't really check for OAUTH refusal, i.e. the IRC connection will be fine and valid but the twitch server will refuse to let you use the account.
I'd suggest you try connecting to the twitch IRC using the username and oauth key you're trying to use to see if something is going wrong, or even you could go as far as modifying the code to show you all messages received and sent (using [url=https://golang.org/pkg/log/#Print]log.Print[/url] and then recompiling).

Or you could just not bother at all and use http://tf.gg/42187
Please sign in through STEAM to post a comment.