Skip to content

Commit 0ea2e4c

Browse files
committed
Deleted Commit history
0 parents  commit 0ea2e4c

Some content is hidden

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

76 files changed

+8214
-0
lines changed

.gitignore

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/

Aptfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
neofetch
2+
chromium-chromedriver
3+
chromium-browser
4+
cowsay
5+
figlet

CODE_OF_CONDUCT

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Code of Conduct
2+
3+
All participants of RaphielGang are expected to abide by our Code of Conduct,
4+
both online and during in-person events that are hosted and/or associated with RaphielGang.
5+
6+
7+
### The Pledge
8+
9+
In the interest of fostering an open and welcoming environment, we pledge to make participation
10+
in our project and our community a harassment-free experience for everyone, regardless of age,
11+
body size, disability, ethnicity, gender identity and expression, level of experience,
12+
nationality, personal appearance, race, religion, or sexual identity and orientation.
13+
14+
15+
### The Standards
16+
17+
Examples of behaviour that contributes to creating a positive environment include:
18+
19+
* **Be welcoming**: We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
20+
* **Be considerate**: Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
21+
* **Be respectful**: Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one.
22+
* **Gracefully accepting constructive criticism**: Not everyone are perfect, you can get some critism of your works from us, but it's not means that we don't accepting your contribution, we just want you to fixing it and making it better.
23+
* **Referring to people by their preferred pronouns/words**, but we do not have standardized gender-neutral pronouns/words, so your milleage may vary.
24+
* **Do not attack somebody because you have a different opinion** All opinions are accepted as long as they are reasonable, and everyone have right to shouting their opinion.
25+
* **Just chill :D**
26+
* **Don't forget, nobody is perfect, mistakes can be made**
27+
* **Equality is not a privilege, it's a rule!**
28+
29+
### Examples of unacceptable behaviour by participants include:
30+
31+
* **Trolling, insulting/derogatory comments, public or private harassment**
32+
* **Publishing others' private information (Doxing)** such as a physical or electronic address, without explicit permission
33+
* **Not being respectful to reasonable communication boundaries** such as 'leave me alone,' 'go away,' or 'Fuck off.'
34+
* **The usage of sexualised language or imagery and unwelcome sexual attention or advances**
35+
* **Demonstrating the graphics or any other content you know may be considered disturbing**
36+
* **Assuming or promoting any kind of inequality** including but not limited to: age, body size, disability, ethnicity, gender identity and expression, nationality and race, personal appearance, religion, or sexual identity and orientation
37+
* **Drug promotion of any kind**
38+
* **Attacking personal tastes**
39+
* **Other conduct which you know could reasonably be considered inappropriate in a professional setting**
40+
41+
42+
### Enforcement
43+
44+
Violations of the Code of Conduct may be reported by sending an email to [[email protected]](mailto:[email protected]).
45+
All reports will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
46+
Further details of specific enforcement policies may be posted separately.
47+
48+
We hold the right and responsibility to remove comments or other contributions that
49+
are not aligned to this Code of Conduct, or to ban temporarily or permanently any members
50+
for other behaviours that they deem inappropriate, threatening, offensive, or harmful.

Dockerfile

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# We're using Alpine stable
2+
FROM alpine:edge
3+
4+
#
5+
# We have to uncomment Community repo for some packages
6+
#
7+
RUN sed -e 's;^#http\(.*\)/v3.9/community;http\1/v3.9/community;g' -i /etc/apk/repositories
8+
9+
# Installing Python
10+
RUN apk add --no-cache --update \
11+
git \
12+
bash \
13+
libffi-dev \
14+
openssl-dev \
15+
bzip2-dev \
16+
zlib-dev \
17+
readline-dev \
18+
sqlite-dev \
19+
build-base \
20+
python3
21+
22+
RUN python3 -m ensurepip \
23+
&& pip3 install --upgrade pip setuptools \
24+
&& rm -r /usr/lib/python*/ensurepip && \
25+
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
26+
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
27+
rm -r /root/.cache
28+
29+
30+
#
31+
# Install all the required packages
32+
#
33+
RUN apk --no-cache add build-base
34+
35+
RUN apk add --no-cache \
36+
py-pillow py-requests \
37+
py-sqlalchemy py-psycopg2 git py-lxml \
38+
libxslt-dev py-pip libxml2 libxml2-dev \
39+
libpq postgresql-dev \
40+
postgresql build-base linux-headers \
41+
jpeg-dev curl neofetch git sudo \
42+
gcc python-dev python3-dev \
43+
postgresql postgresql-client php-pgsql \
44+
musl postgresql-dev py-tz py3-aiohttp
45+
RUN apk add --no-cache sqlite figlet libwebp-dev
46+
47+
# Copy Python Requirements to /app
48+
RUN git clone https://github.com/psycopg/psycopg2 psycopg2 \
49+
&& cd psycopg2 \
50+
&& python setup.py install
51+
52+
RUN sed -e 's;^# \(%wheel.*NOPASSWD.*\);\1;g' -i /etc/sudoers
53+
RUN adduser userbot --disabled-password --home /home/userbot
54+
RUN adduser userbot wheel
55+
USER userbot
56+
RUN mkdir /home/userbot/userbot
57+
RUN git clone -b master https://github.com/baalajimaestro/Telegram-UserBot /home/userbot/userbot
58+
WORKDIR /home/userbot/userbot
59+
#
60+
#Copies session and config(if it exists)
61+
#
62+
COPY ./userbot.session ./config.env* /home/userbot/userbot/
63+
#
64+
# Install requirements
65+
#
66+
RUN sudo pip3 install -U pip
67+
RUN sudo pip3 install -r requirementsDOCKER.txt
68+
RUN sudo chown -R userbot /home/userbot/userbot
69+
RUN sudo chmod -R 777 /home/userbot/userbot
70+
CMD ["python3","-m","userbot"]

LICENSE

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
RAPHIELSCAPE PUBLIC LICENSE
2+
Version 1.b, January 2019
3+
4+
Copyright (C) 2019 Raphielscape Open Source Holding LLC.
5+
6+
RAPHIELSCAPE PUBLIC LICENSE
7+
A. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
8+
9+
0. You must give any other recipients of the Work or Derivative Works a copy of this License; and
10+
1. You must cause any modified files to carry prominent notices stating that You changed the files; and
11+
2. You must retain, in the Source form of any Derivative Works that You distribute,
12+
all copyright, patent, trademark, and attribution notices from the Source form of the Work; and
13+
3. Respecting the owner of works that being distributed in any ways
14+
15+
You may add Your own copyright statement to Your modifications and may provide
16+
additional or different license terms and conditions for use, reproduction,
17+
or distribution of Your modifications, or for any such Derivative Works as a whole,
18+
provided Your use, reproduction, and distribution of the Work otherwise complies
19+
with the conditions stated in this License.
20+
21+
B. DISCLAIMER OF WARRANTY
22+
23+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
24+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
25+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
26+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
30+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31+
32+
33+
C. REVISED VERSION OF THIS LICENSE
34+
35+
The Raphielscape Open Source Holding LLC. may publish revised and/or new versions of the
36+
Raphielscape Public License from time to time. Such new versions will be similar in spirit
37+
to the present version, but may differ in detail to address new problems or concerns.
38+
39+
Each version is given a distinguishing version number and version letter. If the Program specifies
40+
that a certain numbered version of the Raphielscape Public License "or any later version" applies
41+
to it, you have the option of following the terms and conditions either of that numbered version or of
42+
any later version published by the Raphielscape Open Source Holding LLC. If the Program does not specify a
43+
version number of the Raphielscape Public License, you may choose any version ever published
44+
by the Raphielscape Open Source Holding LLC.
45+
46+
END OF LICENSE

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker: python3 -m userbot

README.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Telegram-UserBot
2+
3+
### installing
4+
5+
#### # The Easiest Way
6+
7+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
8+
9+
### If the CI builds pass, but you still get syntax errors when running locally it's most probably not a problem with the source but with your version of python
10+
11+
12+
```diff
13+
- #include <std/disclaimer.h>
14+
- /
15+
- Your Telegram account may get banned.
16+
- I am not responsible for any improper use of this bot
17+
- This bot is intended for the purpose of having fun with memes
18+
- as well as efficiently managing groups
19+
- You ended up spamming groups, getting reported left and right,
20+
- and the Telegram Team deleted your account?
21+
- And then you pointed your fingers at me for getting yourself reported?
22+
- I will laugh at you.
23+
- /
24+
```
25+
26+
A modular telegram Python UserBot running on python3 with an sqlalchemy database.
27+
28+
Started up as a simple bot, which helps with deleting messages and other stuffs when I didn't possess a smartphone(selecting each message indeed difficult) with a ton of meme features kanged from [SkittBot](https://github.com/skittles9823/SkittBot), it has evolved, becoming extremely modular and simple to use.
29+
30+
31+
If you just want to stay in the loop about new features or
32+
announcements you can join the [news channel](https://t.me/maestro_userbot_channel).
33+
34+
If you find any bugs or have any suggestions then don't hesitate to contact me in [my support group](https://t.me/userbot_support).
35+
36+
Please head to the wiki on instructions to setting it up!
37+
38+
### Credits:
39+
40+
I would like to thank people who assisted me throughout this project:
41+
42+
* [@YouTwitFace](https://github.com/YouTwitFace)
43+
* [@TheDevXen](https://github.com/TheDevXen)
44+
* [@Skittles9823](https://github.com/Skittles9823)
45+
* [@deletescape](https://github.com/deletescape)
46+
* [@songotenks69](https://github.com/songotenks69)
47+
* [@Ovenoboyo](https://github.com/Ovenoboyo)
48+
* [SphericalKat](https://github.com/ATechnoHazard)
49+
* [nitamarcel](https://github.com/nitanmarcel)
50+
51+
and many more people who aren't mentioned here.
52+
53+
Found Bugs? Create an issue on the issue tracker, or post it in the [support group](https://t.me/userbot_support).

0 commit comments

Comments
 (0)