rewrite trigger system

This commit is contained in:
Flummi
2019-08-19 01:28:01 +00:00
parent 22d79eed18
commit 3a751f2e52
30 changed files with 536 additions and 570 deletions

View File

@@ -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();