]> us-delaporte.pagekite.me Git - matrix-chore-bot.git/blobdiff - matrix_chore_bot/bot.py
Fixup
[matrix-chore-bot.git] / matrix_chore_bot / bot.py
index 62ef475a5b80925a4d3922159dfc49c05e43fcea..8a9e75585c63f8e39d3d6a6eec108d220f98ad23 100644 (file)
@@ -6,12 +6,12 @@ import simplematrixbotlib as botlib
 
 from .db import Data as ChoreData
 
-CHORES = ChoreData()
-
 SERVER = os.environ.get('MATRIX_SERVER')
 BOT_NAME = os.environ.get('MATRIX_BOT')
 BOT_PWD = os.environ.get('MATRIX_BOT_PWD')
 
+CHORES = ChoreData()
+
 def get_bot():
     creds = botlib.Creds(SERVER, BOT_NAME, BOT_PWD)
     return botlib.Bot(creds)
@@ -33,9 +33,7 @@ async def chore_bot(room, message, bot):
                 await bot.api.send_text_message(
                     room.room_id, str(line))
         except Exception as ex:
-            raise ex
-
-            line = 'Ye cannot get ye flask.'
+            line = 'Ye flask must be load bearing, or something...'
             await bot.api.send_text_message(
                 room.room_id, str(line))