echo-bot
is a programme which repeated your messages.
- Command
/help
will show you a help message. - Command
/repeat
will allow you to change how many timesecho-bot
will repeat your messages.
-
Clone this repository.
-
You have to get your telegram bot token. You can get it in BotFather Telegram bot.
-
You have to inform your token to
echo-bot
. For this, you need to create filetoken.cfg
and take advantage oftoken-template.cfg
. You have to replace substring<token>
with your token. -
To run
echo-bot
you need to use Stack. Use commandstack run
for run echo-bot
.
Start configurations bot is in configurations.cfg
.
-
bot_type contains where the bot will work. The value of field
type
must be"telegram"
or"console"
. If the value is"telegram"
then the bot will run in your telegram bot. If the value is"console"
then the bot will run in the console. -
bot_messages contains default messages for
/help
and/repeat
command as well as a default value for the repetition count. -
log contains a minimal level log. The value of field
min_level
must be'error'
,'warning'
,'info'
or'debug'
.