# * _ __ __ _ _ # * / \ _ _ _ __ ___ _ __ __ _| \/ | ___ __| |_ _| | ___ ___ # * / _ \| | | | '__/ _ \| '__/ _` | |\/| |/ _ \ / _` | | | | |/ _ \/ __| # * / ___ \ |_| | | | (_) | | | (_| | | | | (_) | (_| | |_| | | __/\__ \ # * /_/ \_\__,_|_| \___/|_| \__,_|_| |_|\___/ \__,_|\__,_|_|\___||___/ # * # * © Copyright 2024 # * # * https://t.me/AuroraModules # * # * 🔒 Code is licensed under GNU AGPLv3 # * 🌐 https://www.gnu.org/licenses/agpl-3.0.html # * ⛔️ You CANNOT edit this file without direct permission from the author. # * ⛔️ You CANNOT distribute this file if you have modified it without the direct permission of the author. # Name: AuroraFarm # Author: Felix? # Commands: # .afarm # scope: hikka_only # meta developer: @AuroraModules # meta pic: https://i.postimg.cc/Hx3Zm8rB/logo.png # meta banner: https://te.legra.ph/file/903b12da5af31a1947ca8.jpg __version__ = (3, 0, 0) import asyncio from .. import loader, utils @loader.tds class AuroraFarmMod(loader.Module): """Automatic progress farm at @kynimeister_bot""" strings = { "name": "AuroraFarm", "status": "ℹ️ Module operation status", "s_1": "Active.", "s_0": "Inactive.", "on": "Activated.", "off": "Deactivated.", "n_args": "🚫 Specify the arguments", } strings_ru = { "status": "ℹ️ Статус работы модуля", "s_1": "Активно.", "s_0": "Неактивно.", "on": "Активировано.", "off": "Деактивировано.", "n_args": "🚫 Укажите аргументы", } strings_uz = { "status": "ℹ️ Modul ishlash holati", "s_1": "Faol.", "s_0": "Faol emas.", "on": "Faollashtirildi.", "off": "O'chirildi.", "n_args": "🚫 Argumentlarni kiriting", } strings_de = { "status": "ℹ️ Modulbetriebsstatus", "s_1": "Aktiv.", "s_0": "Inaktiv.", "on": "Aktiviert.", "off": "Deaktiviert.", "n_args": "🚫 Geben Sie die Argumente an", } strings_es = { "status": "ℹ️ Estado de operación del módulo", "s_1": "Activo.", "s_0": "Inactivo.", "on": "Activado.", "off": "Desactivado.", "n_args": "🚫 Especifica los argumentos", } async def client_ready(self, client, db): self.db = db self.client = client self.db.get("AuroraFarm", "status", False) @loader.command( ru_doc="{on/off} - включить или выключить автоматическую фарминг", uz_doc="{on/off} - avtomatik fermani yoqish yoki o'chirish", de_doc="{on/off} - Auto-Farm ein- oder ausschalten", es_doc="{on/off} - activar o desactivar la auto-granja", ) async def afarm(self, message): """{on/off} - turn auto farm on or off""" args = utils.get_args_raw(message).lower() status_result_True = self.db.get("AuroraFarm", "status", True) if status_result_True: status_result = self.strings("s_1") else: status_result = self.strings("s_0") if not args: status = self.strings("status") await utils.answer(message, f"{status}: {status_result}") return if args == "on": args_s = self.strings("on") self.db.set("AuroraFarm", "status", True) await utils.answer(message, f" AutoFarmUniversal: {args_s}") elif args == "off": args_s = self.strings("off") self.db.set("AuroraFarm", "status", False) await utils.answer(message, f" AutoFarmUniversal: {args_s}") else: n_args = self.strings("n_args") await utils.answer(message, f"{n_args}") return while self.db.get("AuroraFarm", "status"): bot_id = 6814754616 text = "Куни" await message.client.send_message(bot_id, text) await asyncio.sleep(14444)