1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 17:42:48 +00:00

$minor refactoring

This commit is contained in:
2018-02-07 18:27:49 +00:00
parent 5b6d74149d
commit 1fdeb3783a
2 changed files with 23 additions and 28 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"github.com/gin-gonic/gin"
"github.com/mgerb/go-discord-bot/server/bot"
"github.com/mgerb/go-discord-bot/server/bothandlers"
"github.com/mgerb/go-discord-bot/server/config"
"github.com/mgerb/go-discord-bot/server/webserver"
log "github.com/sirupsen/logrus"
@@ -34,14 +33,8 @@ func init() {
func main() {
//connect bot to account with token
bot.Connect(config.Config.Token)
//add handlers
bot.AddHandler(bothandlers.SoundsHandler)
// start the bot
bot.Start()
bot.Start(config.Config.Token)
// start the web server
webserver.Start()