An open API service indexing awesome lists of open source software.

https://github.com/yehuthi/serenity_ctrlc

Ctrl+C handler for serenity.
https://github.com/yehuthi/serenity_ctrlc

discord exit graceful-shutdown rust serenity-rs sigint sigkill

Last synced: 7 months ago
JSON representation

Ctrl+C handler for serenity.

Awesome Lists containing this project

README

          

# serenity_ctrlc [](https://crates.io/crates/serenity_ctrlc)

Graceful Ctrl+C handler for serenity bots.

## Example

```rust
use serenity_ctrlc::Ext;

ClientBuilder::new(token)
// ...
.await?
.ctrlc()? // ←
.start()
.await?;
```