Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
bd54dc6
1
Parent(s):
de34607
changed `Satarou` to `Satoru` and minro changes
Browse files- .github/ISSUE_TEMPLATE/bug_report.yml +1 -1
- .github/ISSUE_TEMPLATE/config.yml +2 -2
- Powers/__init__.py +3 -3
- Powers/bot_class.py +1 -1
- Powers/plugins/utils.py +1 -1
- Powers/utils/start_utils.py +1 -1
- README.md +19 -19
- SECURITY.md +1 -1
- app.json +2 -2
- okteto-pipeline.yml +1 -1
.github/ISSUE_TEMPLATE/bug_report.yml
CHANGED
@@ -5,7 +5,7 @@ body:
|
|
5 |
attributes:
|
6 |
label: Checklist
|
7 |
options:
|
8 |
-
- label: I am sure the error is coming from
|
9 |
required: true
|
10 |
- label: I have searched in the issue tracker for similar bug reports, including closed ones
|
11 |
required: true
|
|
|
5 |
attributes:
|
6 |
label: Checklist
|
7 |
options:
|
8 |
+
- label: I am sure the error is coming from Gojo_Satoru's code and not elsewhere
|
9 |
required: true
|
10 |
- label: I have searched in the issue tracker for similar bug reports, including closed ones
|
11 |
required: true
|
.github/ISSUE_TEMPLATE/config.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
blank_issues_enabled: false
|
2 |
contact_links:
|
3 |
-
- name: Gojo
|
4 |
-
url: https://github.com/Gojo-Bots/
|
5 |
about: Just open the discussion page and tell us your issue
|
|
|
1 |
blank_issues_enabled: false
|
2 |
contact_links:
|
3 |
+
- name: Gojo Satoru
|
4 |
+
url: https://github.com/Gojo-Bots/Gojo_Satoru/discussions
|
5 |
about: Just open the discussion page and tell us your issue
|
Powers/__init__.py
CHANGED
@@ -21,7 +21,7 @@ file_handler = FileHandler(filename=LOGFILE)
|
|
21 |
stdout_handler = StreamHandler(stdout)
|
22 |
|
23 |
basicConfig(
|
24 |
-
format="%(asctime)s - [
|
25 |
level=INFO,
|
26 |
handlers=[file_handler, stdout_handler],
|
27 |
)
|
@@ -51,11 +51,11 @@ except Exception as ef:
|
|
51 |
sysexit(1)
|
52 |
|
53 |
LOGGER.info("------------------------")
|
54 |
-
LOGGER.info("|
|
55 |
LOGGER.info("------------------------")
|
56 |
LOGGER.info(f"Version: {Config.VERSION}")
|
57 |
LOGGER.info(f"Owner: {str(Config.OWNER_ID)}")
|
58 |
-
LOGGER.info("Source Code: https://github.com/Gojo-Bots/
|
59 |
|
60 |
# Account Related
|
61 |
BOT_TOKEN = Config.BOT_TOKEN
|
|
|
21 |
stdout_handler = StreamHandler(stdout)
|
22 |
|
23 |
basicConfig(
|
24 |
+
format="%(asctime)s - [Gojo_Satoru] - %(levelname)s - %(message)s",
|
25 |
level=INFO,
|
26 |
handlers=[file_handler, stdout_handler],
|
27 |
)
|
|
|
51 |
sysexit(1)
|
52 |
|
53 |
LOGGER.info("------------------------")
|
54 |
+
LOGGER.info("| Gojo_Satoru |")
|
55 |
LOGGER.info("------------------------")
|
56 |
LOGGER.info(f"Version: {Config.VERSION}")
|
57 |
LOGGER.info(f"Owner: {str(Config.OWNER_ID)}")
|
58 |
+
LOGGER.info("Source Code: https://github.com/Gojo-Bots/Gojo_Satoru\n")
|
59 |
|
60 |
# Account Related
|
61 |
BOT_TOKEN = Config.BOT_TOKEN
|
Powers/bot_class.py
CHANGED
@@ -30,7 +30,7 @@ class Gojo(Client):
|
|
30 |
# name = Powers
|
31 |
|
32 |
super().__init__(
|
33 |
-
"
|
34 |
bot_token=BOT_TOKEN,
|
35 |
plugins=dict(root="Powers.plugins", exclude=NO_LOAD),
|
36 |
api_id=API_ID,
|
|
|
30 |
# name = Powers
|
31 |
|
32 |
super().__init__(
|
33 |
+
"Gojo_Satoru",
|
34 |
bot_token=BOT_TOKEN,
|
35 |
plugins=dict(root="Powers.plugins", exclude=NO_LOAD),
|
36 |
api_id=API_ID,
|
Powers/plugins/utils.py
CHANGED
@@ -191,7 +191,7 @@ async def github(_, m: Message):
|
|
191 |
f"Usage: <code>{Config.PREFIX_HANDLER}github username</code>",
|
192 |
)
|
193 |
return
|
194 |
-
|
195 |
URL = f"https://api.github.com/users/{username}"
|
196 |
try:
|
197 |
r = await get(URL, timeout=5)
|
|
|
191 |
f"Usage: <code>{Config.PREFIX_HANDLER}github username</code>",
|
192 |
)
|
193 |
return
|
194 |
+
username = username.split("/")[-1]
|
195 |
URL = f"https://api.github.com/users/{username}"
|
196 |
try:
|
197 |
r = await get(URL, timeout=5)
|
Powers/utils/start_utils.py
CHANGED
@@ -51,7 +51,7 @@ async def gen_start_kb(q: Message or CallbackQuery):
|
|
51 |
[
|
52 |
(
|
53 |
"🗃️ Source Code",
|
54 |
-
"https://github.com/Gojo-Bots/
|
55 |
"url",
|
56 |
),
|
57 |
(
|
|
|
51 |
[
|
52 |
(
|
53 |
"🗃️ Source Code",
|
54 |
+
"https://github.com/Gojo-Bots/Gojo_Satoru",
|
55 |
"url",
|
56 |
),
|
57 |
(
|
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<h1 align="center">
|
2 |
-
<b>
|
3 |
<!---</h1>
|
4 |
<h1 align="center"><img src="https://media.giphy.com/media/GL42TduR8AkNq1xRog/giphy.gif" /></h1>
|
5 |
|
@@ -12,17 +12,17 @@
|
|
12 |
------
|
13 |
|
14 |
|
15 |
-
[
|
20 |
|
21 |

|
22 |
-

|
25 |
-
 🌟 and then join the gc and ask your problem.**
|
55 |
|
@@ -86,7 +86,7 @@ The Gojo Satarou is a powerful Group Management bot with awesome plugins and fea
|
|
86 |
|
87 |
* Just click on the button it will redirect you to Heroku website and deploy your bot there....enjoy 😉
|
88 |
|
89 |
-
[](https://heroku.com/deploy?template=https://github.com/Gojo-Bots/
|
90 |
|
91 |
-------
|
92 |
|
@@ -94,10 +94,10 @@ The Gojo Satarou is a powerful Group Management bot with awesome plugins and fea
|
|
94 |
[](https://railway.app)
|
95 |
### How To Deploy On Railway
|
96 |
* **Make Sure You have an github account which is minimum 30 days old.**
|
97 |
-
* Fork the repo by clicking [here](https://github.com/Gojo-Bots/
|
98 |
* Click on [deploy](https://railway.app) button
|
99 |
* Login in railway using github account
|
100 |
-
* Now search the repo in the search bar given like iamgojoof6eyes/
|
101 |
* Now add the values and keys by creating values and keys ***Make sure to add keys __as per given below__ I'll advide you to just copy and paste it***
|
102 |
* Then wait for 10-15 minutes.
|
103 |
* `Mandaotry` keys are [given below](#Variables)
|
@@ -107,12 +107,12 @@ The Gojo Satarou is a powerful Group Management bot with awesome plugins and fea
|
|
107 |
--------
|
108 |
|
109 |
## Deploy To Okteto
|
110 |
-
[](https://cloud.okteto.com/deploy?repository=https://github.com/Gojo-Bots/
|
111 |
|
112 |
### How To Deploy On Okteto
|
113 |
* **Make sure you have an github account.**
|
114 |
-
* [Fork](https://github.com/Gojo-Bots/
|
115 |
-
* Click on [deploy](https://cloud.okteto.com/deploy?repository=https://github.com/Gojo-Bots/
|
116 |
* Login using github.
|
117 |
* Fill the values
|
118 |
* Then wait for 10-15 minutes.
|
@@ -129,7 +129,7 @@ The Gojo Satarou is a powerful Group Management bot with awesome plugins and fea
|
|
129 |
|
130 |
* Install Python v3.7 or later from Python's Website
|
131 |
* Install virtualenv using `python3 -m pip -U install virtualenv`.
|
132 |
-
* Fork or Clone the project using `git clone https://github.com/Gojo-Bots/
|
133 |
* Create Virtualenv using: `virtualenv venv`
|
134 |
* Install the requirements using `python3 -m pip install -r requirements.txt`
|
135 |
* Fill in all the variables in Development class, not Config class. Sudo, Dev, Whitelist users are optional!!
|
@@ -144,11 +144,11 @@ The Gojo Satarou is a powerful Group Management bot with awesome plugins and fea
|
|
144 |
* Now follow the steps:
|
145 |
To build the docker image **(The dot '.' at last is necessary!)**:
|
146 |
```
|
147 |
-
docker build -t
|
148 |
```
|
149 |
To run copy and paste the following commang
|
150 |
```
|
151 |
-
docker run --env-file main.env
|
152 |
```
|
153 |
If all works well, bot should send message to the MESSAGE_DUMP Group!--->
|
154 |
|
@@ -170,7 +170,7 @@ To get a list of all variable click [here](https://telegra.ph/Captain-03-27)
|
|
170 |
|
171 |
# Adding your own plugin
|
172 |
|
173 |
-
To add your very own plugin just use the format given below and go through the [utils](https://github.com/Gojo-Bots/
|
174 |
|
175 |
```python
|
176 |
from traceback import format_exc
|
@@ -201,14 +201,14 @@ To add your very own plugin just use the format given below and go through the [
|
|
201 |
|
202 |
|
203 |
```
|
204 |
-
# Add plugins in [plugin](https://github.com/Gojo-Bots/
|
205 |
## **Note** : Don't use <> this bracket while writing the code...
|
206 |
|
207 |
--------
|
208 |
|
209 |
# Contributors
|
210 |
|
211 |
-
[](https://github.com/Gojo-Bots/Gojo_Satoru/fork)
|
16 |
+

|
17 |
|
18 |
+

|
19 |

|
20 |
|
21 |

|
22 |
+

|
23 |
|
24 |

|
25 |
+

|
26 |
|
27 |
|
28 |
|
|
|
49 |
<h1 align="center"><img src="./extras/original.gif" /></h1>
|
50 |
|
51 |
|
52 |
+
The Gojo Satoru is a powerful Group Management bot with awesome plugins and features.
|
53 |
|
54 |
**If you counter any problem or face any bugs for help join 🌟 [Gojo Updates](https://telegram.dog/gojo_updates) 🌟 and then join the gc and ask your problem.**
|
55 |
|
|
|
86 |
|
87 |
* Just click on the button it will redirect you to Heroku website and deploy your bot there....enjoy 😉
|
88 |
|
89 |
+
[](https://heroku.com/deploy?template=https://github.com/Gojo-Bots/Gojo_Satoru.git)
|
90 |
|
91 |
-------
|
92 |
|
|
|
94 |
[](https://railway.app)
|
95 |
### How To Deploy On Railway
|
96 |
* **Make Sure You have an github account which is minimum 30 days old.**
|
97 |
+
* Fork the repo by clicking [here](https://github.com/Gojo-Bots/Gojo_Satoru/fork)
|
98 |
* Click on [deploy](https://railway.app) button
|
99 |
* Login in railway using github account
|
100 |
+
* Now search the repo in the search bar given like iamgojoof6eyes/Gojo_Satoru ***replace iamgojoof6eyes with your github username.***
|
101 |
* Now add the values and keys by creating values and keys ***Make sure to add keys __as per given below__ I'll advide you to just copy and paste it***
|
102 |
* Then wait for 10-15 minutes.
|
103 |
* `Mandaotry` keys are [given below](#Variables)
|
|
|
107 |
--------
|
108 |
|
109 |
## Deploy To Okteto
|
110 |
+
[](https://cloud.okteto.com/deploy?repository=https://github.com/Gojo-Bots/Gojo_Satoru)
|
111 |
|
112 |
### How To Deploy On Okteto
|
113 |
* **Make sure you have an github account.**
|
114 |
+
* [Fork](https://github.com/Gojo-Bots/Gojo_Satoru/fork) the repo and give a star to repo
|
115 |
+
* Click on [deploy](https://cloud.okteto.com/deploy?repository=https://github.com/Gojo-Bots/Gojo_Satoru) button provided above...
|
116 |
* Login using github.
|
117 |
* Fill the values
|
118 |
* Then wait for 10-15 minutes.
|
|
|
129 |
|
130 |
* Install Python v3.7 or later from Python's Website
|
131 |
* Install virtualenv using `python3 -m pip -U install virtualenv`.
|
132 |
+
* Fork or Clone the project using `git clone https://github.com/Gojo-Bots/Gojo_Satoru.git`
|
133 |
* Create Virtualenv using: `virtualenv venv`
|
134 |
* Install the requirements using `python3 -m pip install -r requirements.txt`
|
135 |
* Fill in all the variables in Development class, not Config class. Sudo, Dev, Whitelist users are optional!!
|
|
|
144 |
* Now follow the steps:
|
145 |
To build the docker image **(The dot '.' at last is necessary!)**:
|
146 |
```
|
147 |
+
docker build -t gojo_gojo_satoru:latest .
|
148 |
```
|
149 |
To run copy and paste the following commang
|
150 |
```
|
151 |
+
docker run --env-file main.env gojo_gojo_satoru
|
152 |
```
|
153 |
If all works well, bot should send message to the MESSAGE_DUMP Group!--->
|
154 |
|
|
|
170 |
|
171 |
# Adding your own plugin
|
172 |
|
173 |
+
To add your very own plugin just use the format given below and go through the [utils](https://github.com/Gojo-Bots/Gojo_Satoru/blob/master/Powers/utils) and [custom_filters](https://github.com/Gojo-Bots/Gojo_Satoru/blob/master/Powers/utils/custom_filters.py)
|
174 |
|
175 |
```python
|
176 |
from traceback import format_exc
|
|
|
201 |
|
202 |
|
203 |
```
|
204 |
+
# Add plugins in [plugin](https://github.com/Gojo-Bots/Gojo_Satoru/tree/master/Powers/plugins) section
|
205 |
## **Note** : Don't use <> this bracket while writing the code...
|
206 |
|
207 |
--------
|
208 |
|
209 |
# Contributors
|
210 |
|
211 |
+
[](https://github.com/Gojo-Bots/Gojo_Satoru/graphs/contributors)
|
212 |
|
213 |
|
214 |
---------
|
SECURITY.md
CHANGED
@@ -13,4 +13,4 @@
|
|
13 |
|
14 |
* If you find any vulnerability please contact me via email [email protected]
|
15 |
* If you want instant reply contact me on telegram [@iamgojoof6eyes](https://t.me/iamgojoof6eyes) is my username.
|
16 |
-
* Or just open a [issue](https://github.com/Gojo-Bots/
|
|
|
13 |
|
14 |
* If you find any vulnerability please contact me via email [email protected]
|
15 |
* If you want instant reply contact me on telegram [@iamgojoof6eyes](https://t.me/iamgojoof6eyes) is my username.
|
16 |
+
* Or just open a [issue](https://github.com/Gojo-Bots/Gojo_Satoru/issues/new) in issues section.
|
app.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"name": "
|
3 |
"description": "Gojo is a Telegram Group management bot made using Pyrogram and Python, which makes it modern and faster than most of the Telegram chat managers.",
|
4 |
"logo" : "https://te.legra.ph/file/633bd27c1607fe98920b6.jpg" ,
|
5 |
"keywords": [
|
@@ -10,7 +10,7 @@
|
|
10 |
"Gojo",
|
11 |
"Anime"
|
12 |
],
|
13 |
-
"repository": "https://github.com/Gojo-Bots/
|
14 |
"success_url": "https://t.me/iamgojoof6eyes_bot",
|
15 |
"env": {
|
16 |
"BOT_TOKEN": {
|
|
|
1 |
{
|
2 |
+
"name": "Gojo_Satoru",
|
3 |
"description": "Gojo is a Telegram Group management bot made using Pyrogram and Python, which makes it modern and faster than most of the Telegram chat managers.",
|
4 |
"logo" : "https://te.legra.ph/file/633bd27c1607fe98920b6.jpg" ,
|
5 |
"keywords": [
|
|
|
10 |
"Gojo",
|
11 |
"Anime"
|
12 |
],
|
13 |
+
"repository": "https://github.com/Gojo-Bots/Gojo_Satoru",
|
14 |
"success_url": "https://t.me/iamgojoof6eyes_bot",
|
15 |
"env": {
|
16 |
"BOT_TOKEN": {
|
okteto-pipeline.yml
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
icon: https://raw.githubusercontent.com/Gojo-Bots/
|
2 |
deploy:
|
3 |
- okteto deploy --build -f docker-compose.yml
|
|
|
1 |
+
icon: https://raw.githubusercontent.com/Gojo-Bots/Gojo_Satoru/main/extras/photo_2022-08-19_13-54-45.jpg
|
2 |
deploy:
|
3 |
- okteto deploy --build -f docker-compose.yml
|