diff options
author | clarkzjw <[email protected]> | 2023-02-23 00:35:21 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-23 12:07:32 -0800 |
commit | c30cba1bb04945a8000c6089d5dcd376e08b2133 (patch) | |
tree | 4454806c521cfd2f8adee3f4d9bb312212011cd0 | |
parent | adb574ab528fbc4401fb7cd50b8748d1fb529450 (diff) | |
download | swarm2fediverse-c30cba1bb04945a8000c6089d5dcd376e08b2133.tar.gz |
remove outdated config
-rw-r--r-- | config.ini.example | 6 | ||||
-rw-r--r-- | config.py | 9 | ||||
-rw-r--r-- | mastodon.client_id | 2 |
3 files changed, 0 insertions, 17 deletions
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 @@ | |||
1 | [DEFAULT] | 1 | [DEFAULT] |
2 | BOT_TOKEN = | 2 | BOT_TOKEN = |
3 | FOURSQUARE_API_KEY = | 3 | FOURSQUARE_API_KEY = |
4 | |||
5 | [TOOT] | ||
6 | CLIENT_ID = | ||
7 | CLIENT_SECRET = | ||
8 | API_BASE_URL = https://mastodon.social | ||
9 | ACCESS_TOKEN = | ||
@@ -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" |
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 @@ | |||
1 | wQwT0rHSiGbwet58B2QXFd1-vYvgCBQXjEcjt36UPLc | ||
2 | szIuZqxZsS-XJtLQZLv1_YgClUtUywHRBngbeb9zNXA \ No newline at end of file | ||