Crates.io | serenity_ctrlc |
lib.rs | serenity_ctrlc |
version | 0.3.0 |
source | src |
created_at | 2022-02-17 16:54:57.970267 |
updated_at | 2022-06-15 15:11:15.360608 |
description | Ctrl+C handler for serenity. |
homepage | |
repository | https://github.com/yehuthi/serenity_ctrlc |
max_upload_size | |
id | 534226 |
size | 40,232 |
Graceful Ctrl+C handler for serenity bots.
use serenity_ctrlc::Ext;
ClientBuilder::new(token)
// ...
.await?
.ctrlc()? // ←
.start()
.await?;