-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBFGMod.py
More file actions
42 lines (36 loc) · 1.25 KB
/
BFGMod.py
File metadata and controls
42 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# meta developer: @trololo_1
from .. import utils, loader
from asyncio import sleep
class BFGMod(loader.Module):
"""Send mes"""
strigs = {'name': 'BFGMod'}
async def client_ready(self, client, db):
self.db = db
async def bbtoncmd(self, message):
""" """
await utils.answer(message, '<b>Запущено</b>')
status = self.db.set('BFGMod', 'status1', True)
while status:
for i in range(15):
if not self.db.get('BFGMod', 'status1'): return
await message.respond('10')
await sleep(2)
status = self.db.get('BFGMod', 'status1')
await message.respond('🚀Оценивать')
async def bbtoffcmd(self, message):
""" """
self.db.set('BFGMod', 'status1', False)
await utils.answer(message, '<b>Остановлено</b>')
async def bfgoncmd(self, message):
""" """
await utils.answer(message, '<b>Запущено</b>')
status = self.db.set('BFGMod', 'status2', True)
while status:
await message.respond('копать материю')
await sleep(60*5)
status = self.db.get('BFGMod', 'status2')
if not status: return
async def bfgoffcmd(self, message):
""" """
self.db.set('BFGMod', 'status2', False)
await utils.answer(message, '<b>Остановлено</b>')