Setting up giphybot
Create a configuration toml file with the app's configuration. It should look like this:
[general] port = "9999" [giphy] api_key = "GIPHY_API_KEY" [braid] name = "nameofthisbotonbraid" api_url = "https://api.braid.chat/bots/message" app_id = "BOT_BRAID_ID" token = "BOT_BRAID_TOKEN"
There is a public giphy api key to use for testing:
Specify the file as the first command-line argument, e.g.
$ giphybot conf.toml
You can run the bot for testing by doing
cargo run conf.toml.
To deploy, build with
cargo build --release then upload the generated binary from
If building on a different architecture than you'll be deploying to, look into rustup cross-compilation.