2019-10-09 12:44:43 +07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io/ioutil"
|
2019-10-12 09:45:43 +07:00
|
|
|
"sync"
|
2019-10-09 12:44:43 +07:00
|
|
|
|
2019-10-12 09:45:43 +07:00
|
|
|
"TerraOceanBot/discord"
|
2019-10-09 12:44:43 +07:00
|
|
|
)
|
|
|
|
|
|
|
|
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()
|
2019-10-09 12:44:43 +07:00
|
|
|
}
|