config BotNet class
you can change some config from BotNet
class
Example:
main.py
from pybotnet import BotNet, TelegramEngine
telegram_engine = TelegramEngine(token=TELEGRAM_TOKEN, admin_chat_id=ADMIN_CHAT_ID)
botnet = BotNet(
telegram_engine, # (1)
bot_name="my_pc", # (2)
delay=1.5, # (3)
use_default_scripts=True, # (4)
start_end_notify=True, # (5)
debug=False # (6)
)
botnet.run()
- Positional parameter engine
- Custom name for this instance, like
mac_addres
you can run command just in this instance by bot_name, example:my_pc /who
- sleep in main_loop
- use build in scripts, default is
True
- Send a message to the user when the program is running or stopped, default is
True
- show logs by log level
debug
!, default isFalse