Код: Выделить всё
time_stamp = {
"stamp1": {
"INTV1" : 10
},
"stamp2": {
"INTV2" : 20
},
"stamp3": {
"INTV3" : 30
}
}
async def TIMER():
while True:
for x in time_stamp:
print(time_stamp["stamp1"]["INTV1"])
await asyncio.sleep(1)
print(time_stamp["stamp2"]["INTV2"])
await asyncio.sleep(2)
print(time_stamp["stamp3"]["INTV3"])
stats_timer = TIMER()
Код: Выделить всё
elif content.startswith("!my_timer"):
await ctx.channel.send(stats_timer)
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/798 ... 0-from-the
Мобильная версия