SirDank / dank.ai

Simple chatbot which can be trained with whatsapp chat to give fun responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup:

  • download and install python
  • download this repo from > https://github.com/SirDank/dank.ai/archive/refs/heads/main.zip
  • extract folder anywhere
  • run setup.cmd
  • go to C:\Users\YOUR_USERNAME\AppData\Roaming\Python\YOUR_PYTHON_VERSION\site-packages\sqlalchemy\util\compat.py and replace "time.clock" with "time.time"
  • if you are on py 3.10 or above, go to C:\Users\YOUR_USERNAME\AppData\Roaming\Python\YOUR_PYTHON_VERSION\site-packages\yaml\constructor.py and replace "collections.Hashable" with "collections.abc.Hashable"
  • make sure you have internet and then run start.cmd

Usage:

  • on running the script, a subfolder will be created called "dank.ai" this will hold all the data used by the script. If you would like to reset the chatbot, simply delete this folder

1

  • first you need to train the bot with corpus ( this is required and only needs to be done once, unless you have reset the chatbot )

2

  • make sure you type the language correctly!

3

  • now the fun part, optionally you can train the bot with whatsapp chat, exported from your mobile phone (without media)

4

  • check the opened .txt file and make sure everything looks alright, then press "y" and hit enter. This will take a few seconds

5

  • thats it! you can start the bot now and enjoy fun responses to your inputs based on the trained data.

6

About

Simple chatbot which can be trained with whatsapp chat to give fun responses

License:MIT License


Languages

Language:Python 99.1%Language:Batchfile 0.9%