4 releases (2 breaking)

0.3.0 Jun 15, 2022
0.2.0 Apr 13, 2022
0.1.1 Feb 17, 2022
0.1.0 Feb 17, 2022

#1237 in Asynchronous

MIT/Apache

12KB
68 lines

serenity_ctrlc

Graceful Ctrl+C handler for serenity bots.

Example

use serenity_ctrlc::Ext;

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

lib.rs:

Ctrl+C handling for serenity bots.

Dependencies

~20–33MB
~626K SLoC