Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ellache/discord_embed_parser
- Owner: EllAchE
- License: mit
- Created: 2021-10-27T00:14:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T08:27:05.000Z (about 3 years ago)
- Last Synced: 2024-11-09T14:47:06.506Z (3 months ago)
- Topics: discord, discord-api, discord-bot, discord-js, firebase
- Language: TypeScript
- Homepage:
- Size: 189 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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