# * _ __ __ _ _ # * / \ _ _ _ __ ___ _ __ __ _| \/ | ___ __| |_ _| | ___ ___ # * / _ \| | | | '__/ _ \| '__/ _` | |\/| |/ _ \ / _` | | | | |/ _ \/ __| # * / ___ \ |_| | | | (_) | | | (_| | | | | (_) | (_| | |_| | | __/\__ \ # * /_/ \_\__,_|_| \___/|_| \__,_|_| |_|\___/ \__,_|\__,_|_|\___||___/ # * # * © 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: Warpigs # Author: dend1yya # Commands: # .autogrow | .ungrow | .autofight | .unfight | .nameset # scope: hikka_only # meta developer: @AuroraModules # meta pic: https://i.postimg.cc/Hx3Zm8rB/logo.png # meta banner: https://te.legra.ph/file/a37fb86b3a00c03dee661.jpg from .. import loader, utils import asyncio class WarpigsMod(loader.Module): """Automates work with @warpigs_bot""" strings = { "name": "Warpigs", "pig_growth_on": "🐷 Automatic pig growth: Activated.", "pig_growth_off": "🐷 Automatic pig growth: Deactivated.", "pig_fights_on": "⚔️ Automatic pig fights: Activated.", "pig_fights_off": "⚔️ Automatic pig fights: Deactivated.", "no_name": " Specify a name for the pig.", "name_set": " Your pig's name has been successfully changed!", "new_name": "🐷 New name", } strings_ru = { "pig_growth_on": "🐷 Автоматический рост свиней: Включен.", "pig_growth_off": "🐷 Автоматический рост свиней: Выключен.", "pig_fights_on": "⚔️ Автоматические свиные бои: Включены.", "pig_fights_off": "⚔️ Автоматические свиные бои: Выключены.", "no_name": " Укажите имя для свиньи.", "name_set": " Имя вашей свиньи успешно изменено!", "new_name": "🐷 Новое имя", } strings_uz = { "pig_growth_on": "🐷 Avtomatik cho'chqa o'sishi: Yoqilgan.", "pig_growth_off": "🐷 Avtomatik cho'chqa o'sishi: O'chirilgan.", "pig_fights_on": "⚔️ Avtomatik cho'chqa janglari: Yoqilgan.", "pig_fights_off": "⚔️ Avtomatik cho'chqa janglari: O'chirilgan.", "no_name": " Cho'chqaga ism kiriting.", "name_set": " Cho'chqangizning ismi muvaffaqiyatli o'zgartirildi!", "new_name": "🐷 Yangi ism", } strings_de = { "pig_growth_on": "🐷 Automatisches Schweinewachstum: Aktiviert.", "pig_growth_off": "🐷 Automatisches Schweinewachstum: Deaktiviert.", "pig_fights_on": "⚔️ Automatische Schweinekämpfe: Aktiviert.", "pig_fights_off": "⚔️ Automatische Schweinekämpfe: Deaktiviert.", "no_name": " Geben Sie einen Namen für das Schwein an.", "name_set": " Der Name Ihres Schweins wurde erfolgreich geändert!", "new_name": "🐷 Neuer Name", } strings_es = { "pig_growth_on": "🐷 Crecimiento automático de cerdos: Activado.", "pig_growth_off": "🐷 Crecimiento automático de cerdos: Desactivado.", "pig_fights_on": "⚔️ Combates automáticos de cerdos: Activado.", "pig_fights_off": "⚔️ Combates automáticos de cerdos: Desactivado.", "no_name": " Especifica un nombre para el cerdo.", "name_set": " ¡El nombre de tu cerdo ha sido cambiado exitosamente!", "new_name": "🐷 Nuevo nombre", } @loader.command( ru_doc="Автоматический рост свиньи.", uz_doc="Avtomatik cho'chqa o'sishi.", de_doc="Automatisches Schweinewachstum.", es_doc="Crecimiento automático de cerdos.", ) async def autogrow(self, message): """Automatic pig growth""" await message.edit(self.strings("pig_growth_on")) self.set("grow", True) while self.get("grow"): await message.reply("/grow") await asyncio.sleep(86400) @loader.command( ru_doc="Отключить автоматический рост.", uz_doc="Avtomatik o'sishni o'chirish.", de_doc="Automatisches Wachstum deaktivieren.", es_doc="Desactivar el crecimiento automático.", ) async def ungrow(self,message): """Disable automatic growth.""" self.set("grow", False) await utils.answer(message, self.strings("pig_growth_off")) @loader.command( ru_doc="Включить автоматические бои свиней.", uz_doc="Avtomatik cho'chqa janglarini yoqish.", de_doc="Automatische Schweinekämpfe aktivieren.", es_doc="Habilitar peleas automáticas de cerdos.", ) async def autofight(self,message): """Enable automatic pig fights""" await message.edit(self.strings("pig_fights_on")) self.set("fight", True) while self.get("fight"): await message.reply("/fight") await asyncio.sleep(86400) @loader.command( ru_doc="Отключить автоматические бои свиней.", uz_doc="Avtomatik cho'chqa janglarini o'chirish.", de_doc="Automatische Schweinekämpfe deaktivieren.", es_doc="Deshabilitar peleas automáticas de cerdos.", ) async def unfight(self,message): """Disable automatic pig fights""" self.set("fight",False) await utils.answer(message, self.strings("pig_fights_off")) @loader.command( ru_doc="[name] - Установить имя вашей свиньи.", uz_doc="[name] - Cho'chqangizning nomini o'rnatadi.", de_doc="[name] - Setze den Namen deines Schweins.", es_doc="[name] - Establece el nombre de tu cerdo.", ) async def nameset(self,message): """[name] - Set the name of your pig""" args = utils.get_args_raw(message) if not args: await utils.answer(message, self.strings("no_name")) return name_set = self.strings("name_set") new_name = self.strings("new_name") await message.respond(f"/name {args}") await message.edit(f"{name_set}\n{new_name}: {args}")