Coder Social home page Coder Social logo

discordrolemanager's People

Contributors

acocalypso avatar coldshadow80 avatar dependabot[bot] avatar pjorritsma avatar raphael1700 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discordrolemanager's Issues

Failing to send reminders after a restart

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

yml line 28

I trying to Install it in docker and i get that Error in the Foto above i followed All the steps as i should
rn_image_picker_lib_temp_1ea44c7c-e232-4447-b612-a3806d8a7639
and nothing work.
How could we fix it

Permission error

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.
Screenshot_2022-11-01-11-07-14-597_com discord-edit
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.

Bot crash after 1min

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.

[Feature request] Add time when normal command is used

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

People that check their role will ping all people with the role due the layout of the command.

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:

  1. have a donator role like Vip
  2. make a channel where people can do the check command
  3. Let people do the command !tr check @name @ROLE
  4. people will get notified that the command is used with that role.

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.

ADMIN & MODS commands are accessible to everyone.

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.