mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Clear currency conversion cache every 30 minutes
This commit is contained in:
@@ -65,6 +65,7 @@ module.exports = class CurrencyCommand extends Command {
|
||||
compact: 'ultra'
|
||||
});
|
||||
this.rates.set(query, body[query]);
|
||||
setTimeout(() => this.rates.delete(query), 1.8e+6);
|
||||
return body[query];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user