# █ █ ▀ █▄▀ ▄▀█ █▀█ ▀
# █▀█ █ █ █ █▀█ █▀▄ █
# © Copyright 2022
# https://t.me/hikariatama
#
# 🔒 Licensed under the GNU AGPLv3
# 🌐 https://www.gnu.org/licenses/agpl-3.0.html
# scope: hikka_min 1.2.10
# meta pic: https://img.icons8.com/stickers/500/000000/todo-list.png
# meta banner: https://mods.hikariatama.ru/badges/todo.jpg
# meta developer: @hikarimods
# scope: hikka_only
from random import randint
from telethon.tl.types import Message
from .. import loader, utils
@loader.tds
class TodoMod(loader.Module):
"""ToDo List"""
strings = {
"name": "ToDo",
"task_removed": "✅ Task removed",
"task_not_found": "🚫 Task not foundTask #{}:\n
{}\n{}",
}
strings_ru = {
"task_removed": "✅ Задача удалена",
"task_not_found": "🚫 Задача не найденаЗадача #{}:\n{}\n{}",
"_cls_doc": "Простой планнер задач",
"_cmd_doc_td": "[importance:int] .utd {item_id}: {item[0]}"
)
for importance, strings in items.items():
if len(strings) == 0:
continue
res += "\n -{ " + self.imp_levels[importance][2:] + " }-\n"
res += (
self.imp_levels[importance][0]
+ ("\n" + self.imp_levels[importance][0]).join(strings)
+ "\n"
)
await utils.answer(message, res)
async def utdcmd(self, message: Message):
"""