echo_bot: Remove chain_length command
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
488c254523
commit
be5df8658b
2 changed files with 1 additions and 12 deletions
|
@ -6,7 +6,7 @@ Version XXX:
|
|||
* Added:
|
||||
- Heartbeat messages. Signal other devices we're still active after some
|
||||
amount of messages. Stop raising exceptions when there is no payload.
|
||||
- Commands to echo_bot. (verbose, error, chain_length)
|
||||
- Commands to echo_bot. (verbose, error)
|
||||
Version 0.5.0:
|
||||
2021-07-12 Maxime “pep” Buquet <pep@bouah.net>
|
||||
* Added:
|
||||
|
|
|
@ -90,8 +90,6 @@ class EchoBot(ClientXMPP):
|
|||
await self.cmd_verbose(mto, mtype)
|
||||
elif cmd == 'error':
|
||||
await self.cmd_error(mto, mtype)
|
||||
elif cmd == 'chain_length':
|
||||
await self.cmd_chain_length(mto, mtype)
|
||||
|
||||
return None
|
||||
|
||||
|
@ -114,15 +112,6 @@ class EchoBot(ClientXMPP):
|
|||
body = '''Debug level set to 'error'.'''
|
||||
return await self.encrypted_reply(mto, mtype, body)
|
||||
|
||||
async def cmd_chain_length(self, mto: JID, mtype: str) -> None:
|
||||
chain_length = await self['xep_0384']._chain_lengths(mto)
|
||||
should_heartbeat = await self['xep_0384'].should_heartbeat(mto)
|
||||
body = (
|
||||
'lengths: %r\n' % chain_length +
|
||||
'should heartbeat: %r' % should_heartbeat
|
||||
)
|
||||
return await self.encrypted_reply(mto, mtype, body)
|
||||
|
||||
def message_handler(self, msg: Message) -> None:
|
||||
asyncio.ensure_future(self.message(msg))
|
||||
|
||||
|
|
Loading…
Reference in a new issue