löler
This commit is contained in:
@@ -19,7 +19,7 @@ export default new class cleverbot {
|
||||
fetch(`${this.api}/create`, options)
|
||||
.then(res => res.json())
|
||||
.then(res => this.nick = res.status === "success" ? res.nick: "uwibot")
|
||||
.catch(err => console.log(err));
|
||||
.catch(err => console.log("cleverbot is offline or whatever lol"));
|
||||
}
|
||||
|
||||
ask(msg) {
|
||||
@@ -37,7 +37,7 @@ export default new class cleverbot {
|
||||
fetch(`${this.api}/ask`, options)
|
||||
.then(res => res.json())
|
||||
.then(res => res.status === "success"?resolve(res):reject(res.status))
|
||||
.catch(err => reject(err));
|
||||
.catch(err => reject("cleverbot is offline or whatever lol"));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user