Files
limoka/idiotcoders/idiotmodules/irisfarm.py
2025-07-10 21:02:34 +03:00

31 lines
936 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# meta pic: https://static.whypodg.me/mods!irisfarm.png
# meta banner: https://mods.whypodg.me/badges/irisfarm.jpg
# meta developer: @idiotcoders
# scope: hikka_only
# scope: hikka_min 1.2.10
from .. import loader, utils
import asyncio
class IrisfarmMod(loader.Module):
"""Автоматизирует работу с Iris Chat Manager (автоматическая ферма)"""
strings = {"name": "Irisfarm"}
async def farmcmd(self, message):
"""Начинает автоматический фарм. """
self.set("farm", True)
while self.get("farm"):
await message.reply("Ферма")
await asyncio.sleep(14700)
async def unfarmcmd(self, message):
"""Выключает автоферму."""
self.set("farm", False)
await utils.answer(
message,
"❗️ <b>Автоферма выключена.</b>",
)