moved cfg from db to json
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user