diff options
author | clarkzjw <[email protected]> | 2023-02-22 14:01:16 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-23 12:07:26 -0800 |
commit | ae99c2d7237021e2abb20d4b41a24e0b73028519 (patch) | |
tree | 4c4a2a4d954a51148890d5bf589c938f24633f28 /config.py | |
parent | 75b88bc06d354df64c12497330f124392fa7fc57 (diff) | |
download | swarm2fediverse-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.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -20,7 +20,7 @@ DEFAULT_TOOT_VISIBILITY = "private" | |||
20 | 20 | ||
21 | MEDIA_GROUP_TIMEOUT = 3 | 21 | MEDIA_GROUP_TIMEOUT = 3 |
22 | 22 | ||
23 | WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(5) | 23 | FEDI_LOGIN, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(6) |
24 | 24 | ||
25 | MAIN_MENU = ReplyKeyboardMarkup([ | 25 | MAIN_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 | ||
43 | KEY_TOOT_STATUS_ID = "toot_status_id" | 43 | KEY_TOOT_STATUS_ID = "toot_status_id" |
44 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" | 44 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" |
45 | |||
46 | MASTODON_CLIENT_ID_FILE = "mastodon.client_id" | ||
47 | |||
48 | TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" | ||
49 | HEALTHCHECK_URL = "/checkinbot/healthcheck" | ||
50 | FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" | ||
51 | BOT_DOMAIN = "https://zjw.social" | ||
52 | BOT_PORT = 30010 | ||