An open API service indexing awesome lists of open source software.

https://github.com/quickblox/sample-chatbot-python

QuickBlox compatible Python chat bot
https://github.com/quickblox/sample-chatbot-python

Last synced: about 1 year ago
JSON representation

QuickBlox compatible Python chat bot

Awesome Lists containing this project

README

          

TestBot: a QuickBlox compatible chat bot

This is a basic chat bot code that works in both 1:1 and MUC chat environments.
Can be used for adding automated agents into QuickBlox powered apps.
Typical use cases include testing, moderation, customer support, trivia/quiz games etc.

How to start


start the bot by running the shell command:
python [FULL PATH]/testbot.py -r [room JID]

example: python /Work/chatbot/testbot.py -d -r 7232_53baafe7535c1282fe019dda@muc.chat.quickblox.com

alternatively you may specify full parameters in command line

python [FULL PATH]/testbot.py -j [user JID] -r [room JID] -n [QB user ID] -p [QB user PASSWORD]

if you omit the parameters, the script will ask you to enter manually.

MUC auto-join


for MUC auto-join to work, you need to update the QB credentials in testbot.py and also make it executable (shell: chmod -x testbot.py).

Logging options


Add these to command line for various logging options:
'-q', '--quiet': set logging to ERROR
'-d', '--debug': set logging to DEBUG
'-v', '--verbose': set logging to COMM