def call(self, chat, author, event_id): player = db.find_player_by_telegram_id(author) if player is None: telegram.send(chat, "Introduce yourself by providing your psn id: /r register <psn-id>") return db.delete_event(player, event_id) telegram.send(chat, "Deleted")
def call(self, chat, author, event_id): player = db.find_player_by_telegram_id(author) if player is None: telegram.send( chat, "Introduce yourself by providing your psn id: /r register <psn-id>" ) return db.delete_event(player, event_id) telegram.send(chat, "Deleted")
def delete(self, event_id): player = db.find_player(users.get_current_user().user_id()) db.delete_event(player, event_id) events_for(self, player)