- slack: bugfix
This commit is contained in:
parent
a221ef715a
commit
85c2a6f963
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cuffeo",
|
"name": "cuffeo",
|
||||||
"version": "1.0.5",
|
"version": "1.0.5-1",
|
||||||
"description": "A multi-protocol chatbot library with nearly zero dependencies.",
|
"description": "A multi-protocol chatbot library with nearly zero dependencies.",
|
||||||
"main": "src/index.mjs",
|
"main": "src/index.mjs",
|
||||||
"scripts": {},
|
"scripts": {},
|
||||||
|
|
|
@ -104,7 +104,8 @@ export default class slack extends EventEmitter {
|
||||||
async reconnect() {
|
async reconnect() {
|
||||||
this.server.wss.url = null;
|
this.server.wss.url = null;
|
||||||
this.server.wss.socket = null;
|
this.server.wss.socket = null;
|
||||||
await this.connect();
|
this.emit("data", [ "info", "reconnecting slack" ]);
|
||||||
|
return await this.connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getChannel(channelId) {
|
async getChannel(channelId) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user