~kmdodrill/telegram-welcome-bot

Telegram bot that welcomes new users (uses welcome messages from Discord), written in Rust.
Add all files from GitHub

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~kmdodrill/telegram-welcome-bot
read/write
git@git.sr.ht:~kmdodrill/telegram-welcome-bot

You can also use your local clone with git send-email.

Build Status

#Telegram Welcome Bot

Telegram bot that welcomes new users (uses welcome messages from Discord), written in Rust.

Built with telegram-rs/telegram-bot, discord messages copied over from fourjr/Discord Join Messages.

#Install

Go grab the latest release, and decompress it.

#Usage

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:

vi Settings.toml

The 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!

#Adding more messages

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.