2019-10-09 12:44:43 +07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2019-10-12 14:07:40 +07:00
|
|
|
"TerraOceanBot/server"
|
2019-10-09 12:44:43 +07:00
|
|
|
"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{}
|
|
|
|
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()
|
2019-10-09 12:44:43 +07:00
|
|
|
}
|