Read messages from Discord channel and write to topic. This Sequence is a topic provider, it writes data under a topic name messages-slack-inbound
in "application/x-ndjson"
content type.
Replace the string with the bot token you generated previously.
Move the config.json
file to discord-read
sample directory.
# install dependencies
npm install
# transpile TS->JS to dist/
npm run build
# make a compressed package with Sequence
si seq pack dist
# send the Sequence to transform hub, this will output Sequence ID
si seq send dist.tar.gz
# start the Sequence
si seq start - -f config.json
# check Discord API connection via stdout stream
si inst stdout -
# type some messages on any channel on your Discord server and view the messages in topic
si topic get messages-slack-inbound