Enrich Discord chat with Dialogflow powered moderation and autoresponding.
You'll need to set some environment variables:
DISCORD_TOKEN
- your bot's tokenCLIENT_EMAIL
- fromprojectId-somesymbols.json
credentials filePRIVATE_KEY
- from the same filePROJECT_ID
- your project ID in Google CloudCHANNEL_IDS
- CSV of channels which messages will be whitelistedTIMEOUT
- time between bot replies per trigger (msec)COMMAND_[...your trigger here...]
- text of reply to user's message. Dialogflow agent should return a single short string which will be considered as a trigger. You can add these vars as much as required.DELETE_TRIGGERS
- CSV of triggers that deletes a message without reply
Then, just run yarn start
.