async def assistants(): if assistant == "ON": import glob path = "userbot/plugins/assistant/*.py" files = glob.glob(path) for name in files: with open(name) as f: path1 = Path(f.name) shortname = path1.stem start_assistant(shortname.replace(".py", "")) else: print("⚠️Assistant Not Loaded⚠️")
if LOAD_USERBOT == True: path = "userbot/plugins/*.py" files = glob.glob(path) for name in files: with open(name) as f: path1 = Path(f.name) shortname = path1.stem load_module(shortname.replace(".py", "")) else: print("Userbot is Not Loading As U Have Disabled") if LOAD_ASSISTANT == True: path = "userbot/plugins/assistant/*.py" files = glob.glob(path) for name in files: with open(name) as f: path1 = Path(f.name) shortname = path1.stem start_assistant(shortname.replace(".py", "")) else: print("for queries contact me here https://t.me/Elizasupport01") print( "Efforts never fail, thank @peru_monster for this awesome Eliza userbot.") if len(argv) not in (1, 3, 4): bot.disconnect() else: bot.run_until_disconnected()