diff --git a/src/main.rs b/src/main.rs index 9276f6b156ecc606f4c05d997b1249c3a737bd21..de75620f128f0f829923a50d91d2637697732a4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,7 +57,16 @@ impl EventHandler for Handler { let mut iter = msg.content.chars(); iter.by_ref().nth(5); let topic = iter.as_str(); - create_motion(&ctx, &msg, topic); + if topic == "" { + if let Err(why) = msg.channel_id.say( + &ctx.http, + "If there's something you want to motion, put it after the !move keyword", + ) { + println!("Error sending message: {:?}", why); + } + } else { + create_motion(&ctx, &msg, topic); + } } else if msg.content.starts_with("!motion") { if let Err(why) = msg.channel_id.say(&ctx.http, "I hope you're not having a motion. You may have wanted to !move something instead.") { println!("Error sending message: {:?}", why);