Telegram.Bot.DecisionMaker/README.md

27 lines
811 B
Markdown
Raw Permalink Normal View History

2023-01-08 22:57:00 +01:00
# Telegram.Bot.DecisionMaker
Telegram bot that helps you make decisions. Production instance running on [@decisionparalysisbot](https://t.me/decisionparalysisbot).
In case the official instance ever goes down, here's how to set this up yourself:
- Obtain your own bot token from [@BotFather](https://t.me/BotFather)
- Start this bot using `TELEGRAM_BOT_TOKEN=yourtoken dotnet run`
systemd service example:
```
# /etc/systemd/system/decisionbot.service
[Unit]
Description=Telegram.Bot.DecisionMaker
Wants=network-online.target nss-lookup.target
After=network-online.target nss-lookup.target
[Service]
Type=simple
User=botuser
WorkingDirectory=/opt/Telegram.Bot.DecisionMaker
Environment=TELEGRAM_BOT_TOKEN='yourtoken'
ExecStart=/usr/bin/dotnet run
Restart=on-failure
[Install]
WantedBy=multi-user.target
```