def declare_checkin(self, to, record, weekly_stats): text = """ {} Is Making {}{} Checked in! {} minutes for {} """.format(record.owner_name, weekly_stats.close_count + 1, "th", # TODO(omo): Use correct ordinal record.planned_minutes, record.topic).strip() return self.sendMessage(to, text, reply_markup=nt.ReplyKeyboardHide())
def ack_quit(self, id): text = "Call me anytime..." return self.sendMessage(id, text, reply_markup=nt.ReplyKeyboardHide())
def ask_topic(self, record): text = "Whatcha gonna do?" return self.sendMessage(record.owner_id, text, reply_markup=nt.ReplyKeyboardHide())
def declare_abort(self, record): text = """ {} Aborted the session :-( """.format(record.owner_name, record.planned_minutes).strip() return self.sendMessage(record.owner_id, text, reply_markup=nt.ReplyKeyboardHide())
def declare_checkout(self, record): text = """ {} Checked out from {} minute session! """.format(record.owner_name, record.planned_minutes).strip() return self.sendMessage(record.owner_id, text, reply_markup=nt.ReplyKeyboardHide())
def tell_where_you_are(self, owner_id, owner_name, chat_id, chat_title): text = """ OK, I got {} is at {}({}) """.format(owner_name, chat_title, chat_id).strip() return self.sendMessage(chat_id, text, reply_markup=nt.ReplyKeyboardHide())
def tell_stats(self, chat_id, text): return self.sendMessage(chat_id, text, reply_markup=nt.ReplyKeyboardHide())