acocalypso / discordrolemanager Goto Github PK
View Code? Open in Web Editor NEWManage Discord Roles the lazzyyy way
License: Apache License 2.0
Manage Discord Roles the lazzyyy way
License: Apache License 2.0
List is not generated on first access
Hi
I have DiscordRoleManager running with PM2 as it will lose connecton every so often and stop running (or if i get the syntax wrong). The problem I find is it forgets to send out reminders and remove members without manual intervention.
If I issue a !temprole check againsts my members it then notices how long left is on the membership and reminds/removes as needed. Would it be possible for it to essentially "!temprole check" all members in the database each time it starts?
Thanks
I got Always the error you have no permission to run these command or you are not allowed to run that command because your @username are not in Database Name.
or i couldn't add my user to the adminrole.
How I do u fixed...
First. I created an discord a role and i called it admin, i add my discord username to that role.
Then i change in DRM config file the ownerid for the admin role id that i created and restart the docker.
Now on discord i (prefix)register adminrole @AdminRole where @AdminRole ist the admin role that i created in discord.
Than i followed the DRM guide as normal.
Hello,
I have this error whatever I do with the bot :
/home/ubuntu/DiscordRoleManager-master/start.js:109
bot.createMessage(config.mainChannelID, "⚠ " + rows[rowNumber].temporaryRole + " for user " + member.user.username + " does not exist! Please check your role assignment").catch((err) => { console.log(err) });
^TypeError: Cannot read property 'user' of undefined
at Statement. (/home/ubuntu/DiscordRoleManager-master/start.js:109:107)
And it stops the bot.
Describe the bug
At this moment there are 2 commands, 1 for adding a user to the role and db with 1 command, and a seperate command to add time to an excisting user.
It often happens to me when i add time to a user ( that just has lost his role and i didnt know that ) that i get the error that the user is no longer in the database.
This could solve the whole problem.
1 command to add a new user to the database, and the same command also to add time.
Knechter already did that some time ago and that worked perfectly.
Kneckter/DiscordRoleBot@17d300e
Describe the bug
When a user is doing a test on how long his role will be active bij !tr check @name @ROLE it will ping all the users with that role since you do in a command @ROLE
To Reproduce
Steps to reproduce the behavior:
Expected behavior
People should not get a ping, but since a user is doing that command to ask the discordbot it will by discord behavior ping all users with that role aswell.
Screenshots
Additional context
Best would be if its not @ROLE but simply role.
Hi !
I look through the code and tested the bot quit a bit and figured out that mods and admin commands are usable by everyone on the server.
config.json
is configured like this :
"adminRoleName": "MODÉRATEUR",
"modRoleName": "MODÉRATEUR",
start.js
is set up like this (I didn't touche anything) :
let AdminR = g.roles.find(role => role.name === config.adminRoleName);
if (!AdminR) {
AdminR = { "id": "111111111111111111" };
console.info("[ERROR] [CONFIG] I could not find admin role: " + config.adminRoleName);
}
let ModR = g.roles.find(role => role.name === config.modRoleName);
if (!ModR) {
ModR = { "id": "111111111111111111" };
console.info("[ERROR] [CONFIG] I could not find mod role: " + config.modRoleName);
}
But still, when a regular member try the command <temprole add @hisname>
it works ...
The condition before the command output is :
if (g.members.filter(m => m.roles.includes(AdminR.id)) || g.members.filter(m => m.roles.includes(ModR.id)))
Any ideas ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.