forked from TeamDaisyX/DaisyX
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3192b1e
commit b09c5f0
Showing
187 changed files
with
1,704 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PyLint | ||
|
||
on: [push, pull_request] | ||
|
||
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 --ignore=W605. *.py | ||
- name: Remove unused imports and variables | ||
run: | | ||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports . | ||
- name: lint with isort and black | ||
run: | | ||
isort . | ||
black . | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'Auto Fixes: Code formatted' | ||
commit_options: '--no-verify' | ||
repository: . | ||
commit_user_name: InukaaAith | ||
commit_user_email: [email protected] | ||
commit_author: InukaAsith <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Python cache | ||
__pycache__/ | ||
*.py[cod] | ||
*.pyc | ||
|
||
# Telethon session cache | ||
*.session | ||
*.session-journal | ||
|
||
# Config | ||
data/bot_conf.yaml | ||
|
||
# Logs | ||
logs/ | ||
|
||
# Virtual envirment | ||
venv/ | ||
|
||
.vscode/ | ||
.idea/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM python:3.9 | ||
WORKDIR . | ||
ENV PYTHONUNBUFFERED=1 | ||
COPY requirements.txt . | ||
COPY deploy.sh . | ||
RUN bash deploy.sh | ||
COPY . . | ||
CMD ["python3", "-m", "DaisyX"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DAISYX: python3 -m DaisyX | ||
ps:scale DAISYX=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
|
||
<h1 align="center"><b>❤️ DaisyX 2.0 ❤️</b></h1> | ||
|
||
<h4 align="center">A Powerful, Smart And Simple Group Manager <br> ... Written with AioGram , Pyrogram and Telethon...</h4> | ||
<p align='center'> | ||
<a href="https://www.python.org/" alt="made-with-python"> <img src="https://img.shields.io/badge/Made%20with-Python-1f425f.svg?style=flat-square&logo=python&color=blue" /> </a> | ||
<a href="https://github.com/TeamDaisyX/DaisyX-v2/graphs/commit-activity" alt="Maintenance"> <img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=flat-square" /> </a> | ||
</p> | ||
|
||
<p align="center"><a href="https://t.me/DaisySupport_Official"><img src="https://telegra.ph/file/23448c98735bd81df47e7.jpg" width="400"></a></p> | ||
<p align="center"> | ||
<a href="https://app.codacy.com/manual/teamdaisyx/daisyx-v2.0/dashboard"> <img src="https://img.shields.io/codacy/grade/4d58f2a402b54aed8a7d95f7add45a81?color=brightgreen&logo=codacy&logoColor=green&style=for-the-badge" alt="Codacy" /></a> | ||
<a href="https://github.com/teamdaisyx/daisyx-v2.0"> <img src="https://img.shields.io/github/repo-size/teamdaisyx/daisyx-v2.0?color=orange&logo=github&logoColor=green&style=for-the-badge" /></a> | ||
<a href="https://github.com/teamdaisyx/daisyx-v2.0/commits/inukaasith"> <img src="https://img.shields.io/github/last-commit/teamdaisyx/daisyx-v2.0?color=brown&logo=github&logoColor=green&style=for-the-badge" /></a> | ||
<a href="https://github.com/teamdaisyx/daisyx-v2.0/issues"> <img src="https://img.shields.io/github/issues/teamdaisyx/daisyx-v2.0?color=blueviolet&logo=github&logoColor=green&style=for-the-badge" /></a> | ||
<a href="https://github.com/teamdaisyx/daisyx-v2.0/network/members"> <img src="https://img.shields.io/github/forks/teamdaisyx/daisyx-v2.0?color=red&logo=github&logoColor=green&style=for-the-badge" /></a> | ||
<a href="https://pypi.org/project/Telethon/"> <img src="https://img.shields.io/pypi/v/telethon?color=yellow&label=telethon&logo=python&logoColor=green&style=for-the-badge" /></a> | ||
</p> | ||
|
||
> ⭐️ Thanks to everyone who starred Daisy, That is the greatest pleasure we have ! | ||
### The first AioGram based modified groupmanagement bot fully optimized for heroku deploys | ||
### https://daisyproject.studio | ||
## Avaiilable on Telegram as [@DaisyXBot](https://t.me/daisyxbot) | ||
|
||
# 🏃♂️ Easy Deploy | ||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/TeamDaisyX/DaisyX-v2.0.git) | ||
|
||
[Generate String Session](https://replit.com/@SpEcHiDe/GenerateStringSession) << Select telethon | ||
|
||
# ❤️ Support | ||
<a href="https://t.me/DaisySupport_Official"><img src="https://img.shields.io/badge/Join-Telegram%20Channel-red.svg?logo=Telegram"></a> | ||
<a href="https://t.me/DaisyXupdates"><img src="https://img.shields.io/badge/Join-Telegram%20Group-blue.svg?logo=telegram"></a> | ||
|
||
### Self-hosting (For Devs) ⚔ | ||
```sh | ||
# Install Git First (apt-instll git) | ||
$ git clone https://github.com/TeamDaisyX/DaisyX-v2.0 | ||
$ cd DaisyX-v2.0 | ||
# Upgrade sources | ||
$ bash deploy.sh | ||
# Install All Requirements | ||
$ pip(3) install -r requirements.txt | ||
# Rename ./DaisyX/data/bot_conf.yaml.example to bot_conf.yaml and fill | ||
# Start Bot | ||
$ python(3) -m DaisyX | ||
``` | ||
|
||
### Mandatory Vars 📒 | ||
``` | ||
[+] Make Sure You Add All These Mandatory Vars. | ||
[-] API_ID: You can get this value from https://my.telegram.org | ||
[-] API_HASH : You can get this value from https://my.telegram.org | ||
[-] STRINGSESSION : Your String Session, You can get this From Repl or BY running String_Gen File Locally | ||
[-] MONGO_URI : Your Mongo DB DataBase Url. . | ||
[-] TOKEN: Get from botfarther | ||
[-] DATABASE_URL: from elephantsql.com | ||
[-] OWNER_ID: ur id | ||
[-] MONGO_PORT: 27017 | ||
[-] MONGO_DB': 'DaisyX' | ||
[-] REDIS_URI: from redislabs.com (remove port) | ||
[-] REDIS_PORT: At the end of uri | ||
[-] REDIS_PASS: pass | ||
[+] The DaisyX won't run without setting the mandatory vars. | ||
``` | ||
|
||
# 😍 Credits | ||
|
||
- [Hitsuki](https://github.com/HitsukiNetwork/Hitsukix) | ||
- [SophieBot](https://gitlab.com/SophieBot/sophie) | ||
- [FridayUserbot](https://github.com/DevsExpo/FridayUserbot) | ||
- [MissJuliaRobot](https://github.com/MissJuliaRobot/MissJuliaRobot) | ||
- [DaisyX](https://github.com/teamdaisyx/daisy-x) | ||
- [ADV-Auto-Filter-Bot-V2](https://github.com/AlbertEinsteinTG/Adv-Auto-Filter-Bot-V2) | ||
- [Image-Editor](https://github.com/TroJanzHEX/Image-Editor/) | ||
- [Utah](https://github.com/minatouzuki/utah). | ||
- [WilliamButcherBot](https://github.com/thehamkercat/WilliamButcherBot) | ||
- [LEGENDX](https://github.com/LEGENDXOP/LEGEND-X) | ||
|
||
## Special Credits | ||
- [SophieBot Devs](https://gitlab.com/SophieBot) | ||
- [TroJanzHEX](https://github.com/TroJanzHEX) | ||
- [AlbertEinsteinTG](https://github.com/AlbertEinsteinTG) | ||
- [Amarnath c](https://github.com/Amarnathcdj) | ||
- [Thehamkercat](https://github.com/thehamkercat) | ||
- [StarkGang](https://github.com/StarkGang) | ||
- [chsaiujwal](https://github.com/chsaiujwal) | ||
- [LEGENDX](https://github.com/LEGENDXOP) | ||
- [MissJuliaRobot](https://github.com/MissJuliaRobot) | ||
- [HitsukiNetwork](https://github.com/HitsukiNetwork) | ||
- [AnimeKaizoku](https://github.com/AnimeKaizoku) | ||
- [Dan](https://github.com/delivrance) | ||
- [Lonami](https://github.com/Lonami) | ||
- [AioGram Project group](https://github.com/aiogram) | ||
|
||
The bot is based on the original work done by [SophieBot](https://gitlab.com/SophieBot/sophie) | ||
This repo was just revamped to suit an Anime-centric & comedy loving community. All original credits go to SophieBot and their dedication, Without his efforts, this fork would not have been possible! | ||
|
||
All other credits mentioned on top of scripts | ||
|
||
Anything missing kindly let us know at [Daisy Support](https://t.me/DaisySupport_Official) or simply submit a pull request on the readme. | ||
|
||
# Daisy X the telegram Bot Project | ||
DaisyX-v2.0 (Base AioGram) | ||
|
||
|
||
## Contributors | ||
- [Anjana_Ma](https://github.com/Anjana_Ma) | ||
- [Dark Prince](https://github.com/Mr-Dark-Prince) | ||
- [Official_Bawwa](https://github.com/OfficialBawwa) | ||
- [Inuka Asith](https://github.com/inukaasith) | ||
- [annihilatorrrr](https://github.com/annihilatorrrr) | ||
- [sithum batrow](https://github.com/sbatrow) | ||
- [LEGENDX](https://github.com/LEGENDXOP) | ||
|
||
> And credits goes to all who supported, all who helped and API & environmental equirement package devs and all projects helped in making this project. | ||
> Special thanks to you for using bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
{ | ||
"name": "DaisyX", | ||
"description": "?", | ||
"keywords": [ | ||
"telegram", | ||
"Daisy", | ||
"plugin", | ||
"telegram-DaisyX", | ||
"fuck-TG" | ||
], | ||
"repository": "https://github.com/TeamDaisyX/Daisy-x", | ||
"website": "daisyproject.studio", | ||
"success_url": "t.me/DaisyXUpdates", | ||
"buildpacks": [ | ||
{ | ||
"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest" | ||
}, | ||
{ | ||
"url": "heroku/python" | ||
} | ||
], | ||
"env": { | ||
"APP_ID": { | ||
"description": "Get this value from my.telegram.org! Please do not steal", | ||
"value": "", | ||
"required": true | ||
}, | ||
"APP_HASH": { | ||
"description": "Get this value from my.telegram.org! Please do not steal", | ||
"value": "", | ||
"required": true | ||
}, | ||
"MONGO_URI": { | ||
"description": "Create A Database In Mongodb And Get URL", | ||
"value": "", | ||
"required": true | ||
|
||
}, | ||
"MONGO_PORT": { | ||
"description": "Dont change", | ||
"value": "27017", | ||
"required": false | ||
}, | ||
"MONGO_DB": { | ||
"description": "Don't change.", | ||
"value": "DaisyX", | ||
"required": false | ||
}, | ||
"HEROKU_APP_NAME": { | ||
"description": "Your heroku app name (not compulsory)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"HEROKU_API_KEY": { | ||
"description": "Your heroku api key (not compulsory)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"UPSTREAM_REPO_URL": { | ||
"description": "Only for fork users else don't change", | ||
"value": "https://github.com/TeamDaisyX/DaisyX-v2.0", | ||
"required": false | ||
}, | ||
"API_PORT": { | ||
"description": "Don't change.", | ||
"value": "8080" | ||
}, | ||
"API_PORT": { | ||
"description": "Your Bot Token Obtained From @BotFather.", | ||
"value": "" | ||
}, | ||
"REDIS_URI": { | ||
"description": "Get from redislabs.com", | ||
"value": "", | ||
"required": true | ||
}, | ||
"REDIS_PORT": { | ||
"description": "Get from redislabs.com", | ||
"value": "", | ||
"required": true | ||
}, | ||
"REDIS_PASS": { | ||
"description": "Get from redislabs.com", | ||
"value": "", | ||
"required": true | ||
}, | ||
"OWNER_ID": { | ||
"description": "Your Id", | ||
"value": "", | ||
"required": true | ||
}, | ||
"OPERATORS": { | ||
"description": "Space seperated list of sudoes", | ||
"value": "", | ||
"required": true | ||
}, | ||
"SUPPORT_CHAT": { | ||
"description": "support chat id", | ||
"value": "", | ||
"required": true | ||
}, | ||
"LYDIA_API_KEY": { | ||
"description": "AI chat", | ||
"value": "", | ||
"required": false | ||
}, | ||
"DATABASE_URL": { | ||
"description": "get from elephantsql.com", | ||
"value": "", | ||
"required": true | ||
}, | ||
"VIRUS_API_KEY": { | ||
"description": "Cloudmersive api (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"TIME_API_KEY": { | ||
"description": "Time api key (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"REM_BG_API_KEY": { | ||
"description": "remove.bg api (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"SW_API": { | ||
"description": "Spamwatch api @SpamWatchBot", | ||
"value": "", | ||
"required": true | ||
}, | ||
"IBM_WATSON_CRED_URL": { | ||
"description": "IBM_WATSON_CRED_URL (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"IBM_WATSON_CRED_PASSWORD": { | ||
"description": "IBM_WATSON_CRED_PASSWORD (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"OPENWEATHERMAP_ID": { | ||
"description": "weather api (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"WOLFRAM_ID": { | ||
"description": "WOLFRAM ai api (no need)", | ||
"value": "", | ||
"required": false | ||
}, | ||
"DEBUG_MODE": { | ||
"description": "DEBUG_MODE (no need)", | ||
"value": "False", | ||
"required": false | ||
}, | ||
"DEBUG_MODE": { | ||
"description": "DEBUG_MODE (no need)", | ||
"value": "False", | ||
"required": false | ||
}, | ||
"LOAD_MODULES": { | ||
"description": "Don't edit", | ||
"value": "True", | ||
"required": false | ||
}, | ||
"LOGS_CHANNEL_ID": { | ||
"description": "Id of your log group/channel", | ||
"value": "", | ||
"required": true | ||
}, | ||
"ALLOW_FORWARDS_COMMANDS": { | ||
"description": "ALLOW_FORWARDS_COMMANDS", | ||
"value": "False", | ||
"required": false | ||
}, | ||
"TOKEN": { | ||
"description": "Tg bot token by @BotFarther", | ||
"value": "", | ||
"required": true | ||
}, | ||
"STRING_SESSION": { | ||
"description": "run repl run And get your String Session", | ||
"value": "", | ||
"required": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
files: | ||
- source: DaisyX/localization/en.yaml | ||
translation: /**/DaisyX/localization/%locale_with_underscore%.yaml |
Oops, something went wrong.