1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00
Files
go-discord-bot/server/main.go
2017-02-05 04:58:48 +00:00

26 lines
376 B
Go

package main
import (
"./bot"
"./bothandlers"
"./config"
"./webserver"
)
func main() {
//read config file
config.Init()
//connect bot to account with token
bot.Connect(config.Config.Token)
//add handlers
bot.AddHandler(bothandlers.SoundsHandler)
// start new go routine for the discord websockets
go bot.Start()
// start the web server
webserver.Start()
}