Skip to content

Commit 6c7af44

Browse files
New-dev01Danish-00xdityaamitkr-codessppidy
authored
Ultroid v0.1 Updates 13.09.2021
Co-authored-by: Danish <danish@ultroid.tech> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: sppidy <sppidy@users.noreply.github.com> Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com> Co-authored-by: divkix <divkix@users.noreply.github.com> Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com> Co-authored-by: Programming Error <error@notavailable.live>
1 parent 1b1eb1d commit 6c7af44

File tree

152 files changed

+5835
-4393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+5835
-4393
lines changed

.env.sample

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ API_ID=
44
API_HASH=
55
SESSION=
66
REDIS_URI=
7-
REDIS_PASSWORD=
7+
REDIS_PASSWORD=
8+
9+
# [OPTIONAL]
10+
11+
LOG_CHANNEL=
12+
BOT_TOKEN=

.github/ISSUE_TEMPLATE/bug-reports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report
22
description: File a bug report
3-
title: "[BUG REPORT]: "
3+
title: "[BUG REPORT]"
44
labels: [bug]
55
assignees:
66
- xditya

.github/workflows/greetings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: 'Thanks for Opening This Issue, we will look into it soon!'
16+
pr-message: 'Thanks for Your Contribution. It will be reviewed soon, Useless Prs are Closed Immediately'

.gitignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,29 @@ build
1313
*.log
1414
target/npmlist.json
1515
package-lock.json
16+
1617
# Directories
1718
addons/
19+
pyUltroid/
1820
__pycache__/
1921
venv/
2022
node_modules/
2123
glitch_me/
24+
src/glitch-me
2225
.idea/
2326
.vscode/
24-
temp/
27+
temp/
28+
bin-debug/
29+
bin-release/
30+
[Oo]bj/
31+
[Bb]in/
32+
.settings/
33+
*.swf
34+
*.air
35+
*.ipa
36+
*.apk
37+
38+
# temporary files
39+
*.raw
40+
tplugins
41+
tassistant

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
44
# PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
55

6-
FROM programmingerror/ultroid:b0.1
6+
FROM theteamultroid/ultroid:main
77

88
# set timezone
99
ENV TZ=Asia/Kolkata
@@ -14,12 +14,8 @@ RUN git clone https://github.com/TeamUltroid/Ultroid.git /root/TeamUltroid/
1414
WORKDIR /root/TeamUltroid/
1515

1616
# install main requirements.
17-
COPY requirements.txt /deploy/
18-
RUN pip3 install --no-cache-dir -r /deploy/requirements.txt
19-
20-
# install addons requirements
21-
RUN wget -O /deploy/addons.txt https://git.io/JWdOk
22-
RUN pip3 install --no-cache-dir -r /deploy/addons.txt
17+
RUN pip3 install --no-cache-dir -r requirements.txt
18+
RUN pip3 uninstall av -y && pip3 install av --no-binary av
2319

2420
# start the bot
2521
CMD ["bash", "resources/startup/startup.sh"]

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
<b>Ultroid - UserBot</b>
66
</h1>
77

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

1010
[![Stars](https://img.shields.io/github/stars/TeamUltroid/Ultroid?style=flat-square&color=yellow)](https://github.com/TeamUltroid/Ultroid/stargazers)
1111
[![Forks](https://img.shields.io/github/forks/TeamUltroid/Ultroid?style=flat-square&color=orange)](https://github.com/TeamUltroid/Ultroid/fork)
1212
[![Size](https://img.shields.io/github/repo-size/TeamUltroid/Ultroid?style=flat-square&color=green)](https://github.com/TeamUltroid/Ultroid/)
13-
[![Python](https://img.shields.io/badge/Python-v3.9-blue)](https://www.python.org/)
13+
[![Python](https://img.shields.io/badge/Python-v3.9.7-blue)](https://www.python.org/)
14+
[![CodeFactor](https://www.codefactor.io/repository/github/teamultroid/ultroid/badge/main)](https://www.codefactor.io/repository/github/teamultroid/ultroid/overview/main)
1415
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/TeamUltroid/Ultroid/graphs/commit-activity)
15-
[![Docker Pulls](https://img.shields.io/docker/pulls/programmingerror/ultroid?style=flat-square)](https://img.shields.io/docker/pulls/programmingerror/ultroid?style=flat-square)
16+
[![Docker Pulls](https://img.shields.io/docker/pulls/theteamultroid/ultroid?style=flat-square)](https://img.shields.io/docker/pulls/theteamultroid/ultroid?style=flat-square)
1617
[![Open Source Love svg2](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/TeamUltroid/Ultroid)
1718
[![Contributors](https://img.shields.io/github/contributors/TeamUltroid/Ultroid?style=flat-square&color=green)](https://github.com/TeamUltroid/Ultroid/graphs/contributors)
1819
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
1920
[![License](https://img.shields.io/badge/License-AGPL-blue)](https://github.com/TeamUltroid/Ultroid/blob/main/LICENSE)
2021
[![Sparkline](https://stars.medv.io/Teamultroid/Ultroid.svg)](https://stars.medv.io/TeamUltroid/Ultroid)
21-
2222
----
2323

2424
# Deploy
@@ -53,10 +53,10 @@ Get the [Necessary Variables](#Necessary-Variables) and then click the button be
5353

5454
### Local Deploy - Latest Method
5555
This is the latest and most fastest method currently.<br>
56-
First, goto [This Project](https://github.com/BLUE-DEVIL1134/UltroidCli) and install the latest release from the Github Releases.<br>
57-
Then, do as its given in the `README.md` to add the executable to your system path.
56+
First, go to [This Project](https://github.com/BLUE-DEVIL1134/UltroidCli) and install the latest release from the Github Releases.<br>
57+
Then, do as it's given in the `README.md` to add the executable to your system path.
5858

59-
Further, take a look at the [`docs`](https://blue-devil1134.github.io/UltroidCli/) to get more information on this.
59+
Further, take a look at the [`docs`](https://blue-devil1134.github.io/UltroidCli/) to get more information.
6060

6161

6262
### Local Deploy - Easy Method
@@ -93,8 +93,6 @@ Further, take a look at the [`docs`](https://blue-devil1134.github.io/UltroidCli
9393
`python(3) -m pyUltroid`
9494

9595
## Necessary Variables
96-
- `API_ID` - Your API_ID from [my.telegram.org](https://my.telegram.org/)
97-
- `API_HASH` - Your API_HASH from [my.telegram.org](https://my.telegram.org/)
9896
- `SESSION` - SessionString for your accounts login session. Get it from [here](#Session-String)
9997
- `REDIS_URI` - Redis endpoint URL, from [redislabs](http://redislabs.com/), tutorial [here.](./resources/extras/redistut.md)
10098
- `REDIS_PASSWORD ` - Redis endpoint Password, from [redislabs](http://redislabs.com/), tutorial [here.](./resources/extras/redistut.md)
@@ -117,6 +115,5 @@ Ultroid is licensed under [GNU Affero General Public License](https://www.gnu.or
117115
# Credits
118116
* [![TeamUltroid-Devs](https://img.shields.io/static/v1?label=Teamultroid&message=devs&color=critical)](https://t.me/UltroidDevs)
119117
* [Lonami](https://github.com/LonamiWebs/) for [Telethon.](https://github.com/LonamiWebs/Telethon)
120-
* [Dan](https://github.com/delivrance) for [Pyrogram.](https://github.com/pyrogram/pyrogram)
121-
* [Pytgcalls](https://github.com/pytgcalls) for [PyTgCalls.](https://github.com/pytgcalls/pytgcalls)
118+
* [MarshalX](https://github.com/MarshalX) for [PyTgCalls.](https://github.com/MarshalX/tgcalls)
122119

app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
"value": ""
3838
},
3939
"HEROKU_API": {
40-
"description": "Heroku API token. Needed if deploying on heroku ONLY.",
40+
"description": "Heroku API token. Mandatory for Heroku Deploy...",
4141
"value": "",
4242
"required": false
4343
},
4444
"HEROKU_APP_NAME": {
45-
"description": "Name of your heroku app, given in the first blank on this page. To be added if deploying to heroku ONLY.",
45+
"description": "Name of your Heroku app, given in the first blank on this page. To be added if deploying to heroku ONLY.",
4646
"value": "",
4747
"required": false
4848
}

assistant/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ async def setit(event, name, value):
2424

2525

2626
def get_back_button(name):
27-
button = [Button.inline("« Bᴀᴄᴋ", data=f"{name}")]
28-
return button
27+
return [Button.inline("« Bᴀᴄᴋ", data=f"{name}")]

assistant/api_setter.py

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ async def rmbgapi(event):
4141
"Cancelled!!",
4242
buttons=get_back_button("apiset"),
4343
)
44-
else:
45-
await setit(event, var, themssg)
46-
await conv.send_message(
47-
f"{name} changed to {themssg}",
48-
buttons=get_back_button("apiset"),
49-
)
44+
await setit(event, var, themssg)
45+
await conv.send_message(
46+
f"{name} changed to {themssg}",
47+
buttons=get_back_button("apiset"),
48+
)
5049

5150

5251
@callback("dapi")
@@ -66,12 +65,11 @@ async def rmbgapi(event):
6665
"Cancelled!!",
6766
buttons=get_back_button("apiset"),
6867
)
69-
else:
70-
await setit(event, var, themssg)
71-
await conv.send_message(
72-
f"{name} changed to {themssg}",
73-
buttons=get_back_button("apiset"),
74-
)
68+
await setit(event, var, themssg)
69+
await conv.send_message(
70+
f"{name} changed to {themssg}",
71+
buttons=get_back_button("apiset"),
72+
)
7573

7674

7775
@callback("oapi")
@@ -91,9 +89,8 @@ async def rmbgapi(event):
9189
"Cancelled!!",
9290
buttons=get_back_button("apiset"),
9391
)
94-
else:
95-
await setit(event, var, themssg)
96-
await conv.send_message(
97-
f"{name} changed to {themssg}",
98-
buttons=get_back_button("apiset"),
99-
)
92+
await setit(event, var, themssg)
93+
await conv.send_message(
94+
f"{name} changed to {themssg}",
95+
buttons=get_back_button("apiset"),
96+
)

0 commit comments

Comments
 (0)