serenity_ctrlc

Crates.ioserenity_ctrlc
lib.rsserenity_ctrlc
version0.3.0
sourcesrc
created_at2022-02-17 16:54:57.970267
updated_at2022-06-15 15:11:15.360608
descriptionCtrl+C handler for serenity.
homepage
repositoryhttps://github.com/yehuthi/serenity_ctrlc
max_upload_size
id534226
size40,232
Yehuthi (yehuthi)

documentation

README

serenity_ctrlc

Graceful Ctrl+C handler for serenity bots.

Example

use serenity_ctrlc::Ext;

ClientBuilder::new(token)
	// ...
	.await?
	.ctrlc()? // ←
	.start()
	.await?;
Commit count: 11

cargo fmt