1
0
mirror of https://github.com/mgerb/ServerStatus synced 2026-01-10 03:03:04 +00:00

more adjustments

This commit is contained in:
2017-01-16 06:42:28 +01:00
parent c39c2b67e1
commit d9d7bf58dd
8 changed files with 10 additions and 8 deletions

28
main.go
View File

@@ -1,28 +0,0 @@
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()
}