aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-22 14:01:16 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:26 -0800
commitae99c2d7237021e2abb20d4b41a24e0b73028519 (patch)
tree4c4a2a4d954a51148890d5bf589c938f24633f28 /config.py
parent75b88bc06d354df64c12497330f124392fa7fc57 (diff)
downloadswarm2fediverse-ae99c2d7237021e2abb20d4b41a24e0b73028519.tar.gz
bot: support Mastodon OAuth2 login
test callback test mastodon callback test callback clean customwebhook example bot: test oauth login test callback url test callback
Diffstat (limited to 'config.py')
-rw-r--r--config.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/config.py b/config.py
index a412784..7ae0c21 100644
--- a/config.py
+++ b/config.py
@@ -20,7 +20,7 @@ DEFAULT_TOOT_VISIBILITY = "private"
20 20
21MEDIA_GROUP_TIMEOUT = 3 21MEDIA_GROUP_TIMEOUT = 3
22 22
23WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(5) 23FEDI_LOGIN, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(6)
24 24
25MAIN_MENU = ReplyKeyboardMarkup([ 25MAIN_MENU = ReplyKeyboardMarkup([
26 [KeyboardButton(text="Check-in here", request_location=True)], 26 [KeyboardButton(text="Check-in here", request_location=True)],
@@ -42,3 +42,11 @@ class MsgDict(TypedDict):
42 42
43KEY_TOOT_STATUS_ID = "toot_status_id" 43KEY_TOOT_STATUS_ID = "toot_status_id"
44KEY_TOOT_STATUS_CONTENT = "toot_status_content" 44KEY_TOOT_STATUS_CONTENT = "toot_status_content"
45
46MASTODON_CLIENT_ID_FILE = "mastodon.client_id"
47
48TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook"
49HEALTHCHECK_URL = "/checkinbot/healthcheck"
50FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback"
51BOT_DOMAIN = "https://zjw.social"
52BOT_PORT = 30010
Powered by cgit v1.2.3 (git 2.41.0)