Untruncate LiveMessages

This commit is contained in:
Joscha 2019-04-12 12:12:04 +00:00
parent 3255ea770e
commit a78f57db7a
2 changed files with 4 additions and 1 deletions

View file

@ -50,7 +50,6 @@ i. e. the text between the end of the "!echo" and the end of the whole message.
## TODOs
- [ ] implement !restart and add an easier way to run bots
- [ ] untruncate LiveMessage-s
- [ ] config file support for bots, used by default
- [ ] package in a distutils-compatible way (users should be able to install
yaboli using `pip install git+https://github.com/Garmelon/yaboli`)
@ -63,3 +62,4 @@ i. e. the text between the end of the "!echo" and the end of the whole message.
- [ ] write examples
- [x] implement !uptime for proper botrulez conformity
- [x] implement !kill
- [x] untruncate LiveMessage-s

View file

@ -166,5 +166,8 @@ class LiveMessage(Message):
async def reply(self, content: str) -> "LiveMessage":
return await self.room.send(content, parent_id=self.message_id)
async def get(self) -> "LiveMessage":
return await self.room.get(self.message_id)
async def before(self, amount: int) -> List["LiveMessage"]:
return await self.room.log(amount, before_id=self.message_id)