- Dogecoin.

This commit is contained in:
Flummi 2017-11-30 03:36:37 +01:00
parent cd43da901f
commit 42e2ad69ec

View File

@ -6,19 +6,17 @@ const currencies = {
eur: ({ val }) => `${val}`,
eth: ({ val }) => `${val}Ξ`,
btc: ({ val }) => `${val}฿`,
xmr: ({ val }) => `${val} xmr`,
xdg: ({ val }) => `${val}Ɖ`
xmr: ({ val }) => `${val} xmr`
};
const markets = {
btc: "coinbase",
eth: "coinbase",
xmr: "bitfinex",
xdg: "poloniex"
xmr: "bitfinex"
};
module.exports = bot => {
bot._trigger.set("coins", new bot.trigger({
call: /^(\.|\/)(btc|eth|xmr|xdg)/i,
call: /^(\.|\/)(btc|eth|xmr)/i,
f: e => {
cryptowat_summary(e.cmd, markets[e.cmd], e.cmd !== "xmr" ? e.args[0] || "eur" : "usd").then(
resolve => e.reply(resolve),