[][src]Module dishub::ops::start_daemon

This module contains the functions used only by the start_daemon subsystem.

The flow of the start_daemon subsystem is as follows:

Options::parse()
|> ops::start_daemon::verify()
|> ops::AppTokens::read()

Then, repeatedly

ops::Feed::read()
|> ops::start_daemon::feeds_filter()
|> ops::Feed::poll()
|> ops::start_daemon::post_text()
|> ops::start_daemon::send_messages()
|> ops::Feed::write()

Functions

feeds_filter

A filter function to use upon feeds to be polled.

post_text

Create a Discord message body from an event.

send_messages

Post the specified messages to a Discord channel.

verify

Verify if, given the current configuration, it's permitted to continue with the subsequent steps of the start_daemon subsystem.