Ready for new release
This commit is contained in:
parent
1186cd3226
commit
4a7ac0c023
1 changed files with 11 additions and 6 deletions
|
@ -5,17 +5,22 @@ use serenity::http::Http;
|
|||
pub async fn send_error(_http: Arc<Http>, msg: String) {
|
||||
println!("ERROR: {msg}");
|
||||
|
||||
#[cfg(feature="RELEASE")]
|
||||
#[cfg(feature="RELEASE")] {
|
||||
use serenity::all::ChannelId;
|
||||
use serenity::all::CreateMessage;
|
||||
use std::process::exit;
|
||||
|
||||
match ChannelId::new(1199495008416440491)
|
||||
.send_message(_http, CreateMessage::new().content(msg)).await {
|
||||
Ok(_) => { return; }
|
||||
Err(_) => { exit(-1) }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature="RELEASE")]
|
||||
pub async fn hello(http: Arc<Http>) {
|
||||
use serenity::http::Http;
|
||||
use serenity::all::ChannelId;
|
||||
|
||||
let messages = [
|
||||
"AAAAAAAAAAAAAAAAAAAA",
|
||||
|
|
Loading…
Reference in a new issue