From ff0a5c418dc163798492eaf31f21b7db2ba05b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 13 Nov 2020 16:05:00 +0100 Subject: update readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 60e419f..af3bb39 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,15 @@ In order to actually use the bot you need: - A Discord bot user - Necessary permissions to add bots to your Slack workspace and Discord server -Then, either pass the bot tokens as enviornment variables (`DISCORD_API_TOKEN` and -`SLACK_API_TOKEN`), or hard-code them into the binary (**NOT RECOMMENDED** +Then, either pass the bot tokens as enviornment variables (`DISCORD_API_TOKEN` +and `SLACK_API_TOKEN`), or hard-code them into the binary (**NOT RECOMMENDED** except for development purposes) by editing `src/discord.rs` and `src/slack.rs`. Which channels the messages are sent to is currently specified via either hard-coded constant values (again, not recommended, but at least not a security -issue here) or environment variables (`DISCORD_CHANNEL` and `SLACK_CHANNEL`). +issue here) or environment variables (`DISCORD_CHANNEL` and `SLACK_CHANNEL`). If +neither is set the bot will print a list of all channels and their IDs when +starting so you can specify a channel. The following shows all necessary steps needed to build and run the bot: -- cgit v1.2.1