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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 100.0%