Skip to content

NotiLo-A/foxbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foxbot

Telegram bot that sends a random fox image on /fox command.

Images sourced from wohlsoft.ru/images/foxybot/foxes.

Local

Requires Go 1.22+.

git clone https://github.com/yourname/foxbot
cd foxbot
BOT_TOKEN=your_token go run .

Production

Build for Linux and copy to the server:

GOOS=linux GOARCH=amd64 go build -o foxbot .
scp foxbot user@your-server:/usr/local/bin/foxbot

Create and enable a systemd service:

sudo tee /etc/systemd/system/foxbot.service << 'EOF'
[Unit]
Description=Fox Telegram Bot
After=network.target

[Service]
ExecStart=/usr/local/bin/foxbot
Restart=on-failure
RestartSec=5
Environment=BOT_TOKEN=your_token

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now foxbot

About

Telegram bot that sends random fox images on /fox command

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages