Let users initialize bwb object with ID themselves

This commit is contained in:
Tanner Collin 2019-10-05 00:16:30 +00:00
parent 85db7df8ef
commit 6e96b6cee4
7 changed files with 6 additions and 32 deletions

View File

@ -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

View File

@ -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 = ''

View File

@ -1,6 +0,0 @@
from .common import common
class user(common):
TELEGRAM_ID = 172033414
bwb = user()

View File

@ -1,6 +0,0 @@
from .common import common
class user(common):
TELEGRAM_ID = 556762656
bwb = user()

View File

@ -1,6 +0,0 @@
from .common import common
class user(common):
TELEGRAM_ID = 79316791
bwb = user()

View File

@ -1,6 +0,0 @@
from .common import common
class user(common):
TELEGRAM_ID = 559772740
bwb = user()

View File

@ -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',