Telegram bot that welcomes new users (uses welcome messages from Discord), written in Rust.
Go grab the latest release, and decompress it.
Directly after installation, please copy the
Settings.example.toml over to
Settings.toml like so:
cp Settings.example.toml Settings.toml
Now use a text editor of some sort to edit the file and set the values:
TELEGRAM_BOT_TOKEN is the token you receive after making your bot through BotFather.
Once you have the bot configured, just run the binary and the bot will be live!
Feel free to add more messages! To add more, go into the
data folder in your installation. Here, you will find
Discord_Welcome_Messages.toml. You can add (or remove!) keys and values here, but be sure that the numbers line up correctly:
DISCORD_WELCOME_MESSAGE_1="" DISCORD_WELCOME_MESSAGE_2="" DISCORD_WELCOME_MESSAGE_3="" # There's no 4 here! DISCORD_WELCOME_MESSAGE_5="" DISCORD_WELCOME_MESSAGE_6=""
The above example may result in an error, because this bot randomly generates a number and uses it to choose a welcome message.