📰 Talkytrend#

User Guide#

Refer to TalkyTrend for more information.

Plugin Reference#

class tt.plugins.default_plugins.talkytrend_plugin.TalkyTrendPlugin[source]#

Initialize the TalkyTrendPlugin class by setting the ‘enabled’ attribute to the value of ‘settings.talkytrend_enabled’. If ‘enabled’ is True, instantiate a TalkyTrend object.

__init__()[source]#

Initialize the TalkyTrendPlugin class by setting the ‘enabled’ attribute to the value of ‘settings.talkytrend_enabled’. If ‘enabled’ is True, instantiate a TalkyTrend object.

async start()[source]#

Asynchronously starts the plugin if it is enabled.

This function checks if the plugin is enabled by checking the value of the enabled attribute. If the plugin is enabled, it calls the plugin_notify_cron_task method with the user_name parameter set to “talky_monitor” and the function parameter set to the monitor method of the trend object.

This function is called when the plugin is started.

Parameters:

None

Returns:

None

async handle_message(msg)[source]#

Handles incoming messages and routes them to the appropriate function.

Parameters:

msg (str) – The message received by the plugin.

Returns:

If the message should not be handled. None: If the message is a command and the corresponding function is executed successfully. None: If the message is not a command.

Return type:

None

Supported functions are:

  • get_talkytrend_info()

  • fetch_signal()

  • fetch_feed()

  • get_tv()

  • scrape_page()