Ready for new release
This commit is contained in:
parent
961a7fd951
commit
cc40a25528
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) {
|
pub async fn send_error(_http: Arc<Http>, msg: String) {
|
||||||
println!("ERROR: {msg}");
|
println!("ERROR: {msg}");
|
||||||
|
|
||||||
#[cfg(feature="RELEASE")]
|
#[cfg(feature="RELEASE")] {
|
||||||
match ChannelId::new(1199495008416440491)
|
use serenity::all::ChannelId;
|
||||||
.send_message(_http, CreateMessage::new().content(msg)).await {
|
use serenity::all::CreateMessage;
|
||||||
Ok(_) => { return; }
|
use std::process::exit;
|
||||||
Err(_) => { exit(-1) }
|
|
||||||
|
match ChannelId::new(1199495008416440491)
|
||||||
|
.send_message(_http, CreateMessage::new().content(msg)).await {
|
||||||
|
Ok(_) => { return; }
|
||||||
|
Err(_) => { exit(-1) }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature="RELEASE")]
|
#[cfg(feature="RELEASE")]
|
||||||
pub async fn hello(http: Arc<Http>) {
|
pub async fn hello(http: Arc<Http>) {
|
||||||
use serenity::http::Http;
|
use serenity::all::ChannelId;
|
||||||
|
|
||||||
let messages = [
|
let messages = [
|
||||||
"AAAAAAAAAAAAAAAAAAAA",
|
"AAAAAAAAAAAAAAAAAAAA",
|
||||||
|
|
Loading…
Reference in a new issue