#discord #serenity

serenity_ctrlc

Ctrl+C handler for serenity

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

#1309 in Asynchronous

25 downloads per month

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

~21–33MB
~613K SLoC