Update Test Bot File and Gateway
- Gateway now can be closed **safely**. - test bot config now exports `TOKEN`.
This commit is contained in:
parent
e68b00e9a2
commit
e85f86df6d
2 changed files with 5 additions and 0 deletions
|
@ -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 }
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
const TOKEN = ''
|
||||
export { TOKEN }
|
||||
|
|
Loading…
Reference in a new issue