mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Changed the Mongodb structure to include what's in the database, added the 'r' and 'reactionrole' commands
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user