mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 08:19:08 +02:00
Meow
This commit is contained in:
@@ -44,6 +44,7 @@ module.exports = class CurrencyCommand extends Command {
|
||||
|
||||
async run(msg, args) {
|
||||
const { base, to, amount } = args;
|
||||
if(base === to) return msg.say('You cannot convert to the same currency as your base.');
|
||||
try {
|
||||
const { body } = await request
|
||||
.get(`http://api.fixer.io/latest?base=${base}`);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[
|
||||
"AUD",
|
||||
"USD",
|
||||
"BGN",
|
||||
"BRL",
|
||||
"CAD",
|
||||
|
||||
Reference in New Issue
Block a user