Changed the Mongodb structure to include what's in the database, added the 'r' and 'reactionrole' commands

This commit is contained in:
ION606
2022-05-14 20:40:58 +03:00
parent 44d65fce98
commit a69d50ce9f
5 changed files with 48 additions and 8 deletions
+23
View File
@@ -0,0 +1,23 @@
function checkRole(message, args) {
let role = args[0];
if (message.member.hasPermission('ADMINISTRATOR')) { return true; }
/*Maybe implement this later, useless for now
const client = new MongoClient(mongouri, { useNewUrlParser: true, useUnifiedTopology: true, serverApi: ServerApiVersion.v1 });
client.connect(err => {
const role = client.db(message.guild.id).collection("admin-roles");
shop.find().toArray(function(err, itemstemp) {
if (err) throw err;
items = [...itemstemp];
client.close();
});
});*/
}
module.exports = {name: 'verify', checkRole}