rp-native

This commit is contained in:
Flummi 2018-08-31 18:47:40 +02:00
parent d76a59540a
commit c870354c0c
13 changed files with 13 additions and 14 deletions

View File

@ -15,7 +15,7 @@
"long-timeout": "^0.1.1", "long-timeout": "^0.1.1",
"pg-promise": "^7.3.2", "pg-promise": "^7.3.2",
"request": "^2.87.0", "request": "^2.87.0",
"request-promise": "^4.2.2", "request-promise-native": "^1.0.5",
"stringify-object": "^3.2.1", "stringify-object": "^3.2.1",
"winston": "^2.4.0", "winston": "^2.4.0",
"ytdl-core": "^0.18.2" "ytdl-core": "^0.18.2"

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
const api_url = ({ market, crypto, currency }) => `https://api.cryptowat.ch/markets/${market}/${crypto}${currency}/summary`; const api_url = ({ market, crypto, currency }) => `https://api.cryptowat.ch/markets/${market}/${crypto}${currency}/summary`;
const currencies = { const currencies = {

View File

@ -1,5 +1,5 @@
import jsdom from "jsdom"; import jsdom from "jsdom";
import rp from "request-promise"; import rp from "request-promise-native";
export default bot => { export default bot => {
bot._trigger.set("irpg", new bot.trigger({ bot._trigger.set("irpg", new bot.trigger({

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
const feed = "https://www.kernel.org/releases.json"; const feed = "https://www.kernel.org/releases.json";

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
import { cfg } from "../../inc/cfg"; import { cfg } from "../../inc/cfg";
export default bot => { export default bot => {

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
import { cfg } from "../../../inc/cfg"; import { cfg } from "../../../inc/cfg";
class cleverbot { class cleverbot {

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
const maxoutput = 500; const maxoutput = 500;

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
import url from "url"; import url from "url";
const apis = { const apis = {

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
import { cfg } from "../../inc/cfg"; import { cfg } from "../../inc/cfg";
export default bot => { export default bot => {

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
const url = "https://api.urbandictionary.com/v0/define" const url = "https://api.urbandictionary.com/v0/define"

View File

@ -1,5 +1,5 @@
import sql from "../sql"; import sql from "../sql";
import rp from "request-promise"; import rp from "request-promise-native";
const data = { const data = {
yiff: [], yiff: [],

View File

@ -1,6 +1,5 @@
import sql from "../sql"; import sql from "../sql";
import rp from "request-promise-native";
import rp from "request-promise";
const data = { const data = {
abschieben: [], abschieben: [],

View File

@ -1,4 +1,4 @@
import rp from "request-promise"; import rp from "request-promise-native";
export default bot => { export default bot => {
bot._trigger.set("wttr", new bot.trigger({ bot._trigger.set("wttr", new bot.trigger({