Update Test Bot File and Gateway

- Gateway now can be closed **safely**.

- test bot config now exports `TOKEN`.
This commit is contained in:
Helloyunho 2020-10-23 01:01:00 +09:00
parent e68b00e9a2
commit e85f86df6d
2 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,10 @@ class Gateway {
this.websocket.onclose = this.onclose.bind(this)
this.websocket.onerror = this.onerror.bind(this)
}
close () {
this.websocket.close(1000)
}
}
export { Gateway }

View File

@ -1 +1,2 @@
const TOKEN = ''
export { TOKEN }