mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 15:14:18 +02:00
Commited backup
This commit is contained in:
30
idiotcoders/idiotmodules/irisfarm.py
Normal file
30
idiotcoders/idiotmodules/irisfarm.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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>",
|
||||
)
|
||||
Reference in New Issue
Block a user