From 5dfe6449cbe66e81e493d5bed72733260a132cc6 Mon Sep 17 00:00:00 2001 From: WhatDidYouExpect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Sun, 5 Jan 2025 23:29:57 +0100 Subject: [PATCH] Create config.py --- config.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config.py diff --git a/config.py b/config.py new file mode 100644 index 0000000..f0aaac6 --- /dev/null +++ b/config.py @@ -0,0 +1,26 @@ +import os +from dotenv import load_dotenv + +load_dotenv() +VERSION_URL = "https://goober.whatdidyouexpect.eu" +UPDATE_URL = VERSION_URL+"/latest_version.json" +LOCAL_VERSION_FILE = "current_version.txt" +TOKEN = os.getenv("DISCORD_BOT_TOKEN") +PREFIX = os.getenv("BOT_PREFIX") +hourlyspeak = int(os.getenv("hourlyspeak")) +PING_LINE = os.getenv("PING_LINE") +random_talk_channel_id1 = int(os.getenv("rnd_talk_channel1")) +random_talk_channel_id2 = int(os.getenv("rnd_talk_channel2")) +cooldown_time = os.getenv("cooldown") +splashtext = os.getenv("splashtext") +ownerid = int(os.getenv("ownerid")) +showmemenabled = os.getenv("showmemenabled") +BLACKLISTED_USERS = os.getenv("BLACKLISTED_USERS", "").split(",") +USERTRAIN_ENABLED = os.getenv("USERTRAIN_ENABLED", "true").lower() == "true" +NAME = os.getenv("NAME") +last_random_talk_time = 0 +MEMORY_FILE = "memory.json" +DEFAULT_DATASET_FILE = "defaultdataset.json" +MEMORY_LOADED_FILE = "MEMORY_LOADED" +ALIVEPING = os.getenv("ALIVEPING") +song = os.getenv("song")