diff --git a/contrib_bots/bots/john/john.py b/contrib_bots/bots/john/john.py index d68d317..ccfce65 100644 --- a/contrib_bots/bots/john/john.py +++ b/contrib_bots/bots/john/john.py @@ -32,12 +32,12 @@ def create_chat_bot(no_learn): storage_adapter="chatterbot.storage.JsonFileStorageAdapter", logic_adapters= [ - "chatterbot.logic.MathematicalEvaluation", - { - "import_path": "chatterbot.logic.BestMatch", - "response_selection_method": "chatterbot.response_selection.get_random_response", - "statement_comparison_function": "chatterbot.comparisons.levenshtein_distance" - }], + "chatterbot.logic.MathematicalEvaluation", + { + "import_path": "chatterbot.logic.BestMatch", + "response_selection_method": "chatterbot.response_selection.get_random_response", + "statement_comparison_function": "chatterbot.comparisons.levenshtein_distance" + }], output_adapter="chatterbot.output.OutputFormatAdapter", output_format='text', database=DATABASE_PATH, diff --git a/integrations/twitter/twitter-bot b/integrations/twitter/twitter-bot index eb07830..e3ae2ae 100755 --- a/integrations/twitter/twitter-bot +++ b/integrations/twitter/twitter-bot @@ -150,10 +150,10 @@ else: for status in statuses[::-1][:options.limit_tweets]: composed = "%s (%s)" % (status.user.name, status.user.screen_name) message = { - "type": "stream", - "to": [options.stream], - "subject": composed, - "content": status.text, + "type": "stream", + "to": [options.stream], + "subject": composed, + "content": status.text, } ret = client.send_message(message) diff --git a/integrations/twitter/twitter-search-bot b/integrations/twitter/twitter-search-bot index a10bca7..b1f7353 100755 --- a/integrations/twitter/twitter-search-bot +++ b/integrations/twitter/twitter-search-bot @@ -176,10 +176,10 @@ for status in statuses[::-1][:opts.limit_tweets]: search_term_used = "mentions" message = { - "type": "stream", - "to": [opts.stream], - "subject": search_term_used, - "content": url, + "type": "stream", + "to": [opts.stream], + "subject": search_term_used, + "content": url, } ret = client.send_message(message)