Compare commits

..

2 Commits

Author SHA1 Message Date
github-actions[bot]
2eab67bbe4 Updated modules.json after parse 2026-04-13 02:02:20 2026-04-13 02:02:20 +00:00
github-actions[bot]
840aa567ea Added and updated repositories 2026-04-13 02:01:51 2026-04-13 02:01:51 +00:00
10 changed files with 86 additions and 99 deletions

View File

@@ -210,6 +210,7 @@ jobs:
notify_diffs:
runs-on: ubuntu-latest
if: |
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
(github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true)
steps:
- name: Checkout repository

View File

@@ -7,7 +7,7 @@ __version__ = (1, 0, 0)
# 🔑 http://www.apache.org/licenses/LICENSE-2.0
# meta banner: https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/BSR/banner.png
# meta developer: @NFModules
# meta developer: @FModules
# meta fhsdesc: brawlstars, game, funny
from .. import loader, utils

View File

@@ -1,6 +1,6 @@
__version__ = (9, 3, 9)
# meta developer: @NFModules
# meta developer: @FModules
# meta pic: https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/FHeta/logo.png
# meta banner: https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/FHeta/logo.png
# scope: hikka_min 2.0.0
@@ -333,8 +333,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Error, module tried to overwrite built-in module!",
"dependency": "✘ Dependencies installation error! {deps}",
"docdevs": "Use only modules from official Heroku developers when searching?",
"doctheme": "Theme for emojis.",
"channel": "This is the channel with all updates in FHeta!"
"doctheme": "Theme for emojis."
}
strings_ru = {
@@ -366,8 +365,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Ошибка, модуль пытался перезаписать встроенный модуль!",
"dependency": "✘ Ошибка установки зависимостей! {deps}",
"docdevs": "Использовать только модули от официальных разработчиков Heroku при поиске?",
"doctheme": "Тема для эмодзи.",
"channel": "Это канал со всеми обновлениями в FHeta!"
"doctheme": "Тема для эмодзи."
}
strings_ua = {
@@ -399,8 +397,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Помилка, модуль намагався перезаписати вбудований модуль!",
"dependency": "✘ Помилка встановлення залежностей! {deps}",
"docdevs": "Використовувати тільки модулі від офіційних розробників Heroku при пошуку?",
"doctheme": "Тема для емодзі.",
"channel": "Це канал з усіма оновленнями в FHeta!"
"doctheme": "Тема для емодзі."
}
strings_kz = {
@@ -432,8 +429,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Қате, модуль кіріктірілген модульді қайта жазуға тырысты!",
"dependency": "✘ Тәуелділіктерді орнату қатесі! {deps}",
"docdevs": "Іздеу кезінде тек ресми Heroku әзірлеушілерінің модульдерін пайдалану керек пе?",
"doctheme": "Эмодзилер үшін тақырып.",
"channel": "Бұл FHeta-дағы барлық жаңартулары бар арна!"
"doctheme": "Эмодзилер үшін тақырып."
}
strings_uz = {
@@ -465,8 +461,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Xatolik, modul o'rnatilgan modulni qayta yozishga harakat qildi!",
"dependency": "✘ Bog'liqliklarni o'rnatish xatosi! {deps}",
"docdevs": "Qidiruv paytida faqat rasmiy Heroku ishlab chiquvchilarining modullaridan foydalanish kerakmi?",
"doctheme": "Emojilar uchun mavzu.",
"channel": "Bu FHeta-dagi barcha yangilanishlari bo'lgan kanal!"
"doctheme": "Emojilar uchun mavzu."
}
strings_fr = {
@@ -498,8 +493,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Erreur, le module a tenté d'écraser le module intégré!",
"dependency": "✘ Erreur d'installation des dépendances! {deps}",
"docdevs": "Utiliser uniquement les modules des développeurs Heroku officiels lors de la recherche?",
"doctheme": "Thème pour les emojis.",
"channel": "Voici le canal avec toutes les mises à jour dans FHeta!"
"doctheme": "Thème pour les emojis."
}
strings_de = {
@@ -531,8 +525,7 @@ class FHeta(loader.Module):
"overwrite": "✘ Fehler, Modul hat versucht, das integrierte Modul zu überschreiben!",
"dependency": "✘ Fehler bei der Installation von Abhängigkeiten! {deps}",
"docdevs": "Nur Module von offiziellen Heroku-Entwicklern bei der Suche verwenden?",
"doctheme": "Thema für Emojis.",
"channel": "Dies ist der Kanal mit allen Updates in FHeta!"
"doctheme": "Thema für Emojis."
}
strings_jp = {
@@ -564,8 +557,7 @@ class FHeta(loader.Module):
"overwrite": "✘ エラー、モジュールが組み込みモジュールを上書きしようとしました!",
"dependency": "✘ 依存関係のインストールエラー! {deps}",
"docdevs": "検索時に公式Heroku開発者のモジュールのみを使用しますか",
"doctheme": "絵文字のテーマ。",
"channel": "これはFHetaのすべての更新を含むチャンネルです"
"doctheme": "絵文字のテーマ。"
}
THEMES = {
@@ -660,11 +652,6 @@ class FHeta(loader.Module):
self.installer = MInstaller()
self.ui = FHetaUI(self)
await self.request_join(
"NFHeta_Updates",
f"{self.ui.emoji('channel')} {self.strings('channel')}"
)
self.api.token = self.token
router = None
@@ -717,20 +704,13 @@ class FHeta(loader.Module):
self.api.token = self.token
except Exception:
pass
asyncio.create_task(self.sync())
@loader.loop(interval=1, autostart=True)
async def sync(self):
ll = None
while True:
try:
cl = self.strings["lang"]
if cl != ll:
await self.api.send("dataset", user_id=self.identifier, lang=cl)
ll = cl
except Exception:
pass
await asyncio.sleep(1)
now = self.strings["lang"]
if now != getattr(self, "past_lang", None):
await self.api.send("dataset", params={"user_id": getattr(self, "identifier", 0), "lang": now})
self.past_lang = now
async def answer(self, callback: Union[CallbackQuery, ChosenInlineResult], text: Optional[str] = None, alert: bool = False) -> None:
try:
@@ -880,7 +860,7 @@ class FHeta(loader.Module):
return {
"title": self.strings["prompt"],
"description": self.strings["hint"],
"message": f"{self.ui.emoji('error')} <b>{self.strings['noquery'].format(prefix=f'<code>@{self.inline.bot_username} ')}</code></b>",
"message": f"{self.ui.emoji('error')} <b>{self.strings['prompt']}</b>",
"thumb": "https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/FHeta/magnifying_glass.png"
}
@@ -898,7 +878,7 @@ class FHeta(loader.Module):
return {
"title": self.strings["retry"],
"description": self.strings["hint"],
"message": f"{self.ui.emoji('error')} <b>{self.strings['notfound'].format(query=f'<code>{utils.escape_html(query)}</code>')}</b>",
"message": f"{self.ui.emoji('error')} <b>{self.strings['notfound'].format(query=utils.escape_html(query))}</b>",
"thumb": "https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/FHeta/try_other_query.png"
}
@@ -949,18 +929,18 @@ class FHeta(loader.Module):
query = utils.get_args_raw(message)
if not query:
return await utils.answer(message, f"{self.ui.emoji('error')} <b>{self.strings['noquery'].format(prefix=f'<code>{self.get_prefix()}')}</code></b>")
return await utils.answer(message, f"{self.ui.emoji('error')} <b>{self.strings['noquery'].format(prefix=self.get_prefix())}</b>")
if len(query) > 168:
return await utils.answer(message, f"{self.ui.emoji('warn')} <b>{self.strings['toolong']}</b>")
message = await utils.answer(message, f"{self.ui.emoji('search')} <b>{self.strings['search'].format(query=f'<code>{utils.escape_html(query)}</code>')}</b>")
message = await utils.answer(message, f"{self.ui.emoji('search')} <b>{self.strings['search'].format(query=utils.escape_html(query))}</b>")
modules = await self.api.fetch("search", query=query, inline="false", token=self.token, user_id=self.identifier, ood=str(self.config["only_official_developers"]).lower())
if not modules or not isinstance(modules, list):
return await utils.answer(message, f"{self.ui.emoji('error')} <b>{self.strings['notfound'].format(query=f'<code>{utils.escape_html(query)}</code>')}</b>")
return await utils.answer(message, f"{self.ui.emoji('error')} <b>{self.strings['notfound'].format(query=utils.escape_html(query))}</b>")
data = modules[0]
buttons = self.ui.buttons(data.get("install", ""), data, 0, modules, query)
form = await self.inline.form("", message, reply_markup=buttons, silent=True)

View File

@@ -7,7 +7,7 @@ __version__ = (1, 0, 0)
# 🔑 http://www.apache.org/licenses/LICENSE-2.0
# meta banner: https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/SCD/banner.png
# meta developer: @NFModules
# meta developer: @FModules
# requires: curl_cffi

View File

@@ -7,7 +7,7 @@ __version__ = (1, 1, 0)
# 🔑 http://www.apache.org/licenses/LICENSE-2.0
# meta banner: https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/akinator/banner.png
# meta developer: @NFModules
# meta developer: @FModules
# meta fhsdesc: game, funny, guess, question game
# requires: curl_cffi

View File

@@ -381,7 +381,7 @@ class Limoka(loader.Module):
"404": "<blockquote><tg-emoji emoji-id=5210952531676504517>❌</tg-emoji> <b>Not found by query: <i>{query}</i></b></blockquote>",
"noargs": "<blockquote><tg-emoji emoji-id=5210952531676504517>❌</tg-emoji> <b>No args</b></blockquote>",
"?": "<blockquote><tg-emoji emoji-id=5951895176908640647>🔎</tg-emoji> Request too short / not found</blockquote>",
"no_info": "No information",
"no_info": "<blockquote>No information</blockquote>",
"facts": [
"<blockquote><tg-emoji emoji-id=5472193350520021357>🛡</tg-emoji> The limoka catalog is carefully moderated!</blockquote>",
"<blockquote><tg-emoji emoji-id=5940434198413184876>🚀</tg-emoji> Limoka performance allows you to search for modules quickly!</blockquote>",
@@ -493,7 +493,7 @@ class Limoka(loader.Module):
"404": "<blockquote><tg-emoji emoji-id=5210952531676504517>❌</tg-emoji> <b>Не найдено по запросу: <i>{query}</i></b></blockquote>",
"noargs": "<blockquote><tg-emoji emoji-id=5210952531676504517>❌</tg-emoji> <b>Нет аргументов</b></blockquote>",
"?": "<blockquote><tg-emoji emoji-id=5951895176908640647>🔎</tg-emoji> Запрос слишком короткий / не найден</blockquote>",
"no_info": "Нет информации",
"no_info": "<blockquote>Нет информации</blockquote>",
"facts": [
"<blockquote><tg-emoji emoji-id=5472193350520021357>🛡</tg-emoji> Каталог Limoka тщательно модерируется!</blockquote>",
"<blockquote><tg-emoji emoji-id=5940434198413184876>🚀</tg-emoji> Limoka позволяет искать модули с невероятной скоростью!</blockquote>",

View File

@@ -1,8 +1,9 @@
#Midga3
#Placeholder system is the best
# meta banner: https://github.com/Midga3/heroku-modules/blob/main/new_module.jpg?raw=true
# meta developer: @midga3_modules
__version__ = (1, 1, 2)
__version__ = (1, 0, 0)
import logging
import aiohttp
@@ -16,20 +17,13 @@ class PingEmoji(loader.Module):
strings = {
"name": "PingEmoji"
}
def __init__(self):
self.config = loader.ModuleConfig(
loader.ConfigValue(
"emoji",
"<tg-emoji emoji-id=5276307163529092252>🔴</tg-emoji>",
"Ping Emoji",
)
)
async def client_ready(self, client, db):
self._client = client
utils.register_placeholder("ping_emoji", self.get_emoji)
async def get_emoji(self, data):
if data['ping'] > 300:
return self.config['emoji']
return "<tg-emoji emoji-id=5276307163529092252>🔴</tg-emoji>"
else:
return ""
return ""

View File

@@ -26,7 +26,7 @@ from typing import Optional, Dict, Any
from collections import OrderedDict
from .. import loader, utils, validators
from telethon.tl.functions.users import GetFullUserRequest
from herokutl.tl.functions.users import GetFullUserRequest
from herokutl.tl.functions.payments import GetStarsStatusRequest
logger = logging.getLogger(__name__)
@@ -118,23 +118,21 @@ class PlaceholdersMod(loader.Module):
)
self.cache = LRUCache(max_size=100, ttl=300)
async def client_ready(self, client, db):
self._client = client
async def client_ready(self):
self.session = aiohttp.ClientSession()
self.me = await client.get_me()
self.full_me = await client(GetFullUserRequest(self.me))
self.me = await self._client.get_me()
self.full_me = await self._client(GetFullUserRequest(self.me))
try:
stars_status = await self._client(GetStarsStatusRequest(entity='me'))
stars_status = await self._client(GetStarsStatusRequest(entity="me"))
self.stars_balance = stars_status.balance
except:
except Exception:
self.stars_balance = 0
self.tz = timezone(timedelta(hours=self.config["timezone"]))
self.weekdays_ru = ["Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота", "Воскресенье"]
# Регистрация плейсхолдеров
self._register_placeholders()
def _register_placeholders(self):
@@ -201,18 +199,30 @@ class PlaceholdersMod(loader.Module):
utils.register_placeholder(name, func, desc)
async def get_premium_check(self):
if not self.me.premium:
if not getattr(self.me, "premium", False):
return "Нет Premium"
until = self.full_me.full_user.premium_until
if not until or until < time.time():
return "Премиум закончился"
# premium_until отсутствует в публичном MTProto API herokutl/Telethon —
# пробуем достать его, но не падаем если поля нет
until = None
try:
until = getattr(self.full_me.full_user, "premium_until", None)
# Иногда это datetime, иногда unix timestamp (int)
if isinstance(until, datetime):
until = until.timestamp()
except Exception:
until = None
if not until:
return "✅ Premium активен"
if until < time.time():
return "⚠️ Премиум истёк"
end_date = datetime.fromtimestamp(until, tz=self.tz)
days_left = (end_date.date() - datetime.now(self.tz).date()).days
formatted = end_date.strftime("%d.%m.%Y")
return f"{formatted} (Осталось {days_left} дней)"
return f"✅ до {formatted} (ещё {days_left} дн.)"
async def get_username(self):
return f"@{self.me.username}" if self.me.username else "Нет"
@@ -235,10 +245,8 @@ class PlaceholdersMod(loader.Module):
async def get_dc_id(self):
return str(self.me.dc_id if hasattr(self.me, "dc_id") else "Неизвестно")
async def get_stars(self):
result = await self.client(GetStarsStatusRequest("me"))
stars = result.balance.amount if result and result.balance else 0
return f"{stars:,}".replace(",", " ") if stars else "0"
async def get_stars(self):
return f"{self.stars_balance:,}".replace(",", " ") if self.stars_balance else "0"
async def get_usd_to_rub(self):
cache_key = "usd_rub"
@@ -253,7 +261,7 @@ class PlaceholdersMod(loader.Module):
result = f"1 USD ≈ {rate:.2f} RUB"
self.cache.set(cache_key, result)
return result
except:
except Exception:
try:
async with self.session.get("https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json") as resp:
data = await resp.json()
@@ -261,7 +269,7 @@ class PlaceholdersMod(loader.Module):
result = f"1 USD ≈ {rate:.2f} RUB"
self.cache.set(cache_key, result)
return result
except:
except Exception:
return "Курс USD недоступен"
async def get_rub_to_usd(self):
@@ -270,7 +278,7 @@ class PlaceholdersMod(loader.Module):
try:
rate = float(usd_rub.split("")[1].strip().split()[0])
return f"1 RUB ≈ {1/rate:.4f} USD"
except:
except Exception:
pass
return "Курс RUB недоступен"
@@ -293,7 +301,7 @@ class PlaceholdersMod(loader.Module):
result = f"1 TON ≈ {rate:.2f} RUB"
self.cache.set(cache_key, result)
return result
except:
except Exception:
return "Курс TON недоступен"
async def get_rub_to_ton(self):
@@ -302,7 +310,7 @@ class PlaceholdersMod(loader.Module):
try:
rate = float(ton_rub.split("")[1].strip().split()[0])
return f"1 RUB ≈ {1/rate:.6f} TON"
except:
except Exception:
pass
return "Курс недоступен"
@@ -319,7 +327,7 @@ class PlaceholdersMod(loader.Module):
result = f"1 BTC ≈ {rate:,.0f} RUB"
self.cache.set(cache_key, result)
return result
except:
except Exception:
return "Курс BTC недоступен"
async def get_eth_to_rub(self):
@@ -335,7 +343,7 @@ class PlaceholdersMod(loader.Module):
result = f"1 ETH ≈ {rate:,.0f} RUB"
self.cache.set(cache_key, result)
return result
except:
except Exception:
return "Курс ETH недоступен"
async def get_stars_to_rub(self):
@@ -365,7 +373,7 @@ class PlaceholdersMod(loader.Module):
sent_gb = net.bytes_sent // (1024**3)
recv_gb = net.bytes_recv // (1024**3)
return f"{sent_gb} GB │ ↓ {recv_gb} GB"
except:
except Exception:
return "↑ 0 GB │ ↓ 0 GB"
async def get_speedtest(self):
@@ -397,7 +405,7 @@ class PlaceholdersMod(loader.Module):
result = f"{speed_mbps:.1f} Mbps"
self.cache.set(cache_key, result)
return result
except:
except Exception:
continue
return "Тест скорости недоступен"
@@ -418,7 +426,7 @@ class PlaceholdersMod(loader.Module):
used_gb = usage.used // (1024**3)
total_gb = usage.total // (1024**3)
return f"{used_gb} GB / {total_gb} GB ({percent:.1f}%)"
except:
except Exception:
return "Диск недоступен"
async def get_local_ip(self):
@@ -428,7 +436,7 @@ class PlaceholdersMod(loader.Module):
ip = s.getsockname()[0]
s.close()
return ip
except:
except Exception:
return "Неизвестно"
async def get_user_hostname(self):
@@ -499,7 +507,7 @@ class PlaceholdersMod(loader.Module):
}
self.cache.set(cache_key, weather_data)
return weather_data
except:
except Exception:
pass
default = {
@@ -587,7 +595,7 @@ class PlaceholdersMod(loader.Module):
result = f"🎵 {stats['playcount']} скробблов"
self.cache.set(cache_key, result)
return result
except:
except Exception:
pass
return "Статистика недоступна"
@@ -629,10 +637,14 @@ class PlaceholdersMod(loader.Module):
}
self.cache.set(cache_key, result)
return result
except:
except Exception:
pass
return None
async def on_unload(self):
await self.session.close()
utils.unregister_placeholders(self.__class__.__name__)
try:
await self.session.close()
except Exception:
pass

View File

@@ -8325,7 +8325,7 @@
"meta": {
"pic": null,
"banner": "https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/BSR/banner.png",
"developer": "@NFModules",
"developer": "@FModules",
"fhsdesc": "brawlstars, game, funny"
},
"commands": [
@@ -8427,7 +8427,7 @@
"meta": {
"pic": null,
"banner": "https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/SCD/banner.png",
"developer": "@NFModules"
"developer": "@FModules"
},
"commands": [
{
@@ -8504,7 +8504,7 @@
"meta": {
"pic": null,
"banner": "https://raw.githubusercontent.com/Fixyres/FModules/refs/heads/main/assets/akinator/banner.png",
"developer": "@NFModules",
"developer": "@FModules",
"fhsdesc": "game, funny, guess, question game"
},
"commands": [
@@ -84526,7 +84526,7 @@
"cls_doc": {},
"meta": {
"pic": null,
"banner": null,
"banner": "https://github.com/Midga3/heroku-modules/blob/main/new_module.jpg?raw=true",
"developer": "@midga3_modules"
},
"commands": [],
@@ -84952,6 +84952,6 @@
},
"meta": {
"total_modules": 1057,
"generated_at": "2026-04-16T02:02:10.912643"
"generated_at": "2026-04-13T02:02:20.410901"
}
}

View File

@@ -242,12 +242,12 @@
},
{
"url": "https://github.com/Fixyres/FModules",
"tags": ["herokutrusted"],
"tags": [],
"blacklist": ["FHeta.py"]
},
{
"url": "https://github.com/Midga3/Heroku-modules",
"tags": ["newbie", "herokutrusted"],
"tags": ["newbie"],
"blacklist": ["deletelinux.py", "bleabratanspapibobolshoyevyrychil.py"]
},
{