fix - pyramid is recognized finished as expected
This commit is contained in:
parent
46cff68bc1
commit
5a02b090c6
1 changed files with 4 additions and 0 deletions
|
@ -66,7 +66,11 @@ fn create_pyramid_detector() -> Listener {
|
||||||
async fn execbody(bot:Arc<Bot>,message:ServerMessage) -> Result<String,String> {
|
async fn execbody(bot:Arc<Bot>,message:ServerMessage) -> Result<String,String> {
|
||||||
if let ServerMessage::Privmsg(msg) = message {
|
if let ServerMessage::Privmsg(msg) = message {
|
||||||
// if detect_pyramid_complete_ok(bot.clone(), msg.clone()).await {
|
// if detect_pyramid_complete_ok(bot.clone(), msg.clone()).await {
|
||||||
|
|
||||||
let _ = bot.client.say_in_reply_to(&msg, "Clap".to_string()).await ;
|
let _ = bot.client.say_in_reply_to(&msg, "Clap".to_string()).await ;
|
||||||
|
|
||||||
|
set_pyramid_started(msg.channel_login,false);
|
||||||
|
|
||||||
return Result::Ok("Success".to_string()) ;
|
return Result::Ok("Success".to_string()) ;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue