From 50afa23b9dc26f914522a55fe5cbb893d34ad27c Mon Sep 17 00:00:00 2001 From: romangraef Date: Sat, 17 Mar 2018 22:11:47 +0100 Subject: added todos as well as regex based command triggers. --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 693f9d4..ebfec76 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,15 @@ from pyrogram import Client -from commands import handle_commands, load_commands +from commands import handle_commands, load_modules, handle_match_scripts def update_handler(client, update, users, chats): handle_commands(client, update, users, chats) + handle_match_scripts(client, update, users, chats) def main(): - load_commands() + load_modules() client = Client(session_name="userbot") client.set_update_handler(update_handler) client.start() -- cgit