Add bot_response_bytes
This commit is contained in:
parent
002f1eecf8
commit
6a2a7503cb
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ class API:
|
||||||
"""Prefix message with ZWSP and convert from unicode to bytestring."""
|
"""Prefix message with ZWSP and convert from unicode to bytestring."""
|
||||||
self.msg(recipient, ('\u200b' + message).encode('utf-8'))
|
self.msg(recipient, ('\u200b' + message).encode('utf-8'))
|
||||||
|
|
||||||
|
def bot_response_bytes(self, recipient, message):
|
||||||
|
"""Prefix message (bytestring) with ZWSP"""
|
||||||
|
self.msg(recipient, '\u200b'.encode('utf-8') + message)
|
||||||
|
|
||||||
def nick(self, nick):
|
def nick(self, nick):
|
||||||
"""Send a NICK command and update the internal nick tracking state"""
|
"""Send a NICK command and update the internal nick tracking state"""
|
||||||
with self.serverthread_object.nick_lock:
|
with self.serverthread_object.nick_lock:
|
||||||
|
|
Loading…
Reference in a new issue