Coder Social home page Coder Social logo

peterthehan / discord-reaction-role-bot Goto Github PK

View Code? Open in Web Editor NEW
123.0 123.0 51.0 3.93 MB

A Discord bot that allows users to self-assign roles using reactions.

License: MIT License

TypeScript 100.00%
bot discord discord-bot emoji reaction reaction-role reaction-roles reactions role roles

discord-reaction-role-bot's Introduction

discord-reaction-role-bot's People

Contributors

peterthehan 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  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  avatar  avatar  avatar  avatar

discord-reaction-role-bot's Issues

Custom emojis documentation

The readme says we should use the 'emoji id' for custom emojis. Practically, it doesn't say how to get input that emoji id and report them as "unknown".
For example, I've a :cyan_ship: custom emoji, but the bot is errorring when I try use cyan_ship or :cyan_ship: as an id.
To get the actual id, ones need to escape the emoji. So in my case, I had to type \:cyan_ship: in discord to see the id to use.

Help

Where do I put my token?

error

This is being so all people
npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/runner/discord-reaction-role-bot/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/discord-reaction-role-bot/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-01-04T09_30_19_818Z-debug.log
exit status 254

BOT doesn’t add the emoji

I got the project running it works except for that the bot doesn’t add the emoji reaction to the message.

I am currently on mobile, I can look into the project myself tomorrow but if you know a quick fix please let me know :)

Your projects look awesome btw! :)

For anyone who has a problem with: “AbortController is not defined” make sure you are using the latest JS version.

check node version:

node -v

For using Discord.js v13 is that you need to use NodeJS v16.6 or higher

fix:

npm install -g n
n latest

Custom Emoji issue

Hello!

First off, great project, thanks a lot as it really takes a lot work off people's bottoms.
Anyways, to the issue I'm having.

Everything properly set up, if I start using a custom emoji, that is being added to the message as expected.

However, if I click on the emoji, the role isn't being assigned properly - in contrary to a utf-8 emoji. The reaction is being removed instantly as expected, so the bot "works with it", however it doesn't identify that the reaction was clicked.

I'm assuming it is a bug but didn't find the source yet. Maybe you'll have an idea. I'm assuming it could be an issue with identifying what emoji was clicked since it expects :emojiname:emojid, contrary to documentation.

Might be worth checking further

Stopping it from removing users reactions?

I see in the .gif example, when a user reacts it gets reset back to 1 reaction. Not sure how this is even done (though I've seen it before) but is there an easy way to disable this or make it so it doesn't do that?

Just out of curiosity would be nice to see the quantity count of reactions.

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.

role remove

the bot works, however when remove the reaction the role doesnt get removed, but it does if i react again. (using any policy)

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.