Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
aea5e81
1
Parent(s):
125bdf7
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,8 +24,8 @@
|
|
| 24 |
**A python and [pyrogram](https://github.com/iamgojoof6eyes/pyrogram) based group management bot for telegram.
|
| 25 |
If you like the bot make sure to give a ⭐ __star__ ⭐ to this respository and feel free to update and sending pull requests**
|
| 26 |
|
| 27 |
-
---------
|
| 28 |
-
|
| 29 |
## Inspiration ✨
|
| 30 |
`Not a particular inspiration inspired by many bots`
|
| 31 |
|
|
@@ -146,6 +146,36 @@ If all works well, bot should send message to the MESSAGE_DUMP Group!--->
|
|
| 146 |
To get a list of all variable click [here](https://telegra.ph/Captain-03-27)
|
| 147 |
|
| 148 |
---------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
# Special Thanks ❤️
|
| 151 |
|
|
|
|
| 24 |
**A python and [pyrogram](https://github.com/iamgojoof6eyes/pyrogram) based group management bot for telegram.
|
| 25 |
If you like the bot make sure to give a ⭐ __star__ ⭐ to this respository and feel free to update and sending pull requests**
|
| 26 |
|
| 27 |
+
---------
|
| 28 |
+
|
| 29 |
## Inspiration ✨
|
| 30 |
`Not a particular inspiration inspired by many bots`
|
| 31 |
|
|
|
|
| 146 |
To get a list of all variable click [here](https://telegra.ph/Captain-03-27)
|
| 147 |
|
| 148 |
---------
|
| 149 |
+
|
| 150 |
+
# Adding your own plugin
|
| 151 |
+
|
| 152 |
+
To add your very own plugin just use the format given below and go through the [utils](https://github.com/iamgojoof6eyes/Gojo_Satarou/blob/master/Powers/utils) and [custom_filters](https://github.com/iamgojoof6eyes/Gojo_Satarou/blob/master/Powers/utils/custom_filters.py)
|
| 153 |
+
|
| 154 |
+
```python
|
| 155 |
+
from traceback import
|
| 156 |
+
|
| 157 |
+
from Powers.utils.custom_filters import
|
| 158 |
+
from Powers import LOGGER
|
| 159 |
+
from Powers.bot_class import Gojo
|
| 160 |
+
|
| 161 |
+
@Gojo.on_message(command("<your command>")) # Pass additional filters if you need
|
| 162 |
+
async def <def name>(<arguments to take>):
|
| 163 |
+
<your code>
|
| 164 |
+
|
| 165 |
+
'''use logger to add log info using LOGGER.info(<string>) in the platfrom on which bot is running
|
| 166 |
+
and error as LOGGER.error(<string>) and after LOGGER.error() use
|
| 167 |
+
LOGGER.error(format_exc())'''
|
| 168 |
+
|
| 169 |
+
__PLUGIN__ = <name of plugin> # Pass the name of your plugin as string
|
| 170 |
+
_DISABLE_CMDS_ = [<command>] # This command can be used by normal users as well as admins
|
| 171 |
+
__alt_name__ = [<command>] # This command can only be used by admins
|
| 172 |
+
|
| 173 |
+
__HELP__ = <string> # To tell about you plugin and commands you must use it
|
| 174 |
+
|
| 175 |
+
# See any plugin to get more information about how to make a plugin
|
| 176 |
+
```
|
| 177 |
+
|
| 178 |
+
--------
|
| 179 |
|
| 180 |
# Special Thanks ❤️
|
| 181 |
|