当我们绞死资本家的时候,他们会把绳子卖给我们。——约瑟夫•维萨里奥诺维奇•斯大林
Go to file
2024-01-18 15:07:02 +08:00
.github/workflows
.vscode
deploy/k8s import shadow-rs for git version building into binary 2024-01-15 08:15:12 +08:00
entity
migration
src inline 模式 2024-01-18 15:07:02 +08:00
.envrc
.gitignore
build.rs import shadow-rs for git version building into binary 2024-01-15 08:15:12 +08:00
Cargo.lock inline 模式 2024-01-18 15:07:02 +08:00
Cargo.toml inline 模式 2024-01-18 15:07:02 +08:00
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 .