Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Change communication file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebarbaruiva committed Sep 24, 2018
1 parent 86b6765 commit bbfce02
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bot/application.py
Expand Up @@ -18,7 +18,7 @@

class Application:
"""
The chatbot per se, it containsontains the Communication class to deal with
The chatbot per se, it contains the Communication class to deal with
oncoming messages and also handles all Telegram related commands.
Might soon have a sibling to deal with Facebook.
"""
Expand Down
12 changes: 8 additions & 4 deletions bot/communication.py
@@ -1,12 +1,16 @@
from operator import itemgetter
import os
import json
import time
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
from chatterbot.response_selection import get_random_response
from bot.config_reader import retrieve_default
sys.path.append(
os.path.dirname(
os.path.dirname(os.path.realpath(__file__))
)
)
from bot.watson import Watson
import os
import json
import time


class Communication:
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Expand Up @@ -30,7 +30,7 @@ def rmdb(c):
@task(rmdb)
def test(c):
""" Runs all tests """
c.run('green3 ' + first_test)
c.run(f'green3 {first_test}')
c.run(f'green3 {app_test} {comm_test} {linter_test} {config_test} -vv')


Expand Down

0 comments on commit bbfce02

Please sign in to comment.