当我们绞死资本家的时候,他们会把绳子卖给我们。——约瑟夫•维萨里奥诺维奇•斯大林
Go to file
2024-01-18 17:19:37 +08:00
.github/workflows
.vscode
deploy/k8s
entity
migration
src
.envrc
.gitignore
build.rs
Cargo.lock
Cargo.toml
default.nix
Dockerfile
flake.lock
flake.nix
LICENSE
README.md
shell.nix

Hangitbot

A boring bot for hanging your boss up.

hangitbot 0.1.0
A boring bot for hanging your boss up.

USAGE:
    hangitbot [OPTIONS] --tgbot-token <TGBOT_TOKEN>

OPTIONS:
    -d, --database-uri <DATABASE_URI>
            Database URI [env: DATABASE_URI=] [default:
            sqlite:///hangitbot.db]

    -D, --debug
            Enable debug mode

    -h, --help
            Print help information

    -t, --tgbot-token <TGBOT_TOKEN>
            Telegram bot token [env: TGBOT_TOKEN=]

    -V, --version
            Print version information

build

You should use nightly build kit.

rustup default nightly
cargo build

Or simply use docker.

docker build -t bot .