Skip to content

Instantly share code, notes, and snippets.

python3 - << 'PYEOF'
code = '''
import os, sys, time, json, random, logging, schedule, requests
from datetime import datetime
CONFIG_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.json")
def load_config():
if not os.path.exists(CONFIG_FILE):
print("config.json not found")