bot-base/src/backends/IRC/channel.py
Louis Chauvet 29d60f3cb9
Some checks failed
Gitsokyo/bot-base/pipeline/head There was a failure building this commit
Début de backend
2020-06-20 11:17:55 +02:00

13 lines
317 B
Python

from backends import abc
class Channel(abc.Channel):
id: str
async def _send(self, message):
print(f"send: {message}")
print(type(message))
await self.client.send_raw(f"PRIVMSG {self.id} :{message.content}\r\n".encode())
def from_irc_id(self, id):
self.id = id.decode()