Let users initialize bwb object with ID themselves

master
Tanner Collin 5 years ago
parent 85db7df8ef
commit 6e96b6cee4
  1. 7
      README.md
  2. 5
      bwb/bwb.py
  3. 6
      bwb/jason.py
  4. 6
      bwb/molly.py
  5. 6
      bwb/tanner.py
  6. 6
      bwb/tdev.py
  7. 2
      setup.py

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

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

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

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

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

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

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

Loading…
Cancel
Save