install flumm-fetch-cookies with npm
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
const api_url = ({ market, crypto, currency }) => `https://api.cryptowat.ch/markets/${market}/${crypto}${currency}/summary`;
|
||||
const currencies = {
|
||||
@ -53,4 +53,4 @@ const cryptowat_summary = (crypto, market, currency) => {
|
||||
resolve(`Current: [b]${data.last}[/b] - High: [b]${data.high}[/b] - Low: [b]${data.low}[/b] - Change: [b]${data.change}[/b]% - Volume: [b]${data.volume}[/b]`);
|
||||
}).catch(err => reject("lol cryptowatch ist down"));
|
||||
});
|
||||
};
|
||||
};
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { admins, getLevel } from "../admin";
|
||||
import fetch from "../fetch";
|
||||
import { cookieJar } from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import { wrapper, clients } from "../wrapper";
|
||||
|
||||
import vm from "vm";
|
||||
@ -11,7 +10,6 @@ let context = vm.createContext({
|
||||
bot: null,
|
||||
admins: null,
|
||||
fetch: fetch,
|
||||
cookieJar: cookieJar,
|
||||
console: console,
|
||||
wrapper: {
|
||||
wrapper, clients
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
export default bot => {
|
||||
bot._trigger.set("irpg", new bot.trigger({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
const feed = "https://www.kernel.org/releases.json";
|
||||
|
||||
@ -15,4 +15,4 @@ export default bot => {
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { cfg } from "../../inc/cfg";
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
export default bot => {
|
||||
bot._trigger.set("lastfm", new bot.trigger({
|
||||
@ -32,4 +32,4 @@ export default bot => {
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import { cfg } from "../../../inc/cfg";
|
||||
|
||||
class cleverbot {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
const maxoutput = 500;
|
||||
const hsimports = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import url from "url";
|
||||
|
||||
const apis = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import sql from "../sql";
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
let _query_get = `
|
||||
with ranked_quotes as (
|
||||
|
@ -2,7 +2,7 @@ import sql from "../sql";
|
||||
import { maxoutput, sandbox, bfgen } from "./lib/sandbox";
|
||||
|
||||
import vm from "vm";
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import stringify from "stringify-object";
|
||||
|
||||
let _contexts = new Map();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import { cfg } from "../../inc/cfg";
|
||||
|
||||
export default bot => {
|
||||
@ -18,4 +18,4 @@ export default bot => {
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
const url = "https://api.urbandictionary.com/v0/define"
|
||||
|
||||
@ -28,4 +28,4 @@ export default bot => {
|
||||
}).catch(err => console.log(err));
|
||||
}
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
import sql from "../sql";
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
const data = {
|
||||
yiff: [],
|
||||
@ -256,4 +256,4 @@ export default bot => {
|
||||
e.replyAction(`schläfert [b]${e.args[0] || e.user.nick}[/b] mit einer Spritze Ketamin ein.`);
|
||||
}
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
@ -1,5 +1,5 @@
|
||||
import sql from "../sql";
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
|
||||
const data = {
|
||||
abschieben: [],
|
||||
|
@ -1,4 +1,4 @@
|
||||
import fetch from "../fetch";
|
||||
import fetch from "flumm-fetch-cookies";
|
||||
import { cfg } from "../../inc/cfg";
|
||||
import { conds } from "./lib/wttr";
|
||||
|
||||
|
Reference in New Issue
Block a user