moved cfg from db to json

This commit is contained in:
Flummi
2019-08-19 19:17:51 +00:00
parent cd606aa6eb
commit 4c55065168
7 changed files with 12 additions and 180 deletions

View File

@@ -1,5 +1,5 @@
import fetch from "flumm-fetch-cookies";
import { cfg } from "../../../inc/cfg";
import config from "../../../../cfg/config.json";
export default new class cleverbot {
constructor() {
@@ -12,7 +12,7 @@ export default new class cleverbot {
const options = {
method: "POST",
body: {
...cfg.main.chatbot.val,
...config.apis.cleverbot,
...{ nick: "uwibot" }
}
};
@@ -27,7 +27,7 @@ export default new class cleverbot {
const options = {
method: "POST",
body: {
...cfg.main.chatbot.val,
...config.apis.cleverbot,
...{
nick: this.nick,
text: msg