https://github.com/delath/megumi-bot
Telegram bot developed in Go, used as a controller for my server.
https://github.com/delath/megumi-bot
bot go telegram
Last synced: 4 months ago
JSON representation
Telegram bot developed in Go, used as a controller for my server.
- Host: GitHub
- URL: https://github.com/delath/megumi-bot
- Owner: delath
- License: apache-2.0
- Created: 2024-02-17T00:00:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T17:09:05.000Z (over 1 year ago)
- Last Synced: 2025-01-28T18:23:37.436Z (over 1 year ago)
- Topics: bot, go, telegram
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Cross-compiling from windows powershell
```powershell
$Env:GOOS = "linux"; $Env:GOARCH = "amd64"
$Env:TELEGRAM_BOT_TOKEN = "0000000000:ABCDEFGHIJKLMNOPQRSTUVWXYZABEXAMPLE"
$Env:CONFIG_FILE_PATH = "/path/to/config.json"
go build main.go
```
## Running the bot on debian and probably many other linux distributions
```bash
env TELEGRAM_BOT_TOKEN=0000000000:ABCDEFGHIJKLMNOPQRSTUVWXYZABEXAMPLE CONFIG_FILE_PATH=/path/to/config.json /path/to/your/executable
```