This is a chatbot made for fun with the help of Django and Django Channels. It was built over an existing chatbot by Vaisagh. For reference Check it out Features:
- Authentication
- Click counts displayed on homepage itself.
- Chatbot whick responds to our action.
Click here to see the screenshots of the webapp.
Setup:
- Clone the repo
git clone https://github.com/VishnuPrasad1998/telebot.git
- Inside telebot folder, first grab a virtualenv and activate it
virtualenv venv
source ven/bin/activate
- Install all packages
pip install -r requirements.txt
- Add your PostgreSQL credentials to settings.py(Only if you are using it for development in local machine other wise use dotenv)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': '<Your-DB-name>',
'USER': '<Name=of-the-user>',
'PASSWORD': '<Password>',
'HOST': 'localhost'
}
}
- Migrate these changes
python manage.py makemigrations
python manage.py migrate
- To create super user
python manage.py createsuperuser
- To runserver(by default on port 8000)
python manage.py runserver
- To run tests
./manage.py test chat/
You are good to go... This is version1 so UI is a mess and features like count update can be made real time.