fmn.sender.irc module

class fmn.sender.irc.IRCClient(*args, **kwargs)[source]

Bases: AioSimpleIRCClient

async connect(*args, **kwargs)[source]

Connect using the underlying connection

async disconnect()[source]
on_900(connection, event)[source]
on_disconnect(connection, event)[source]
on_error(connection, event)[source]
on_loggedin(connection, event)[source]
on_nicknameinuse(connection, event)[source]
on_privnotice(connection, event)[source]

Set the connection as ready in a few seconds.

This is necessary because libera.chat does not always send us the 900 LOGGED_IN response.

We must thus setup a delayed call to flag the connection as ready, and cancel it if the proper response arrives.

See https://github.com/fedora-infra/fmn/issues/884

async privmsg(*args, **kwargs)[source]
class fmn.sender.irc.IRCHandler(*args, **kwargs)[source]

Bases: Handler

property closed

Default closed Future, can be overridden in child classes.

It should be triggered when there is an error and the app should stop.

async handle(message)[source]
async setup()[source]
async stop()[source]