korova

所属分类:自然语言处理
开发工具:Rust
文件大小:21KB
下载次数:0
上传日期:2023-01-14 22:41:33
上 传 者sh-1993
说明:  Korova Milky Bot:用Rust编写的不和谐机器人,用于聚集人们一起玩游戏、娱乐玩家等。
(Korova Milky Bot: Discord bot written in Rust to gather people for playing games together, entertain players etc.)

文件列表:
.dockerignore (131, 2023-07-28)
Cargo.lock (54357, 2023-07-28)
Cargo.toml (435, 2023-07-28)
Dockerfile (560, 2023-07-28)
LICENSE (1073, 2023-07-28)
shell.nix (292, 2023-07-28)
src (0, 2023-07-28)
src\main.rs (6793, 2023-07-28)
src\plugins.rs (6796, 2023-07-28)

# korova `korova` is a Discord bot (written in Rust). It's main functionality is gathering people to play games. ## Build ```bash git clone https://github.com/Necior/korova cd korova cargo build --release ``` Now `./target/release/korova` contains the binary ## Usage You have to [create a Discord app](https://discord.com/developers/applications), create app's bot and provide its token as a `KOROVA_TOKEN` environment variable: ```bash KOROVA_TOKEN="put your token here" ./target/release/korova ``` Now server admin can invite the bot to the server using the following URL: ``` https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=67584&scope=bot ``` where `CLIENT_ID` is your application's `client_id`. The above URL can be also generated from the Discord application dashboard. Visit OAuth2 tab, select `bot` scope and both `Send Messages` `Read Messages History` bot permissions to generate the URL. ## Update Update repository (`git pull`), rebuild (`cargo build --release`) and restart the bot.

近期下载者

相关文件


收藏者