diff --git a/README.md b/README.md index 95145fb..f12368f 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,8 @@ bot with bot. Install with `pip install --upgrade bwb`. ```text -# Import one of: -from bwb.tanner import bwb -from bwb.jason import bwb -from bwb.tdev import bwb -from bwb.molly import bwb +from bwb import bwb +bwb = bwb.bwb(TELEGRAM_ID) ``` ### Handshaking diff --git a/bwb/common.py b/bwb/bwb.py similarity index 98% rename from bwb/common.py rename to bwb/bwb.py index e205f1d..2e74fbc 100644 --- a/bwb/common.py +++ b/bwb/bwb.py @@ -60,8 +60,9 @@ class OTP: return True return False -class common: - def __init__(self): +class bwb: + def __init__(self, tid): + self.TELEGRAM_ID = tid self.key = None self.master_pub = None self.init_secret = '' diff --git a/bwb/jason.py b/bwb/jason.py deleted file mode 100644 index 31baa2d..0000000 --- a/bwb/jason.py +++ /dev/null @@ -1,6 +0,0 @@ -from .common import common - -class user(common): - TELEGRAM_ID = 172033414 - -bwb = user() diff --git a/bwb/molly.py b/bwb/molly.py deleted file mode 100644 index e3d73de..0000000 --- a/bwb/molly.py +++ /dev/null @@ -1,6 +0,0 @@ -from .common import common - -class user(common): - TELEGRAM_ID = 556762656 - -bwb = user() diff --git a/bwb/tanner.py b/bwb/tanner.py deleted file mode 100644 index a35b51f..0000000 --- a/bwb/tanner.py +++ /dev/null @@ -1,6 +0,0 @@ -from .common import common - -class user(common): - TELEGRAM_ID = 79316791 - -bwb = user() diff --git a/bwb/tdev.py b/bwb/tdev.py deleted file mode 100644 index 398978a..0000000 --- a/bwb/tdev.py +++ /dev/null @@ -1,6 +0,0 @@ -from .common import common - -class user(common): - TELEGRAM_ID = 559772740 - -bwb = user() diff --git a/setup.py b/setup.py index 3c87762..8a3e00d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup(name='bwb', - version='2.1.1', + version='3.0.0', description='bwb', long_description=long_description, long_description_content_type='text/markdown',