This commit is contained in:
parent
ab1f7ec190
commit
d4be6222a1
1
build.rs
1
build.rs
@ -2,7 +2,6 @@ use anyhow::Error;
|
|||||||
use vergen::*;
|
use vergen::*;
|
||||||
|
|
||||||
fn main() -> Result<(), Error> {
|
fn main() -> Result<(), Error> {
|
||||||
|
|
||||||
let build = BuildBuilder::all_build()?;
|
let build = BuildBuilder::all_build()?;
|
||||||
let cargo = CargoBuilder::all_cargo()?;
|
let cargo = CargoBuilder::all_cargo()?;
|
||||||
let rustc = RustcBuilder::all_rustc()?;
|
let rustc = RustcBuilder::all_rustc()?;
|
||||||
|
|||||||
@ -62,7 +62,7 @@ pub async fn event_handler(
|
|||||||
.message(ctx.http.clone(), new_message.id)
|
.message(ctx.http.clone(), new_message.id)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
if ( !real_message.embeds.is_empty()
|
if (!real_message.embeds.is_empty()
|
||||||
|| real_message.content.contains("https://tenor.com/view"))
|
|| real_message.content.contains("https://tenor.com/view"))
|
||||||
& rand::rng().random_bool(0.25)
|
& rand::rng().random_bool(0.25)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -16,7 +16,6 @@ extern crate log;
|
|||||||
|
|
||||||
// Definitions
|
// Definitions
|
||||||
mod definitions;
|
mod definitions;
|
||||||
use crate::command::devel;
|
|
||||||
use crate::definitions::event_handler;
|
use crate::definitions::event_handler;
|
||||||
use crate::definitions::*;
|
use crate::definitions::*;
|
||||||
|
|
||||||
@ -51,7 +50,12 @@ async fn main() {
|
|||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
info!("Initialized logger successfully");
|
info!("Initialized logger successfully");
|
||||||
info!("Current version: {}", env!("CARGO_PKG_VERSION"));
|
info!("Current version: {}", env!("CARGO_PKG_VERSION"));
|
||||||
info!("Commit info: {} on {}: {}", env!("GIT_COMMIT_ID_SHORT"), env!("GIT_COMMIT_DATE"), env!("GIT_COMMIT_MSG"));
|
info!(
|
||||||
|
"Commit info: {} on {}: {}",
|
||||||
|
env!("GIT_COMMIT_ID_SHORT"),
|
||||||
|
env!("GIT_COMMIT_DATE"),
|
||||||
|
env!("GIT_COMMIT_MSG")
|
||||||
|
);
|
||||||
match env::current_exe() {
|
match env::current_exe() {
|
||||||
Ok(exe) => info!("Got current exe successfully: {}", exe.display()),
|
Ok(exe) => info!("Got current exe successfully: {}", exe.display()),
|
||||||
Err(err) => error!("Failed to get exe: {}", err),
|
Err(err) => error!("Failed to get exe: {}", err),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user