mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 17:42:48 +00:00
working on audio clip sound bot
This commit is contained in:
29
src/main.go
Normal file
29
src/main.go
Normal file
@@ -0,0 +1,29 @@
|
||||
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.AirhornHandler)
|
||||
|
||||
//start websock to listen for messages
|
||||
bot.Start()
|
||||
}
|
||||
Reference in New Issue
Block a user