Skip to content

Latest commit

 

History

History
53 lines (51 loc) · 1.41 KB

README.md

File metadata and controls

53 lines (51 loc) · 1.41 KB

telebot

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:

  1. Authentication
  2. Click counts displayed on homepage itself.
  3. Chatbot whick responds to our action.

Click here to see the screenshots of the webapp.

Setup:

  1. Clone the repo git clone https://github.com/VishnuPrasad1998/telebot.git
  2. Inside telebot folder, first grab a virtualenv and activate it
virtualenv venv
source ven/bin/activate
  1. Install all packages
pip install -r requirements.txt
  1. 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'
    }
}
  1. Migrate these changes
python manage.py makemigrations
python manage.py migrate
  1. To create super user
python manage.py createsuperuser
  1. To runserver(by default on port 8000)
python manage.py runserver
  1. 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.