π Helper#
- class tt.plugins.default_plugins.helper_plugin.HelperPlugin[source]#
Helper Plugin Provide multiple function such as giving the list of available command, network ping or restarting the bot
network ping is using Ping3 lib more info: kyan001/ping3
Initialize the object.
- This function is the constructor of the class.
It initializes the object by calling the parent classβs constructor using the super() method.
It also sets the enabled attribute to the value of the helper_enabled setting.
If the enabled attribute is True, it sets the host_ip attribute to a formatted string that includes the result of the get_host_ip() method. It also sets the help_message attribute to the value of the helper_commands setting.
- name = 'helper_plugin'#
- __init__()[source]#
Initialize the object.
- This function is the constructor of the class.
It initializes the object by calling the parent classβs constructor using the super() method.
It also sets the enabled attribute to the value of the helper_enabled setting.
If the enabled attribute is True, it sets the host_ip attribute to a formatted string that includes the result of the get_host_ip() method. It also sets the help_message attribute to the value of the helper_commands setting.
- async get_helper_network() str[source]#
/networkcommand to retrieve the network ping latency and the botβs public IP address