{"id":20153281,"url":"https://github.com/pmutua/botserver","last_synced_at":"2026-04-09T17:47:22.342Z","repository":{"id":98959712,"uuid":"290688461","full_name":"pmutua/botserver","owner":"pmutua","description":"Simple implementation of a chatbot using Django that runs on Docker. The chatbot uses the ChatterBot Python library that makes it easy to generate automated responses to a user’s input.","archived":false,"fork":false,"pushed_at":"2020-09-14T10:06:23.000Z","size":2395,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T01:27:08.138Z","etag":null,"topics":["bot","chatbot","chatterbot","django","docker","docker-compose","dockerfile","nltk","python"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmutua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-27T05:52:19.000Z","updated_at":"2023-05-01T02:14:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"9acf7dcf-cd1d-4188-9a23-b6a1a27480e7","html_url":"https://github.com/pmutua/botserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pmutua/botserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmutua%2Fbotserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmutua%2Fbotserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmutua%2Fbotserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmutua%2Fbotserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmutua","download_url":"https://codeload.github.com/pmutua/botserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmutua%2Fbotserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270681407,"owners_count":24627360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","chatbot","chatterbot","django","docker","docker-compose","dockerfile","nltk","python"],"created_at":"2024-11-13T23:18:25.430Z","updated_at":"2025-12-30T21:45:54.768Z","avatar_url":"https://github.com/pmutua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Botserver\n\n\nChatterBot is a machine-learning based conversational dialog engine build in Python which makes it possible to generate responses based on collections of known conversations. The language independent design of ChatterBot allows it to be trained to speak any language.\n\nAn example of typical input would be something like this:\n\nuser: Good morning! How are you doing?\nbot: I am doing very well, thank you for asking.\nuser: You're welcome.\nbot: Do you like hats?\n\nHow it works\nAn untrained instance of ChatterBot starts off with no knowledge of how to communicate. Each time a user enters a statement, the library saves the text that they entered and the text that the statement was in response to. As ChatterBot receives more input the number of responses that it can reply and the accuracy of each response in relation to the input statement increase. The program selects the closest matching response by searching for the closest matching known statement that matches the input, it then returns the most likely response to that statement based on how frequently each response is issued by the people the bot communicates with.\n\n\n\n\npip install pipenv\n\npipenv lock \n\npipenv install --ignore-pipfile \n\npython manage.py migrate django_chatterbot\n\n\nRUN:\n----\n\ndocker-compose exec db psql --username=hello_django --dbname=hello_django_dev\n\n\ndocker-compose exec web manage.py migrate django_chatterbot\n\ndocker-compose exec web python manage.py migrate --noinput\n\n\ndocker volume inspect django-on-docker_postgres_data\n\n\n\n\nRUN chmod +x entrypoint.sh\n\nDOCKER:\n-------\n\ndocker build -f ./core/Dockerfile -t nccgbot:latest ./core\n\n\ndocker run -d -p 8000:8000 -e \"SECRET_KEY=please_change_me\" -e \"DEBUG=1\" -e \"DJANGO_ALLOWED_HOSTS=*\" nccg-chatbot_web  python /usr/src/app/manage.py runserver 0.0.0.0:8000\n\n\nRemobe dangling images \n\ndocker rmi -f $(docker images -f \"dangling=true\" -q)\n\n\ninstall spacy==2.3.2 manually\n\n\ndocker-compose -f docker-compose-deploy.yml build --no-cache\n\n\n\n\nList all containers (only IDs) docker ps -aq.\nStop all running containers. docker stop $(docker ps -aq)\nRemove all containers. docker rm $(docker ps -aq)\nRemove all images. docker rmi $(docker images -q)\n\n\n# TODO \n\n\n\n# Django first-time initialization and Training:\n\n\n% python manage.py migrate --run-syncdb\n% python manage.py migrate train\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmutua%2Fbotserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmutua%2Fbotserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmutua%2Fbotserver/lists"}