Make help message dynamic based on permissions

This commit is contained in:
Tulir Asokan
2018-07-10 14:17:03 +03:00
parent ecf0e262df
commit 7a4d29e1e4
8 changed files with 236 additions and 168 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ from mautrix_appservice import MatrixRequestError, IntentError
from .user import User
from .portal import Portal
from .puppet import Puppet
from .commands import CommandHandler
from .commands import CommandProcessor
class MatrixHandler:
@@ -31,7 +31,7 @@ class MatrixHandler:
def __init__(self, context):
self.az, self.db, self.config, _, self.tgbot = context
self.commands = CommandHandler(context)
self.commands = CommandProcessor(context)
self.az.matrix_event_handler(self.handle_event)