Commit 2d209be8 authored by Steve Goering's avatar Steve Goering

add random art

parent 859e9c59
......@@ -107,8 +107,13 @@ def get_keys_startswith(dictionary, searchkey):
return needed_keys
def get_random_msg():
os.system("wget -qO - http://www.asciiartfarts.com/random.cgi | sed -n '/<pre>/,/<\/pre>/p' | sed -n '/<table*/,/<\/table>/p' | sed '1d' | sed '$d'")
def main(args):
lInfo("read config")
get_random_msg()
# read config file
try:
config = json.loads(read_file(os.path.dirname(os.path.realpath(__file__)) + "/config.json"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment