Skip to content

Commit

Permalink
added new class called Message
Browse files Browse the repository at this point in the history
Made new class Message
# removed old files
# created core folder in root
# moved db.py and client.py to that
# now functions more user friendly than before
# added new methods to Message class
    message.err()
    message.force_err()
    message.force_edit()
# modified existing  message.edit() and message.reply() [ added delete timeout ]

<<< 42 minutes ago >>>

little teaks in Message

<<< 42 minutes ago >>>

changed plugins for new structure

<<< 36 minutes ago >>>

simple fix in client

<<< 25 minutes ago >>>

added pySmartDL

<<< 23 minutes ago >>>

added .download command

<<< 5 minutes ago >>>

Signed-off-by: rking32 <[email protected]>
  • Loading branch information
rking32 committed Mar 23, 2020
1 parent 1da0e6d commit 97ce66f
Show file tree
Hide file tree
Showing 21 changed files with 853 additions and 680 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ emoji
wget
nest_asyncio
requests
pySmartDL
6 changes: 3 additions & 3 deletions userge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .utils import Config, logging
from .client import Userge, Filters
from .db import get_collection
from userge.utils import Config, logging
from userge.core import Userge, Filters, get_collection


userge = Userge() # userge is the client name
242 changes: 0 additions & 242 deletions userge/client.py

This file was deleted.

2 changes: 2 additions & 0 deletions userge/core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from ._userge import Userge, Filters
from ._database import get_collection
1 change: 1 addition & 0 deletions userge/core/_database/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .db import get_collection
2 changes: 1 addition & 1 deletion userge/db.py → userge/core/_database/db.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pymongo import MongoClient
from pymongo.collection import Collection
from .utils import Config, logging
from userge.utils import Config, logging

LOG = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions userge/core/_userge/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .client import Userge, Filters
7 changes: 7 additions & 0 deletions userge/core/_userge/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from userge.utils import logging


class Base:
_MAIN_STRING = "<<<! ##### ___{}___ ##### !>>>"
_SUB_STRING = "<<<! {} !>>>"
_LOG = logging.getLogger(__name__)
Loading

0 comments on commit 97ce66f

Please sign in to comment.