sample
turbot/flowpipe-samples/send-discord-message
Get Involved
Version
License
Send Discord Message
Send a message to a Discord channel.
Installation
Download and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:
brew tap turbot/tapbrew install flowpipe
Clone:
git clone https://github.com/turbot/flowpipe-samples.gitcd messaging/send_discord_message
flowpipe mod install
Connections
By default, the following environment variables will be used for authentication:
DISCORD_TOKEN
You can also create connection
resources in configuration files:
vi ~/.flowpipe/config/discord.fpc
connection "discord" "default" { token = "xoxp-12345-..."}
For more information on connections in Flowpipe, please see Managing Connections.
Usage
Run the pipeline and specify the discord_channel_id
and discord_message
pipeline arguments:
flowpipe pipeline run send_discord_message --arg 'discord_channel_id=1162602104318332928' --arg 'discord_message=Hello world'