{"action":"closed","issue":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/468","repository_url":"https://api.github.com/repos/gunthercox/ChatterBot","labels_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/468/comments","events_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/468/events","html_url":"https://github.com/gunthercox/ChatterBot/issues/468","id":193677312,"number":468,"title":"How do I post against chatterbot api from channels?","user":{"login":"rajasimon","id":6974101,"avatar_url":"https://avatars.githubusercontent.com/u/6974101?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasimon","html_url":"https://github.com/rajasimon","followers_url":"https://api.github.com/users/rajasimon/followers","following_url":"https://api.github.com/users/rajasimon/following{/other_user}","gists_url":"https://api.github.com/users/rajasimon/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasimon/subscriptions","organizations_url":"https://api.github.com/users/rajasimon/orgs","repos_url":"https://api.github.com/users/rajasimon/repos","events_url":"https://api.github.com/users/rajasimon/events{/privacy}","received_events_url":"https://api.github.com/users/rajasimon/received_events","type":"User","site_admin":false},"labels":[{"id":493961403,"url":"https://api.github.com/repos/gunthercox/ChatterBot/labels/resolved","name":"resolved","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T03:56:58Z","updated_at":"2016-12-09T23:28:56Z","closed_at":"2016-12-09T23:28:56Z","body":"Well I'm using Django channels to send and receive messages. In this case I'm using consumers to get the messages from frontend and process it and return back to frontend.\r\n\r\n```\r\ndef ws_message(message):\r\n    # I like to call the chatterbot api here\r\n    reply_message = ????\r\n    message.reply_channel.send({\r\n        \"text\": reply_message,\r\n    })\r\n\r\n```\r\nI correctly set `chatterbot.ext.django_chatterbot` in INSTALLED_APPS. And also I have this...\r\n\r\n```\r\n# Chatterbot\r\nCHATTERBOT = {\r\n    'name': 'Bot Example',\r\n    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',\r\n    'training_data': [\r\n        'chatterbot.corpus.english.greetings'\r\n    ]\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"gunthercox"}}