Skip to content

Latest commit

 

History

History

discord-write

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Discord Write

Read messages from topic and write to Discord via webhook.

Discord Documentation

Running

Before start you need DISCORD_WEBHOOK_URL. In Discord go to your server. Then next to the server name click on the drop down menu and select Server Settings -> Integrations -> Webhooks -> Create webhook -> Select channel name and save changes. You can copy webhook URL by clicking on Copy webhook URL button.

WebHook URL has following format: https://discord.com/api/webhooks/{webhook.id}/{webhook.token} where webhook.id are numbers and webhook.token are letters and numbers.

# install dependencies
npm install

# transpile TS->JS to dist/
npm run build

# make a compressed package with Sequence
si seq pack dist

# send Sequence to transform hub, this will output Sequence ID
si seq send dist.tar.gz

# start a Sequence, provide DISCORD_WEBHOOK_URL as the second parameter
si seq start - <DISCORD_WEBHOOK_URL>

# view messages in topic
si topic get messages