aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-23 00:35:21 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:32 -0800
commitc30cba1bb04945a8000c6089d5dcd376e08b2133 (patch)
tree4454806c521cfd2f8adee3f4d9bb312212011cd0
parentadb574ab528fbc4401fb7cd50b8748d1fb529450 (diff)
downloadswarm2fediverse-c30cba1bb04945a8000c6089d5dcd376e08b2133.tar.gz
remove outdated config
-rw-r--r--config.ini.example6
-rw-r--r--config.py9
-rw-r--r--mastodon.client_id2
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]
2BOT_TOKEN = 2BOT_TOKEN =
3FOURSQUARE_API_KEY = 3FOURSQUARE_API_KEY =
4
5[TOOT]
6CLIENT_ID =
7CLIENT_SECRET =
8API_BASE_URL = https://mastodon.social
9ACCESS_TOKEN =
diff --git a/config.py b/config.py
index 9e72598..d5455a3 100644
--- a/config.py
+++ b/config.py
@@ -1,5 +1,3 @@
1# https://docs.python.org/3/library/configparser.html
2
3from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton 1from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton
4from prompt.string import * 2from prompt.string import *
5from typing import TypedDict 3from typing import TypedDict
@@ -11,11 +9,6 @@ config.read("config.ini")
11BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] 9BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"]
12FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] 10FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"]
13 11
14TOOT_API_BASE_URL = config["TOOT"]["API_BASE_URL"]
15TOOT_CLIENT_ID = config["TOOT"]["CLIENT_ID"]
16TOOT_CLIENT_SECRET = config["TOOT"]["CLIENT_SECRET"]
17TOOT_ACCESS_TOKEN = config["TOOT"]["ACCESS_TOKEN"]
18
19 12
20MEDIA_GROUP_TIMEOUT = 3 13MEDIA_GROUP_TIMEOUT = 3
21 14
@@ -42,8 +35,6 @@ class MsgDict(TypedDict):
42KEY_TOOT_STATUS_ID = "toot_status_id" 35KEY_TOOT_STATUS_ID = "toot_status_id"
43KEY_TOOT_STATUS_CONTENT = "toot_status_content" 36KEY_TOOT_STATUS_CONTENT = "toot_status_content"
44 37
45MASTODON_CLIENT_ID_FILE = "mastodon.client_id"
46
47TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" 38TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook"
48HEALTHCHECK_URL = "/checkinbot/healthcheck" 39HEALTHCHECK_URL = "/checkinbot/healthcheck"
49FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" 40FEDI_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 @@
1wQwT0rHSiGbwet58B2QXFd1-vYvgCBQXjEcjt36UPLc
2szIuZqxZsS-XJtLQZLv1_YgClUtUywHRBngbeb9zNXA \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)