Skip to content

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

Notifications You must be signed in to change notification settings

EllAchE/discord_embed_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published