rewrite trigger system
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import { cfg } from "../../../inc/cfg";
|
||||
|
||||
class cleverbot {
|
||||
export default new class cleverbot {
|
||||
constructor() {
|
||||
this.api = "https://cleverbot.io/1.0";
|
||||
this.nick = "";
|
||||
setTimeout(() => this.init(), 5000);
|
||||
this.init();
|
||||
}
|
||||
|
||||
init() {
|
||||
@@ -41,5 +41,3 @@ class cleverbot {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default new cleverbot();
|
||||
|
Reference in New Issue
Block a user