response.reply(&format!("Error: Deadline must be in the future"))?;
response.respond_message(&format!("Error: Deadline must be in the future"))?;
returnOk(());// FIXME: Command-Error handling
}
run.deadline=deadline;
response.send(&self.channel,
response.message(&self.channel,
&format!("Deadline for this order has been changed {:02}:{:02}",
run.deadline.hour(),
run.deadline.minute()))?;
}else{
// Show current deadline
response.reply(&format!("Deadline for this order is {:02}:{:02}",
response.respond_message(&format!("Deadline for this order is {:02}:{:02}",
run.deadline.hour(),
run.deadline.minute()))?;
}
...
...
@@ -167,9 +167,9 @@ impl PizzaBot {
ifletSome(_)=*run{
ifack{
run.take();
response.reply(&format!("The order have been canceled and all items have been purged"))?;
response.respond_message(&format!("The order have been canceled and all items have been purged"))?;
}else{
response.reply(&format!("This will remove ALL items from all users and drop the deadline.\nIf you're sure you want to do that, user 'cancel --acknowledge'"))?;
response.respond_message(&format!("This will remove ALL items from all users and drop the deadline.\nIf you're sure you want to do that, user 'cancel --acknowledge'"))?;