Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
API_ID=
API_HASH=
SESSION=
REDIS_URI=
REDIS_PASSWORD=


# [OPTIONAL]

REDIS_URI=
REDIS_PASSWORD=
LOG_CHANNEL=
BOT_TOKEN=
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache CodeQL database
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.codeql
key: ${{ runner.os }}-codeql-${{ hashFiles('**/qlpack.yml') }}
restore-keys: ${{ runner.os }}-codeql-

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: 'python'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
PEP8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.10'
cache: "pip"
- name: Install Python lint libraries
run: pip install autopep8 autoflake isort black
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/stringanalysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ name: Strings Analysis
on:
pull_request:
push:
branches: dev
paths: strings/strings/*
branches: [dev]
paths: [strings/strings/*]
workflow_dispatch:

jobs:
analyze:
name: Checkout Strings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9.x
python-version: "3.10"
- name: Install Stuff
run: pip install pyyaml
- name: dl stuff
Expand All @@ -25,8 +25,8 @@ jobs:
run: python stringizer.py && rm stringizer.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Strings: Auto Count'
commit_options: '--no-verify'
commit_message: "Strings: Auto Count"
commit_options: "--no-verify"
repository: .
commit_user_name: TeamUltroid
commit_user_email: 48654350+buddhhu@users.noreply.github.com
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![Stars](https://img.shields.io/github/stars/TeamUltroid/Ultroid?style=flat-square&color=yellow)](https://github.com/TeamUltroid/Ultroid/stargazers)
[![Forks](https://img.shields.io/github/forks/TeamUltroid/Ultroid?style=flat-square&color=orange)](https://github.com/TeamUltroid/Ultroid/fork)
[![Size](https://img.shields.io/github/repo-size/TeamUltroid/Ultroid?style=flat-square&color=green)](https://github.com/TeamUltroid/Ultroid/)
[![Python](https://img.shields.io/badge/Python-v3.10.3-blue)](https://www.python.org/)
[![Python](https://img.shields.io/badge/Python-v3.10+-blue)](https://www.python.org/)
[![CodeFactor](https://www.codefactor.io/repository/github/teamultroid/ultroid/badge/main)](https://www.codefactor.io/repository/github/teamultroid/ultroid/overview/main)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/TeamUltroid/Ultroid/graphs/commit-activity)
[![Docker Pulls](https://img.shields.io/docker/pulls/theteamultroid/ultroid?style=flat-square)](https://img.shields.io/docker/pulls/theteamultroid/ultroid?style=flat-square)
Expand Down
2 changes: 1 addition & 1 deletion assistant/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
22 changes: 11 additions & 11 deletions assistant/callbackstuffs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down Expand Up @@ -57,23 +57,23 @@ def text_to_url(event):
Button.inline("SᴜᴘᴇʀFʙᴀɴ", data="cbs_sfban"),
],
[
Button.inline("Sᴜᴅᴏ Mᴏᴅᴇ", data="sudo"),
Button.inline("Hᴀɴᴅʟᴇʀ", data="hhndlr"),
Button.inline("Sudo Mode", data="sudo"),
Button.inline("Handler", data="hhndlr"),
],
[
Button.inline("Exᴛʀᴀ Pʟᴜɢɪɴs", data="plg"),
Button.inline("Aᴅᴅᴏɴs", data="eaddon"),
Button.inline("Extra Plugins", data="plg"),
Button.inline("Addons", data="eaddon"),
],
[
Button.inline("Eᴍᴏᴊɪ ɪɴ Hᴇʟᴘ", data="emoj"),
Button.inline("Sᴇᴛ ɢDʀɪᴠᴇ", data="gdrive"),
Button.inline("Emoji in Help", data="emoj"),
Button.inline("Set gDrive", data="gdrive"),
],
[
Button.inline("Iɴʟɪɴᴇ Pɪᴄ", data="inli_pic"),
Button.inline("Sᴜᴅᴏ HNDLR", data="shndlr"),
Button.inline("Inline Pic", data="inli_pic"),
Button.inline("Sudo HNDLR", data="shndlr"),
],
[Button.inline("Dᴜᴀʟ Mᴏᴅᴇ", "cbs_oofdm")],
[Button.inline("« Bᴀᴄᴋ", data="setter")],
[Button.inline("Dual Mode", "cbs_oofdm")],
[Button.inline("« Back", data="setter")],
],
},
"sfban": {
Expand Down
2 changes: 1 addition & 1 deletion assistant/games.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/initial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
36 changes: 18 additions & 18 deletions assistant/inlinestuff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down Expand Up @@ -73,14 +73,14 @@ async def _(e):
version = data["version"]
size = humanbytes(data["size"])
release_date = datetime.utcfromtimestamp(data["date"]).strftime("%Y-%m-%d")
text = f"[\xad]({ofox})**OʀᴀɴɢᴇFᴏx Rᴇᴄᴏᴠᴇʀʏ Fᴏʀ**\n\n"
text += f"` Fᴜʟʟ Nᴀᴍᴇ: {fullname}`\n"
text += f"` Cᴏᴅᴇɴᴀᴍᴇ: {codename}`\n"
text += f"` Mᴀɪɴᴛᴀɪɴᴇʀ: {maintainer}`\n"
text += f"` Bᴜɪʟᴅ Tʏᴘᴇ: {release}`\n"
text += f"` Vᴇʀsɪᴏɴ: {version}`\n"
text += f"` Sɪᴢᴇ: {size}`\n"
text += f"` Bᴜɪʟᴅ Dᴀᴛᴇ: {release_date}`"
text = f"[­]({ofox})**OrangeFox Recovery For**\n\n"
text += f"` Full Name: {fullname}`\n"
text += f"` Codename: {codename}`\n"
text += f"` Maintainer: {maintainer}`\n"
text += f"` Build Type: {release}`\n"
text += f"` Version: {version}`\n"
text += f"` Size: {size}`\n"
text += f"` Build Date: {release_date}`"
fox.append(
await e.builder.article(
title=f"{fullname}",
Expand Down Expand Up @@ -199,18 +199,18 @@ async def gsearch(q_event):
title=title,
description=desc,
thumb=wb(gugirl, 0, "image/jpeg", []),
text=f"**Gᴏᴏɢʟᴇ Sᴇᴀʀᴄʜ**\n\n**••Tɪᴛʟᴇ••**\n`{title}`\n\n**••Dᴇsᴄʀɪᴘᴛɪᴏɴ••**\n`{desc}`",
text=f"**Google Search**\n\n**• Title •**\n`{title}`\n\n**• Description •**\n`{desc}`",
link_preview=False,
buttons=[
[Button.url("Lɪɴᴋ", url=f"{link}")],
[Button.url("Link", url=f"{link}")],
[
Button.switch_inline(
"Sᴇᴀʀᴄʜ Aɢᴀɪɴ",
"Search Again",
query="go ",
same_peer=True,
),
Button.switch_inline(
"Sʜᴀʀᴇ",
"Share",
query=f"go {match}",
same_peer=False,
),
Expand Down Expand Up @@ -302,9 +302,9 @@ async def _(e):
name = z["title"]
desc = unescape(z["summary"])[:300].replace("<br>", "\n") + "..."
dev = z["developer"]["devId"]
text = f"**••Aᴘᴘ Nᴀᴍᴇ••** [{name}]({url})\n"
text += f"**••Dᴇᴠᴇʟᴏᴘᴇʀ••** `{dev}`\n"
text += f"**••Dᴇsᴄʀɪᴘᴛɪᴏɴ••**\n`{desc}`"
text = f"**• App Name •** [{name}]({url})\n"
text += f"**• Developer •** `{dev}`\n"
text += f"**• Description •**\n`{desc}`"
foles.append(
await e.builder.article(
title=name,
Expand All @@ -313,10 +313,10 @@ async def _(e):
text=text,
link_preview=True,
buttons=[
[Button.url("Lɪɴᴋ", url=url)],
[Button.url("Link", url=url)],
[
Button.switch_inline(
"Mᴏʀᴇ Aᴘᴘs",
"More Apps",
query="app ",
same_peer=True,
),
Expand Down
2 changes: 1 addition & 1 deletion assistant/localization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/_help.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/_on_adds.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/admins.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/afk.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/misc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/manager/stickermanager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion assistant/pmbot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
20 changes: 10 additions & 10 deletions assistant/start.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down Expand Up @@ -35,24 +35,24 @@

_settings = [
[
Button.inline("API Kᴇʏs", data="cbs_apiset"),
Button.inline("Pᴍ Bᴏᴛ", data="cbs_chatbot"),
Button.inline("API Keys", data="cbs_apiset"),
Button.inline("PM Bot", data="cbs_chatbot"),
],
[
Button.inline("Aʟɪᴠᴇ", data="cbs_alvcstm"),
Button.inline("PᴍPᴇʀᴍɪᴛ", data="cbs_ppmset"),
Button.inline("Alive", data="cbs_alvcstm"),
Button.inline("PMPermit", data="cbs_ppmset"),
],
[
Button.inline("Fᴇᴀᴛᴜʀᴇs", data="cbs_otvars"),
Button.inline("VC Sᴏɴɢ Bᴏᴛ", data="cbs_vcb"),
Button.inline("Features", data="cbs_otvars"),
Button.inline("VC Song Bot", data="cbs_vcb"),
],
[Button.inline("« Bᴀᴄᴋ", data="mainmenu")],
[Button.inline("« Back", data="mainmenu")],
]

_start = [
[
Button.inline("Lᴀɴɢᴜᴀɢᴇ 🌐", data="lang"),
Button.inline("Sᴇᴛᴛɪɴɢs ⚙️", data="setter"),
Button.inline("Language 🌐", data="lang"),
Button.inline("Settings ⚙️", data="setter"),
],
[
Button.inline("Sᴛᴀᴛs ✨", data="stat"),
Expand Down
2 changes: 1 addition & 1 deletion assistant/ytdl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down
2 changes: 1 addition & 1 deletion install-termux
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# Copyright (C) 2021-2026 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
Expand Down
Loading
Loading