mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-12 03:42:55 +02:00
enhance🐝
This commit is contained in:
@@ -9,7 +9,12 @@ import os
|
||||
trap_list_filemon = ("readnews",)
|
||||
|
||||
def read_file(file_monitor_file_path, random_line_only=False):
|
||||
|
||||
try:
|
||||
if not os.path.exists(file_monitor_file_path):
|
||||
logger.warning(f"FileMon: File not found: {file_monitor_file_path}")
|
||||
if file_monitor_file_path == "bee.txt":
|
||||
return "🐝buzz 💐buzz buzz🍯"
|
||||
if random_line_only:
|
||||
# read a random line from the file
|
||||
with open(file_monitor_file_path, 'r') as f:
|
||||
|
||||
@@ -130,6 +130,7 @@ try:
|
||||
whoami_enabled = config['general'].getboolean('whoami', True)
|
||||
dad_jokes_enabled = config['general'].getboolean('DadJokes', False)
|
||||
dad_jokes_emojiJokes = config['general'].getboolean('DadJokesEmoji', False)
|
||||
bee_enabled = config['general'].getboolean('bee', False) # 🐝 off by default undocumented
|
||||
solar_conditions_enabled = config['general'].getboolean('spaceWeather', True)
|
||||
wikipedia_enabled = config['general'].getboolean('wikipedia', False)
|
||||
llm_enabled = config['general'].getboolean('ollama', False) # https://ollama.com
|
||||
|
||||
+4
-1
@@ -99,8 +99,11 @@ else:
|
||||
if dad_jokes_enabled:
|
||||
from modules.games.joke import * # from the spudgunman/meshing-around repo
|
||||
trap_list = trap_list + ("joke",)
|
||||
#trap_list = trap_list + ("🐝",)
|
||||
help_message = help_message + ", joke"
|
||||
|
||||
# Bee Configuration
|
||||
if bee_enabled:
|
||||
trap_list = trap_list + ("🐝",)
|
||||
|
||||
# Wikipedia Search Configuration
|
||||
if wikipedia_enabled:
|
||||
|
||||
Reference in New Issue
Block a user