parent
b2220dc224
commit
e86b051ff3
6 changed files with 124 additions and 1298 deletions
src
|
@ -20,7 +20,7 @@ pub async fn main() {
|
|||
let bot = BotInstance::init().await;
|
||||
|
||||
{
|
||||
botlog::debug("Reading bot actions", Some("main()".to_string()), None);
|
||||
botlog::trace("Reading bot actions", Some("main()".to_string()), None);
|
||||
|
||||
let actsdb = Arc::clone(&bot.botmodules.botactions);
|
||||
let actsdb_lock = actsdb.read().await;
|
||||
|
@ -29,10 +29,10 @@ pub async fn main() {
|
|||
for act in acts {
|
||||
let outstr = match act {
|
||||
botmodules::BotAction::C(b) => {
|
||||
format!("bot actions: {}", b.command)
|
||||
format!("bot actions > Command : {}", b.command)
|
||||
}
|
||||
botmodules::BotAction::L(l) => {
|
||||
format!("bot actions: {}", l.name)
|
||||
format!("bot actions > Listener : {}", l.name)
|
||||
}
|
||||
_ => "Not a valid match??".to_string(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue