+Dogecoin
This commit is contained in:
parent
2471a7c4b2
commit
cd43da901f
|
@ -6,18 +6,19 @@ const currencies = {
|
||||||
eur: ({ val }) => `${val}€`,
|
eur: ({ val }) => `${val}€`,
|
||||||
eth: ({ val }) => `${val}Ξ`,
|
eth: ({ val }) => `${val}Ξ`,
|
||||||
btc: ({ val }) => `${val}฿`,
|
btc: ({ val }) => `${val}฿`,
|
||||||
xmr: ({ val }) => `${val} xmr`
|
xmr: ({ val }) => `${val} xmr`,
|
||||||
|
xdg: ({ val }) => `${val}Ɖ`
|
||||||
};
|
};
|
||||||
const markets = {
|
const markets = {
|
||||||
btc: "coinbase",
|
btc: "coinbase",
|
||||||
eth: "coinbase",
|
eth: "coinbase",
|
||||||
xmr: "bitfinex"
|
xmr: "bitfinex",
|
||||||
|
xdg: "poloniex"
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = bot => {
|
module.exports = bot => {
|
||||||
bot._trigger.set("coins", new bot.trigger({
|
bot._trigger.set("coins", new bot.trigger({
|
||||||
call: /^(\.|\/)(btc|eth|xmr)/i,
|
call: /^(\.|\/)(btc|eth|xmr|xdg)/i,
|
||||||
clients: ["irc"],
|
|
||||||
f: e => {
|
f: e => {
|
||||||
cryptowat_summary(e.cmd, markets[e.cmd], e.cmd !== "xmr" ? e.args[0] || "eur" : "usd").then(
|
cryptowat_summary(e.cmd, markets[e.cmd], e.cmd !== "xmr" ? e.args[0] || "eur" : "usd").then(
|
||||||
resolve => e.reply(resolve),
|
resolve => e.reply(resolve),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user