From 5a1d9b570053ffa29c0a5f449025957f5c3af02a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 11 Jul 2024 00:43:30 -0700 Subject: [PATCH] Update pong_bot.py --- pong_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pong_bot.py b/pong_bot.py index d06df51..48bac9c 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -21,6 +21,8 @@ config_file = "config.ini" if not os.path.exists(config_file): config['interface'] = {'type': 'serial', 'port': "/dev/ttyACM0", 'hostname': '', 'mac': ''} + config['general'] = {'respond_by_dm_only': 'True', 'defaultChannel': '0', 'motd': 'Thanks for using MeshBOT! Have a good day!', + 'welcome_message': 'MeshBot, here for you like a friend who is not. Try sending: ping @foo or, cmd'} config.write(open(config_file, 'w')) print (f"System: Config file created, please edit {config_file} or review the config.template") elif os.path.exists(config_file):