Document Bot attributes/functions
Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/35.
This commit is contained in:
parent
5b307cfe95
commit
73df47eb45
@ -1,5 +1,9 @@
|
||||
# xbotlib x.x.x (UNRELEASED)
|
||||
|
||||
# xbotlib 0.13.1 (2021-01-19)
|
||||
|
||||
- Document `Bot` attributes/functions ([#35](https://git.autonomic.zone/decentral1se/xbotlib/issues/35))
|
||||
|
||||
# xbotlib 0.13.0 (2021-01-18)
|
||||
|
||||
- Allow commands to be detected in all parts of the message
|
||||
|
17
README.md
17
README.md
@ -24,6 +24,7 @@ on and are still going on in
|
||||
- [Bot.group(message)](#bot-group-message)
|
||||
- [Bot.serve(request)](#bot-serve-request)
|
||||
- [SimpleMessage](#simplemessage)
|
||||
- [Bot](#bot)
|
||||
- [Working with your bot](#working-with-your-bot)
|
||||
- [Documentation](#documentation)
|
||||
- [Commands](#commands)
|
||||
@ -121,6 +122,22 @@ Attributes:
|
||||
- **type**: the type of message
|
||||
- **url**: The URL of a sent file
|
||||
|
||||
### Bot
|
||||
|
||||
> Bot.reply(message, to=None, room=None)
|
||||
|
||||
Send a reply back.
|
||||
|
||||
Arguments:
|
||||
|
||||
- **message**: the message that is sent
|
||||
- **to**: the user to send the reply to
|
||||
- **room**: the room to send the reply to
|
||||
|
||||
Other useful attributes on the `Bot` class are:
|
||||
|
||||
- **self.db**: The [Redis database](#redis-key-value-storage) if you're using it
|
||||
|
||||
## Working with your bot
|
||||
|
||||
### Documentation
|
||||
|
Reference in New Issue
Block a user