1
0
mirror of https://github.com/mgerb/ServerStatus synced 2026-01-10 03:03:04 +00:00
This commit is contained in:
2017-01-15 22:10:35 +01:00
commit a2f39bdcc4
7 changed files with 254 additions and 0 deletions

28
main.go Normal file
View File

@@ -0,0 +1,28 @@
package main
import (
"./bot"
"./config"
"./serverstatus"
)
// Variables used for command line parameters
var (
BotID string
)
func main() {
//read config file
config.Configure()
//connect bot to account with token
bot.Connect(config.Config.Token)
//start side tasks
serverstatus.Start()
bot.AddHandler(serverstatus.MessageHandler)
//start websocket to listen for messages
bot.Start()
}