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
- Host: GitHub
- URL: https://github.com/quickblox/sample-chatbot-python
- Owner: QuickBlox
- License: apache-2.0
- Created: 2014-08-16T22:11:40.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T08:58:54.000Z (almost 12 years ago)
- Last Synced: 2024-03-26T15:03:53.104Z (about 2 years ago)
- Language: Python
- Size: 211 KB
- Stars: 6
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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