Add bots command

This commit is contained in:
Luke Murphy 2021-01-15 14:42:02 +01:00
parent 82f6ba0681
commit 2bb47e6f86
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# xbotlib x.x.x (UNRELEASED)
# xbotlib 0.8.2 (2021-01-15)
- Add `!bots` command to summon status
# xbotlib 0.8.1 (2021-01-15)
- Support avatars ([#17](https://git.autonomic.zone/decentral1se/xbotlib/issues/17))

View File

@ -320,6 +320,8 @@ class Bot(ClientXMPP):
self.reply(self.help, **kwargs)
except AttributeError:
self.reply("No help found 🤔️", **kwargs)
elif command == "bots" and "room" in kwargs:
self.reply("o/", **kwargs)
else:
self.log.error(f"'{command}' direct command is not recognised")