discordjs-economie
v1.5.0
Published
<br> <br>
Downloads
2
Readme
This module
Discord economie are a symple module to make a basic économis systeme with MongoDB or Mysql.
To setup with mongoDB (to get/make uri go to this tutorial : https://www.youtube.com/watch?v=aygw0wjW5bA)
NOTE : If you see "user" or "guild" you just add USER or GUILD, not id.
To Import module
const economie = require('discordjs-economie');
To use the module with MongoDB
const economie = require('discordjs-economie');
economie.db.mongooseConnect('mongoose uri');
economie.setClient(client);
To Remove/Add money
const economie = require('discordjs-economie');
economie.db.mongooseConnect('mongoose uri');
economie.setClient(client);
economie.db.mongoose.addMoney(ammount, user, guild);
economie.db.mongoose.removeMoney(ammount, user, guild);
To get money off any user
const economie = require('discordjs-economie');
economie.setClient(client);
economie.db.mongooseConnect('mongoose uri');
economie.db.mongoose.getMoney(user, guild);
To use the module with Mysql
const economie = require('discordjs-economie');
economie.db.mysqlConnect('host', 'user', 'port', 'password', 'database');
economie.setClient(client);
To Remove/Add money
const economie = require('discordjs-economie');
economie.db.mysqlConnect('host', 'user', 'port', 'password', 'database');
economie.setClient(client);
economie.db.mysql.addMoney(ammount, user, guild);
economie.db.mysql.removeMoney(ammount, user, guild);
To get money off any user
const economie = require('discordjs-economie');
economie.setClient(client);
economie.db.mysqlConnect('host', 'user', 'port', 'password', 'database');
economie.db.mysql.getMoney(user, guild);
If you have a problem, you can contact us on github, and if you have a problematic error you will have to create an issue.
Github