Coder Social home page Coder Social logo

olihensel / node-red-contrib-discord-advanced Goto Github PK

View Code? Open in Web Editor NEW

This project forked from markoudstaal/node-red-contrib-discord-advanced

0.0 1.0 0.0 399 KB

Recieve, send, edit and delete Discord messages in node-red.

License: MIT License

JavaScript 68.30% HTML 31.70%

node-red-contrib-discord-advanced's Introduction

node-red-contrib-discord-advanced

npm version

Node-red nodes that allow you to interact with Discord, via Discord.js.

Currently the following actions are supported:

  • Receive messages from any Discord servers your BOT is in.
  • Send messages in a specific channel.
  • Send private messages to users.
  • Send and edit embed messages.
  • Add attachments to messages.
  • Edit messages in a channel.
  • Delete messages in a channel.
  • Listen for reactions on a message.
  • Listen for interactions on a message button or select menu.
  • Listen for interactions on commands.
  • Get permissions of a specific user.
  • Allow full control over the BOT by access to the DiscordJS client.

This repository builds on node-red-contrib-discord by Joris vd Donk . The main intention is to add more features and keep the repository updated.

Installation and documentation

The Wiki is still being written when it comes to documentation but you can find a guide on how to install and setup the nodes here.

Nodes

node-red-contrib-discord-advanced gives you access to four nodes:

  • discordMessage is a node with no inputs and one output allowing you to receive notifications of incoming messages.
  • discordMessageManager allows (embed) messages to be sent to either channels or privatly to user. It also allows for editing and deleting of (embed) messages.
  • discordReactionManager that allows you to listen to reactions on a message.
  • discordPermissions allows you to check the permissions of a specifc user. This is useful when you get the user from another source than the discordMessage node.
  • discordClient is an advanced deprecated node with one input and one output allowing you to inject a references to a Discord.js Client into a message. This node can cause node-red to crash if you use it improperly, so take caution. Messages containing a Discord.js Client reference can not be forked (e.g. sent to two nodes), so you'll have to manually remove the reference to the Client via a function node using delete msg.discord.
  • discordInteraction allows you to listen to commands, buttons and select menu interactions and to decide how to respond to them.

Changelog

See CHANGELOG.md for more info, including information regarding breaking changes per version.

Support, issues and feature requests

For support in setting up and feature requests you can contact me on this discord. Issues can also be reported there but prefferably via GitHub.

Discord.js client sharing

All nodes share Discord.js clients based on the discord-token that they were configured with. That means that, when you add many discordMessage nodes configured with the exact same token, only a single connection with Discord will be made.

node-red-contrib-discord-advanced's People

Contributors

javis86 avatar markoudstaal avatar olihensel avatar omniskop avatar

Watchers

 avatar

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.