From c30cba1bb04945a8000c6089d5dcd376e08b2133 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 00:35:21 -0800 Subject: remove outdated config --- config.ini.example | 6 ------ config.py | 9 --------- mastodon.client_id | 2 -- 3 files changed, 17 deletions(-) delete mode 100644 mastodon.client_id diff --git a/config.ini.example b/config.ini.example index 4c29644..2efd6d5 100644 --- a/config.ini.example +++ b/config.ini.example @@ -1,9 +1,3 @@ [DEFAULT] BOT_TOKEN = FOURSQUARE_API_KEY = - -[TOOT] -CLIENT_ID = -CLIENT_SECRET = -API_BASE_URL = https://mastodon.social -ACCESS_TOKEN = diff --git a/config.py b/config.py index 9e72598..d5455a3 100644 --- a/config.py +++ b/config.py @@ -1,5 +1,3 @@ -# https://docs.python.org/3/library/configparser.html - from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton from prompt.string import * from typing import TypedDict @@ -11,11 +9,6 @@ config.read("config.ini") BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] -TOOT_API_BASE_URL = config["TOOT"]["API_BASE_URL"] -TOOT_CLIENT_ID = config["TOOT"]["CLIENT_ID"] -TOOT_CLIENT_SECRET = config["TOOT"]["CLIENT_SECRET"] -TOOT_ACCESS_TOKEN = config["TOOT"]["ACCESS_TOKEN"] - MEDIA_GROUP_TIMEOUT = 3 @@ -42,8 +35,6 @@ class MsgDict(TypedDict): KEY_TOOT_STATUS_ID = "toot_status_id" KEY_TOOT_STATUS_CONTENT = "toot_status_content" -MASTODON_CLIENT_ID_FILE = "mastodon.client_id" - TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" HEALTHCHECK_URL = "/checkinbot/healthcheck" FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" diff --git a/mastodon.client_id b/mastodon.client_id deleted file mode 100644 index fbddf72..0000000 --- a/mastodon.client_id +++ /dev/null @@ -1,2 +0,0 @@ -wQwT0rHSiGbwet58B2QXFd1-vYvgCBQXjEcjt36UPLc -szIuZqxZsS-XJtLQZLv1_YgClUtUywHRBngbeb9zNXA \ No newline at end of file -- cgit v1.2.3