From c4f075d6420d0ea6ddc12bc815e522e89ce566f1 Mon Sep 17 00:00:00 2001 From: ccl Date: Wed, 13 Jan 2021 14:45:33 +0100 Subject: [PATCH] added description for whisperbot --- WhisperBot/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/WhisperBot/README.md b/WhisperBot/README.md index 952f6c7..daebe3c 100644 --- a/WhisperBot/README.md +++ b/WhisperBot/README.md @@ -1 +1,9 @@ -This is a bot that takes a message sent in a private conversation and repeats it to a group. +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: + 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: + 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: + python3 whisper.py -j whisperbot@conversejs.org -r muc_name@muc.vvvvvvaria.org -n whisperbot -p testing \ No newline at end of file