TerraOceanPlugin/GoBot/main.go

17 lines
218 B
Go

package main
import (
"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{}
wg.Add(1)
go discord.StartBot(string(token), &wg)
wg.Wait()
}