Skip to content

Instantly share code, notes, and snippets.

from __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Tuple
if TYPE_CHECKING:
from cardinal import Cardinal
from urllib.parse import quote
import re
import os
import json
from __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Tuple
if TYPE_CHECKING:
from cardinal import Cardinal
from urllib.parse import quote
import re
import os
import json
import logging
@krutyshkin
krutyshkin / asd
Created September 27, 2025 19:56
__version__ = (1, 0, 0)
# Сглыпа — простой чат-бот для Hikka, запоминает сообщения и отвечает на основе истории
#
# meta developer: @YourName
# meta banner: https://raw.githubusercontent.com/YourRepo/banner.jpg
import random
import re
from collections import defaultdict
{"_default": {"1": {"user_id": 5000301659, "tea_all": 792.1999999999996, "today_tea": 5.8999999999999995, "last_tea": 1752870055.007376, "chat_id": -5091800344, "today_date": "2025-07-18", "active_in_chats": [-5091800344, -1005000209481, -5046136199, -1002200051862, -1005000221069, -1005000165116, -1002200690724, -1002200790285, -1005000801377, -1005000525079, -1002200651184]}, "2": {"user_id": 552888, "tea_all": 226.60000000000002, "today_tea": 4.0, "last_tea": 1752932594.111127, "chat_id": -1005000221069, "today_date": "2025-07-19", "active_in_chats": [-1005000221069, -1005000068315, -1005000949208, -1002200581607, -1005000833995, -1002200651628, -1005000812317, -1002200056275, -1005000976880, -1002200780943, -1002200662812, -1005000316561, -1002200957587, -1002200306929, -1002200651184, -1002200356447, -1002200187843, -1005000798482, -1005000566865, -1002200404712, -1005000911937, -1005000826860, -1002200571408, -1005000805855, -1005000640430, -1002200661042]}, "3": {"user_id": 936174, "tea_all": 1007.2, "
import json
import os
import re
import logging
import time
from telebot import types
from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton
from FunPayAPI.types import Order
import requests