1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00
Files
go-discord-bot/src/main.go
2017-01-18 20:37:22 +00:00

30 lines
425 B
Go

package main
import (
"./bot"
"./config"
"./handlers"
)
// 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)
//load sound files into memory
handlers.LoadSounds()
//add handlers
bot.AddHandler(handlers.SoundsHandler)
//start websock to listen for messages
bot.Start()
}