Untruncate LiveMessages
This commit is contained in:
parent
3255ea770e
commit
a78f57db7a
2 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,6 @@ i. e. the text between the end of the "!echo" and the end of the whole message.
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
- [ ] implement !restart and add an easier way to run bots
|
- [ ] implement !restart and add an easier way to run bots
|
||||||
- [ ] untruncate LiveMessage-s
|
|
||||||
- [ ] config file support for bots, used by default
|
- [ ] config file support for bots, used by default
|
||||||
- [ ] package in a distutils-compatible way (users should be able to install
|
- [ ] package in a distutils-compatible way (users should be able to install
|
||||||
yaboli using `pip install git+https://github.com/Garmelon/yaboli`)
|
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
|
- [ ] write examples
|
||||||
- [x] implement !uptime for proper botrulez conformity
|
- [x] implement !uptime for proper botrulez conformity
|
||||||
- [x] implement !kill
|
- [x] implement !kill
|
||||||
|
- [x] untruncate LiveMessage-s
|
||||||
|
|
|
||||||
|
|
@ -166,5 +166,8 @@ class LiveMessage(Message):
|
||||||
async def reply(self, content: str) -> "LiveMessage":
|
async def reply(self, content: str) -> "LiveMessage":
|
||||||
return await self.room.send(content, parent_id=self.message_id)
|
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"]:
|
async def before(self, amount: int) -> List["LiveMessage"]:
|
||||||
return await self.room.log(amount, before_id=self.message_id)
|
return await self.room.log(amount, before_id=self.message_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue