samp-ai-chatbot icon indicating copy to clipboard operation
samp-ai-chatbot copied to clipboard

An ai chat bot for samp using aiml,pyaiml,pawn,flask

samp-ai-chatbot

GitHub issues GitHub pull requests GitHub pull license

This is sample ai chatting bot using aiml,flask,pyaiml and pawn for sa-mp.You can add your own aiml files in sampai.aiml to change the bot behaviour.The current aiml files is from AI Foundation's A.L.I.C.E. bot. click here for forum thread

How to use this script?

  1. Clone this repository
    git clone https://www.github.com/sreyas-sreelal/samp-ai-chatbot.git
    
  2. Compile the sample bot script in filterscripts folder and add them to your server project
  3. Install python (i recommend python 3.5+ versions) dependencies using pip
    pip install flask python-aiml
    
  4. Start the web server using the script start.py in web-server folder
    python3 start.py
    
  5. Start your samp server and use the command /ask <message> to talk with the bot

Dependencies

  • pawn (to run sample script)

    • sa-mp 0.3.7 - https://www.sa-mp.com/download.php
    • zcmd by Zeex - http://forum.sa-mp.com/showthread.php?t=91354
  • python (to run web server)

    • Flask
    • pyaiml

Images

alt text alt text alt text