updated whisperbot description
This commit is contained in:
parent
c4f075d642
commit
06c89b2b97
@ -1,9 +1,14 @@
|
|||||||
|
# WhisperBot
|
||||||
|
|
||||||
This bot forwards messages it receives in private to the group channel it is part of.
|
This bot forwards messages it receives in private to the group channel it is part of.
|
||||||
On line 37 you can change the code after 'msg.reply("' to add your own message that will be sent to the person speaking to the bot:
|
On line 37 you can change the code after 'msg.reply("' to add your own message that will be sent to the person speaking to the bot:
|
||||||
|
|
||||||
msg.reply("Thank you for telling me this. I will pass it on to the chatroom." % msg).send()
|
msg.reply("Thank you for telling me this. I will pass it on to the chatroom." % msg).send()
|
||||||
|
|
||||||
On line 38 you can change the code after 'mbody="' to add your own message that will be sent to the group the bot is part of:
|
On line 38 you can change the code after 'mbody="' to add your own message that will be sent to the group the bot is part of:
|
||||||
|
|
||||||
self.send_message(mto=self.room, mbody="This has been whispered to me:\n%(body)s" % msg, mtype='groupchat')
|
self.send_message(mto=self.room, mbody="This has been whispered to me:\n%(body)s" % msg, mtype='groupchat')
|
||||||
|
|
||||||
To run this bot, type the following command in your terminal:
|
To run this bot, type the following command in your terminal:
|
||||||
|
|
||||||
python3 whisper.py -j whisperbot@conversejs.org -r muc_name@muc.vvvvvvaria.org -n whisperbot -p testing
|
python3 whisper.py -j whisperbot@conversejs.org -r muc_name@muc.vvvvvvaria.org -n whisperbot -p testing
|
Loading…
Reference in New Issue
Block a user