Skip to content

Commit

Permalink
added mongo help
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Apr 12, 2020
1 parent 400877d commit 59304ec
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 9 deletions.
57 changes: 49 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://github.com/UsergeTeam/Userge">
<img src="resources/userge(8).png" alt="Userge">
<img src="resources/userge.png" alt="Userge">
</a>
<br>
<b>Pluggable Telegram UserBot</b>
Expand All @@ -26,7 +26,7 @@

> This project is inspired by the following projects :)
* [tg_userbot](https://github.com/watzon/tg_userbot) (heavily)
* [tg_userbot](https://github.com/watzon/tg_userbot) ( heavily )
* [PyroGramUserBot](https://github.com/SpEcHiDe/PyroGramUserBot)
* [Telegram-Paperplane](https://github.com/RaphielGang/Telegram-Paperplane)
* [UniBorg](https://github.com/SpEcHiDe/UniBorg)
Expand All @@ -35,26 +35,34 @@
## Features

* Powerful and Very Usefull built-in plugins
* Channel log support
* Powerful and Very Useful **built-in** Plugins
* gdrive ( Team Drives Supported! )
* zip / unzip
* telegram upload
* telegram download
* etc...
* Channel & Group log support
* Database support
* Easy to setup
* Easy to use
* Easy to add plugins
* Easy to write modules with the modefied client
* Build-in help support
* Easy to Setup & Use
* Easy to add / port Plugins
* Easy to write modules with the modified client

## Example Plugin

```python
from userge import userge, Message

LOG = userge.getLogger(__name__) # logger object

CHANNEL = userge.getCLogger(__name__) # channel logger object

@userge.on_cmd("test", about="help text to this command") # adding handler and help text to .test command
async def testing(message: Message):
LOG.info("starting test command...") # log to console

await message.edit("testing...", del_in=5) # this will be automatically deleted after 5 sec

CHANNEL.log("testing completed!") # log to channel
```

Expand All @@ -63,6 +71,39 @@ async def testing(message: Message):
* Python 3.8 or Higher
* Telegram [API Keys](https://my.telegram.org/apps)
* MongoDB [Database URL](https://cloud.mongodb.com/)
* Step 1

![mongo help 1](resources/mongo_help/1.jpg)

* Step 2

![mongo help 2](resources/mongo_help/2.jpg)

* Step 3

![mongo help 3](resources/mongo_help/3.jpg)

* Step 4

![mongo help 4](resources/mongo_help/4.jpg)

* Step 5

![mongo help 5](resources/mongo_help/5.jpg)

* Step 6

![mongo help 6](resources/mongo_help/6.jpg)

* Step 7

![mongo help 7](resources/mongo_help/7.jpg)

* Final Step

![mongo help 8](resources/mongo_help/8.jpg)

**REMEMBER the password**
* Google Drive [API Keys](https://console.developers.google.com/)

## How To Deploy
Expand Down
Binary file added resources/mongo_help/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/mongo_help/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
3 changes: 3 additions & 0 deletions userge/plugins/fun/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
__Make caps smaller__
**Usage:**
`.small [text | reply to msg]`""")
async def small_(message: Message):
text = message.input_str
Expand All @@ -32,6 +33,7 @@ async def small_(message: Message):
__Convert text to lowwer__
**Usage:**
`.lower [text | reply to msg]`""")
async def lower_(message: Message):
text = message.input_str
Expand All @@ -49,6 +51,7 @@ async def lower_(message: Message):
__Convert text to upper__
**Usage:**
`.upper [text | reply to msg]`""")
async def upper_(message: Message):
text = message.input_str
Expand Down
1 change: 1 addition & 0 deletions userge/plugins/fun/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
__Simulate a typewriter__
**Usage:**
`.type [text | reply to msg]`""")
async def type_(message: Message):
text = message.input_str
Expand Down
2 changes: 1 addition & 1 deletion userge/plugins/misc/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

LOGGER = userge.getLogger(__name__)

LOGO_PATH = 'resources/userge(8).png'
LOGO_PATH = 'resources/userge.png'
THUMB_PATH = Config.DOWN_PATH + "thumb_image.jpg"


Expand Down

0 comments on commit 59304ec

Please sign in to comment.