npm i currency-system
const CurrencySystem = require("currency-system");
const cs = new CurrencySystem;
// Debug logs! Helps in finding issues!
CurrencySystem.cs.on('debug', (debug, error) => {
console.log(debug);
if (error) console.error(error);
});
// Login To Discord Bot Client!!
client.login(token);
// Set MongoDB URL!
cs.setMongoURL(mongourl);
// Set Default Bank Amount when a new user is created!
cs.setDefaultBankAmount(1000);
// Its bank space limit (can be changed according to per user) here 0 means infinite.
cs.setMaxBankAmount(10000);
// Set Default Maximum Amount of Wallet Currency a user can have! (can be changed according to per user) here 0 means infinite.
cs.setMaxWalletAmount(10000);
// Search for new npm package updates on bot startup! Latest version will be displayed in console.
cs.searchForNewUpdate(true)
// Set Default Maximum Amount of Bank Currency a user can have! (can be changed according to per user) here 0 means infinite.
cs.setDefaultBankLimitForUser(1000)
Contributed In
Contributed In