From 66d15170f6003a7288a2516eb971d50e2af6a497 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Wed, 15 Dec 2021 22:58:03 +0100 Subject: [PATCH] Add strings for the +/- emojis, TBU latter --- src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1656faf..6deef15 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,16 +5,22 @@ mod cmd; mod config; mod utils; -use crate::bot::Bot; -use crate::cmd::Cmd; +use crate::{bot::Bot, cmd::Cmd}; +use log::info; use matrix_sdk; use std::env; +static EMOJI_PLUS: &str = "âž•"; +static EMOJI_MINUS: &str = "âž–"; + #[tokio::main] async fn main() -> matrix_sdk::Result<()> { config::setup_logging(); config::check_argument_or_abort(true); + info!("EMOJI PLUS: {}", EMOJI_PLUS); + info!("EMOJI MINUX: {}", EMOJI_MINUS); + let basic_cmds = vec![ Cmd::new_simple(format!("ping"), 0, |_x| true), Cmd::new_echo(format!("bot_name"), 0, |_x| format!("toto")), -- GitLab