- if match.command('list'):
-
- await bot.api.send_text_message(
- room.room_id, 'Listing chores...')
-
- result = CHORES.list()
- for item in result:
- await bot.api.send_text_message(
- room.room_id, item)
-
- await bot.api.send_text_message(
- room.room_id, '-- End of List --')
-
- if match.command('setup'):
- await bot.api.send_text_message(
- room.room_id, f'Doing chore setup...')
- result = CHORES.setup()
- result = await bot.api.send_text_message(
- room.room_id, f'Result: {result}')
-
-
- if match.command('add'):
- new_chore = ' '.join(match.args()[1:])
-
- await bot.api.send_text_message(
- room.room_id, f'Adding chore...{new_chore}...')
-
- result = CHORES.add(new_chore)
- await bot.api.send_text_message(
- room.room_id, result)
-
-
-
- if match.command('check'):
- chore_id = match.args()[1]
-
- result = CHORES.check(chore_id)
- await bot.api.send_text_message(
- room.room_id, result)
-
- if match.command('done'):
- chore_id = match.args()[1]
- result = CHORES.done(chore_id)
- await bot.api.send_text_message(
- room.room_id, result)
-
- if match.command('undo'):
- chore_id = match.args()[1]
- result = CHORES.undo(chore_id)
- await bot.api.send_text_message(
- room.room_id, result)
-
-
- if match.command('remove'):
- chore_id = match.args()[1]
- result = CHORES.remove(chore_id)