diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -1,5 +1,3 @@ | |||
1 | # https://docs.python.org/3/library/configparser.html | ||
2 | |||
3 | from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton | 1 | from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton |
4 | from prompt.string import * | 2 | from prompt.string import * |
5 | from typing import TypedDict | 3 | from typing import TypedDict |
@@ -11,11 +9,6 @@ config.read("config.ini") | |||
11 | BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] | 9 | BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] |
12 | FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] | 10 | FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] |
13 | 11 | ||
14 | TOOT_API_BASE_URL = config["TOOT"]["API_BASE_URL"] | ||
15 | TOOT_CLIENT_ID = config["TOOT"]["CLIENT_ID"] | ||
16 | TOOT_CLIENT_SECRET = config["TOOT"]["CLIENT_SECRET"] | ||
17 | TOOT_ACCESS_TOKEN = config["TOOT"]["ACCESS_TOKEN"] | ||
18 | |||
19 | 12 | ||
20 | MEDIA_GROUP_TIMEOUT = 3 | 13 | MEDIA_GROUP_TIMEOUT = 3 |
21 | 14 | ||
@@ -42,8 +35,6 @@ class MsgDict(TypedDict): | |||
42 | KEY_TOOT_STATUS_ID = "toot_status_id" | 35 | KEY_TOOT_STATUS_ID = "toot_status_id" |
43 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" | 36 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" |
44 | 37 | ||
45 | MASTODON_CLIENT_ID_FILE = "mastodon.client_id" | ||
46 | |||
47 | TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" | 38 | TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" |
48 | HEALTHCHECK_URL = "/checkinbot/healthcheck" | 39 | HEALTHCHECK_URL = "/checkinbot/healthcheck" |
49 | FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" | 40 | FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" |