From 2b97aeedff3bf511b03a26b3aa0fd6d039fa1ccb Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 26 Jun 2024 16:20:53 -0700 Subject: [PATCH] cleanup --- bbstools.py | 8 -------- mesh_bot.py | 6 ++++++ pong_bot.py | 0 3 files changed, 6 insertions(+), 8 deletions(-) mode change 100644 => 100755 mesh_bot.py mode change 100644 => 100755 pong_bot.py diff --git a/bbstools.py b/bbstools.py index 19fd0dd..cd405d8 100644 --- a/bbstools.py +++ b/bbstools.py @@ -1,22 +1,14 @@ # helper functions for various BBS messaging tasks # K7MHI Kelly Keeton 2024 -from dadjokes import Dadjoke # pip install dadjokes import pickle # pip install pickle import os - trap_list_bbs = ("bbslist", "bbspost", "bbsread", "bbsdelete", "bbshelp") # global message list, later we will use a database on disk bbs_messages = [] - -def tell_joke(): - # tell a dad joke, does it need an explanationn :) - dadjoke = Dadjoke() - return dadjoke.joke - def load_bbsdb(): global bbs_messages # load the bbs messages from the database file diff --git a/mesh_bot.py b/mesh_bot.py old mode 100644 new mode 100755 index e34f060..5c248db --- a/mesh_bot.py +++ b/mesh_bot.py @@ -9,6 +9,7 @@ import meshtastic.serial_interface #pip install meshtastic import meshtastic.tcp_interface import meshtastic.ble_interface from datetime import datetime +from dadjokes import Dadjoke # pip install dadjokes from solarconditions import * # from the spudgunman/meshing-around repo from locationdata import * # from the spudgunman/meshing-around repo @@ -235,6 +236,11 @@ def messageTrap(msg): return True return False +def tell_joke(): + # tell a dad joke, does it need an explanationn :) + dadjoke = Dadjoke() + return dadjoke.joke + def decimal_to_hex(decimal_number): return f"!{decimal_number:08x}" diff --git a/pong_bot.py b/pong_bot.py old mode 100644 new mode 100755