Skip to content

Commit

Permalink
Ultroid v0.7 Updates
Browse files Browse the repository at this point in the history
Date: 30-8-2022
Co-Authored-By: Aditya <[email protected]>
Co-Authored-By: Amit Sharma <[email protected]>
Co-Authored-By: CyrusXD <[email protected]>
Co-Authored-By: Danish <[email protected]>
Co-Authored-By: TechiError <[email protected]>
Co-Authored-By: Arnab Paryali <[email protected]>
  • Loading branch information
7 people committed Aug 30, 2022
1 parent 60c6df5 commit d8bd901
Show file tree
Hide file tree
Showing 199 changed files with 15,774 additions and 4,107 deletions.
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/bug-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ body:
label: Version
description: What version of Ultroid are you running?
options:
- 0.3
- 0.2
- 0.1
- 0.0.9
- 0.0.8 (or lesser)
- "0.5"
- "0.6"
- "0.7"
- "> 0.7"

validations:
required: true
- type: dropdown
id: hosted
attributes:
label: Hosted On
description: You Hosted Ultroid In Which Platform?
description: You are hosting Ultroid on Which Platform?
options:
- Vps
- Heroku
Expand All @@ -65,4 +65,4 @@ body:
description: By submitting this issue, you agree that you have read the [docs](https://ultroid.tech) and gone through the [deploy tutorial](https://www.youtube.com/watch?v=9wF7k9qA0Q4) at first.
options:
- label: I have followed all of the above steps.
required: true
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Ultroid Support
url: https://t.me/UltroidSupport
url: https://t.me/UltroidSupportChat
about: Please drop your doubts or queries there for an immediate response.
- name: Documentation
url: https://ultroid.tech/
about: Basic documentation for setting up.
about: Basic documentation for setting up.
33 changes: 33 additions & 0 deletions .github/workflows/autotranslate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Strings Translation

on:
workflow_dispatch:
push:
branches: [ dev ]
paths:
- strings/strings/en.yml

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
analyze:
name: Checkout Strings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9.x
- name: Update Translations
run: |
git config --global user.email "[email protected]"
git config --global user.name "New-Dev0"
git branch translation && git checkout translation
pip install pyyaml requests telethon
wget -O run.py https://gist.githubusercontent.com/New-dev0/c7d0d1eb514d311e8e3b687ae5cbe5f3/raw/350cc6d451a02a4b07d0f9bbc27b0e7c9465d3d4/updater.py
python3 run.py
rm run.py
git add . && git commit -m "[Auto] Translate" && git push --set-upstream origin translation
gh pr create --title "[Auto] Translation" -B dev --body "Update Translation"
44 changes: 44 additions & 0 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyLint
on:
push:
branches: [ dev ]
paths:
- "**.py"
jobs:
PEP8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Python lint libraries
run: pip install autopep8 autoflake isort black
- name: Check for showstoppers
run: |
autopep8 --verbose --in-place --recursive --aggressive --aggressive assistant/*.py
autopep8 --verbose --in-place --recursive --aggressive --aggressive assistant/manager/*.py
autopep8 --verbose --in-place --recursive --aggressive --aggressive plugins/*.py
- name: Remove unused imports and variables
run: |
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports assistant/*.py
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports assistant/manager/*.py
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports plugins/*.py
- name: lint with isort and black
run: |
isort assistant/*.py
isort assistant/manager/*.py
black --fast assistant/*.py
black assistant/manager/*.py
isort plugins/*.py
black --fast plugins/*.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'pylint: auto fixes'
commit_options: '--no-verify'
repository: .
commit_user_name: buddhhu
commit_user_email: [email protected]
commit_author: Amit Sharma <[email protected]>

33 changes: 33 additions & 0 deletions .github/workflows/stringanalysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Strings Analysis

on:
pull_request:
push:
branches: dev
paths: strings/strings/*
workflow_dispatch:

jobs:
analyze:
name: Checkout Strings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9.x
- name: Install Stuff
run: pip install pyyaml
- name: dl stuff
run: wget -O stringizer.py https://gist.githubusercontent.com/New-dev0/6dfc8a177418565a776167764b2fe0e4/raw/f515e9892a331110c1565eb109eb712eb64423bd/stringzer.py
- name: do stuff
run: python stringizer.py && rm stringizer.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Strings: Auto Count'
commit_options: '--no-verify'
repository: .
commit_user_name: TeamUltroid
commit_user_email: [email protected]
commit_author: Amit Sharma <[email protected]>
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ test*
*.log
target/npmlist.json
package-lock.json
resources/extras/thumbnail.jpg

# Directories
addons/
pyUltroid/
vcbot/
__pycache__/
venv/
node_modules/
Expand All @@ -38,5 +39,6 @@ bin-release/

# temporary files
*.raw
tplugins
tassistant

# fly.io configs
fly.toml
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<b>A stable pluggable Telegram userbot + Voice & Video Call music bot, based on Telethon.</b>

[![](https://img.shields.io/badge/Ultroid-v0.6-darkblue)](#)
[![](https://img.shields.io/badge/Ultroid-v0.7-darkgreen)](#)
[![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/)
Expand Down Expand Up @@ -84,8 +84,9 @@ Get the [Necessary Variables](#Necessary-Variables) and then click the button be
`bash startup`
- Windows Users:
`python(3) -m pyUltroid`
<details>
<summary><h3>[OUTDATED] Ultroid CLI</h3></summary>

### Ultroid CLI
[Ultroid CLI](https://github.com/BLUE-DEVIL1134/UltroidCli) is a command-line interface for deploying Ultroid.

- **Installing** -
Expand All @@ -96,6 +97,7 @@ Go to [UltroidCli](https://github.com/BLUE-DEVIL1134/UltroidCli) and install the

- **Documentation** -
Take a look at the [`docs`](https://blue-devil1134.github.io/UltroidCli/) for more detailed information.
</details>

---
## Necessary Variables
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Ultroid UserBot",
"description": "Pluggable telegram userbot, made in python using Telethon.",
"logo": "https://telegra.ph/file/031957757a4f6a5191040.jpg",
"logo": "https://graph.org/file/031957757a4f6a5191040.jpg",
"keywords": [
"Telethon",
"telegram",
Expand All @@ -11,7 +11,7 @@
],
"repository": "https://github.com/TeamUltroid/Ultroid",
"website": "https://ultroid.tech",
"success_url": "https://t.me/TheUltroid",
"success_url": "https://t.me/TeamUltroid",
"stack": "container",
"env": {
"API_ID": {
Expand Down
12 changes: 6 additions & 6 deletions assistant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.

from telethon import Button, custom

from plugins import ATRA_COL, InlinePlugin
from pyUltroid import *
from pyUltroid import _ult_cache
from pyUltroid._misc import owner_and_sudos
from pyUltroid._misc._assistant import asst_cmd, callback, in_pattern
from pyUltroid.functions.helper import *
from pyUltroid.functions.tools import get_stored_file
from telethon import Button, custom

from plugins import ATRA_COL
from strings import get_languages, get_string, language
from pyUltroid.fns.helper import *
from pyUltroid.fns.tools import get_stored_file
from strings import get_languages, get_string

OWNER_NAME = ultroid_bot.full_name
OWNER_ID = ultroid_bot.uid
Expand Down
Loading

0 comments on commit d8bd901

Please sign in to comment.