return dt.now().strftime(DATE_FORMAT)
logger = logging.getLogger(__name__)
-logging.basicConfig(filename='matrix-goal-bot.log', encoding='utf-8', level=logging.DEBUG)
-logging.getLogger('nio').setLevel(logging.WARNING)
snark = [
'Ye cannot get ye flask.',
self.data = Data(db_file)
def run(self):
+ logger.debug('Running goal bot...')
self.bot.run()
async def handle_message(self, room, message):
+ logger.debug(f'Message: {message}')
match = botlib.MessageMatch(room, message, self.bot, self.prefix)
if not match.is_not_from_this_bot() and match.prefix():