Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ellache/discord_embed_parser

Node/Typescript/Discord.js; Discord bot that parses embeds sent in a guild and looks for matches on user-specified regular expressions. Deployable to Firebase
https://github.com/ellache/discord_embed_parser

discord discord-api discord-bot discord-js firebase

Last synced: about 2 months ago
JSON representation

Node/Typescript/Discord.js; Discord bot that parses embeds sent in a guild and looks for matches on user-specified regular expressions. Deployable to Firebase

Awesome Lists containing this project

README

        

# Discord Embed Parsing
Made for personal use; but could expand docs/add features if there is interest.
Features:
- Reads any embeds sent in a discord guild (including those autogenerated by links)
- Applies a regex to a subset of embed fields and resends that embed in a specified channel if there is a match
- Matching pattern and embed contents are posted to new channel.

*Currently author-level regex customizations are designed explicitly for TweetShift content; however the code is generic and this can easily be adapted

FB deploy will fail if you have not set the required config variables. They are:

- `discord.bot_token`
- `discord.send_channel_id`

They can be set with a command like
`firebase functions:config:set discord.bot_token="TOKEN" discord.send_channel_id="CHANNEL_ID"`

### Installation

### Usage