aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure/src/commands/owner.rs
blob: e80c19dd9e281ef1e4ff9bf7fc567aeaabf55ca5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
command!(quit(ctx, msg, _args) {
    match ctx.quit() {
        Ok(()) => {
            let _ = msg.reply("Shutting down!");
        },
        Err(why) => {
            let _ = msg.reply(&format!("Failed to shutdown: {:?}", why));
        },
    }
});