1from sys import version_info
2from .db import db
3
4class ModulesHelpDict(dict): 5 def append(self, obj: dict):
6 module_name = list(obj.keys())[0]
7 cmds = obj[module_name]
3from pyrogram import filters
4import requests
5
6@app.on_message(filters.command("stack", prefix) & filters.me) 7async def stack(app, msg):
8 await msg.edit("Processing...")
9 if len(msg.command) < 2:
3from pyrogram import filters
4import requests
5
6@app.on_message(filters.command("repo", prefix) & filters.me) 7async def search_repo(app, msg):
8 url = "https://api.github.com/search/repositories?q="
9 if len(msg.command) < 2:
32]
33
34# create query command for neko2
35@app.on_message(filters.command("neko2", prefix) & filters.me)36async def neko2(app, msg):
37 url = "https://nekos.life/api/v2/img/"
38 if len(msg.command) < 2:
54 await app.send_photo(msg.chat.id, photo=url)
55
56# list of categories from data
57@app.on_message(filters.command("neko2list", prefix) & filters.me)58async def neko2list(app, msg):
59 # parse data to string and make list of categories
60 categories = "\n-".join(data)
Two blank lines are expected between functions and classes.