removed transWhat config file (closes #23)
This commit is contained in:
parent
a9e97d16d5
commit
75a0f310e3
10
INSTALL.md
10
INSTALL.md
|
@ -78,13 +78,3 @@ Install required dependencies:
|
||||||
|
|
||||||
- **e4u**: is a simple emoji4unicode python bindings
|
- **e4u**: is a simple emoji4unicode python bindings
|
||||||
- [**yowsup**](https://github.com/tgalal/yowsup): is a python library that enables you build application which use WhatsApp service.
|
- [**yowsup**](https://github.com/tgalal/yowsup): is a python library that enables you build application which use WhatsApp service.
|
||||||
|
|
||||||
### Configuration
|
|
||||||
|
|
||||||
Then create a new file called `constants.py` in the newly checked out transWhat Git repository:
|
|
||||||
|
|
||||||
BASE_PATH = "/location/to/transwhat"
|
|
||||||
|
|
||||||
TOKEN_FILE = BASE_PATH + "/logs/tokens"
|
|
||||||
MOTD_FILE = BASE_PATH + "/conf/motd"
|
|
||||||
REQUESTS_FILE = BASE_PATH + "/logs/requests"
|
|
||||||
|
|
1
bot.py
1
bot.py
|
@ -30,7 +30,6 @@ import time
|
||||||
import os
|
import os
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
from constants import *
|
|
||||||
class Bot():
|
class Bot():
|
||||||
def __init__(self, session, name = "Bot"):
|
def __init__(self, session, name = "Bot"):
|
||||||
self.session = session
|
self.session = session
|
||||||
|
|
|
@ -41,7 +41,6 @@ from buddy import BuddyList
|
||||||
from threading import Timer
|
from threading import Timer
|
||||||
from group import Group
|
from group import Group
|
||||||
from bot import Bot
|
from bot import Bot
|
||||||
from constants import *
|
|
||||||
from yowsupwrapper import YowsupApp
|
from yowsupwrapper import YowsupApp
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ sys.path.insert(0, os.getcwd())
|
||||||
from Spectrum2.iochannel import IOChannel
|
from Spectrum2.iochannel import IOChannel
|
||||||
|
|
||||||
from whatsappbackend import WhatsAppBackend
|
from whatsappbackend import WhatsAppBackend
|
||||||
from constants import *
|
|
||||||
from yowsup.common import YowConstants
|
from yowsup.common import YowConstants
|
||||||
from yowsup.stacks import YowStack
|
from yowsup.stacks import YowStack
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue