Coder Social home page Coder Social logo

mimickal / reactionrolebot Goto Github PK

View Code? Open in Web Editor NEW
53.0 4.0 11.0 913 KB

Basic, no BS Discord bot that can assign / unassign roles with message reactions

License: GNU Affero General Public License v3.0

JavaScript 17.98% Shell 0.76% Procfile 0.03% TypeScript 81.23%
discord bot reaction role react roles assignment assign unassign discord-js

reactionrolebot's People

Contributors

mimickal avatar nightlxight avatar shellyherself avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

reactionrolebot's Issues

Your instance only works with admin permissions

Hi, thanks for this.

I just invite your instance to my server and the only way to get a response with "@ No BS Role Reacts help" is given it the Administrator permissions. But this is not what your readme says, so it is working fine?

The role is at top, I tried giving it all the others permissions except Admin, but seems that it only works with the Administrator permission.

I am missing something? it will works if I remove that permission after I create the message with roles?

Pre-cache destroys rate limit

v2.0.0 attempts to warm up the message cache on login. It does this by scanning every channel in every server for every message the database has for that server. This works when the bot is only in one or two servers, but completely annihilates the API with 404 errors at any reasonable scale. This causes the bot to hit the rate limit almost immediately, and if run on the same machine your desktop client is on, will also lock you out of the desktop client.

I have disabled this functionality in my hosted instance. I need to formally disable it and draft up a new release for that.

Have the bot create it's own message?

Instead of editing a users message. Is there any command or way to make the bot create a message instead in a channel with description and title? Use that as the message link to create roles? Lets say the person whom's message is linked leaves the server. That becomes problematic as we cannot edit their message. But if it's the bots own message we can do it.

Slash Commands

Slash commands are currently in development. I will update this issue with more info as things get done.

Heroku?

Would it be possible to get this bot running forever on Heroku? A possible quick setup would be nice too.

Change command

How to change the commands and query themselves (from "@bot select "to"! select")?

Error while trying to add a reaction to a message

Hey, I tried adding a reaction to a message, I made sure to select the message before that. While trying to add a reaction with: @bot role-add 👍 @member, I get this error: [Error: insert into reacts (emoji_id, guild_id, message_id, role_id) values ('�', '746419337509994509', '746744995813523557', '746741321070411868') - SQLITE_ERROR: no such table: reacts] {
errno: 1,
code: 'SQLITE_ERROR'

Help please!

Bot is down!?

Today a new member wrote me that he couldn't use the autorole and it turns out that your bot is offline in all servers I am using it, I don't know for how long. I tried to re-invite it but it's still the same.

Can you check that everything is running on the server hosting the bot please? I haven't changed any settings since the last time I saw it working. Maybe Discord did some changes in the last update?

Thanks!

Error

I have the error [Error: insert into reacts (emoji_id, guild_id, message_id, role_id) values ('685131850762682463', '676117230349713458', '724212682630234122', '689816959730057237') - SQLITE_ERROR: no such table: reacts] {
errno: 1,
code: 'SQLITE_ERROR'
}
What I have to do?

Custom Emojis not working

Hi, just got the development version of this bot working. I'm having trouble right now though with getting custom emojis functioning - When I map a role to a custom emoji on a message, the bot acknowledges this, and adds the emoji onto that message, but actually clicking on that reaction on the message had no effect on roles. This is working fine for default Discord emojis.

Help would be much appreciated!

Role assigning & un-assigning issues- assigning wrong role, not un-assigning, etc.

So I was doing some testing with it and noticed if you go too quick and react to multiple emojis (5 in my test) it will miss some roles to assign, Then when I un-reacted to all of them it removed some but not all, but the weirdest part was it removed one then added another- very strange.

This bot has great potential, I see you mention rate limits but this doesn't have anything to do with rate limiting- another reaction bot I host is able to support fast reacting/un-reacting.

I'm also a bit confused about how the mutuall exclusive roles work. Rather than trying to understand it, maybe you could answer this for me; When someone reacts for certain roles, anytime they react to 1 or more of them, the bot will always make sure they are assigned this "base" role. In this example the ----Notifs---- is the base role, so anytime someone reacts to get any of the roles below it, the bot makes sure that they also have the ----Notifs---- role as well. (This is more of a cosmetics thing, just to show that any roles below this are purely for ping notifications)

Is that was mutual exclusive roles are supposed to do? Because I assigned ---Notifs--- to each of those roles, but when I reacted to the emojis it assigned the role but never the ---Notifs--- role.
image

(Edit: When testing mutual exclusive, because of the issue with speed of assigning/un-assigning roles the mutual exclusive doesn't work that great because if you have roles A & B then react to C, it attempts to remove A & B but always leaves 1 or another.)

select-message context menu command not responding

The message select context menu command has been causing unhandled errors for some time now. This is a known issue and I am working on it.

In the mean time, the /select-message-mobile slash command can be used with a message link to work around this issue.

Multiple (2) roles per reaction?

Is it possible to set 2 roles per reaction?

There might be a slight issue with this. When the user unreacts to get the role removed, the bot doesn't know better to leave the base role assigned unless users has unreacted to all reactions.

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.