update some of the help strings and readme for encryption flag

This commit is contained in:
William Kray
2024-08-26 16:15:32 -07:00
parent cdc8bf9e56
commit b8a5253e4f
2 changed files with 8 additions and 2 deletions
+5 -2
View File
@@ -413,11 +413,14 @@ class CommunityBot(Plugin):
await evt.reply("lol you don't have permission to do that")
@community.subcommand("createroom", help="create a new room titled <roomname> and add it to the parent space")
@community.subcommand("createroom", help="create a new room titled <roomname> and add it to the parent space. \
optionally include `--encrypt` to encrypt it regardless of the default settings.")
@command.argument("roomname", pass_raw=True, required=True)
async def create_that_room(self, evt: MessageEvent, roomname: str) -> None:
if (roomname == "help") or len(roomname) == 0:
await evt.reply('pass me a room name (like "cool topic") and i will create it and add it to the space')
await evt.reply('pass me a room name (like "cool topic") and i will create it and add it to the space. \
use `--encrypt` to ensure it is encrypted at creation time even if that isnt my default \
setting.')
else:
if evt.sender in self.config["admins"] or evt.sender in self.config["mods"]:
encrypted_flag_regex = re.compile(r'(\s+|^)-+encrypt(ed)?\s?')