TerraOceanPlugin/GoBot/main.go

18 lines
262 B
Go

package main
import (
2019-10-12 14:07:40 +07:00
"TerraOceanBot/server"
"io/ioutil"
2019-10-12 09:45:43 +07:00
"sync"
2019-10-12 09:45:43 +07:00
"TerraOceanBot/discord"
)
func main() {
token, _ := ioutil.ReadFile("token.txt")
2019-10-12 09:45:43 +07:00
wg := sync.WaitGroup{}
go discord.StartBot(string(token), &wg)
2019-10-12 14:07:40 +07:00
server.StartServer(8080, &wg)
2019-10-12 09:45:43 +07:00
wg.Wait()
}