diff options
author | clarkzjw <[email protected]> | 2023-02-24 21:08:59 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-28 15:58:02 -0800 |
commit | 353b83d415061bff2881cbe324273409740be64c (patch) | |
tree | 420fa402e7eda3425fd69b24959cffb0b2cc5039 /config.py | |
parent | 0041eb4f9893687565e444be9d50648f49aa4d91 (diff) | |
download | swarm2fediverse-feature/delayed_checkin.tar.gz |
bot: implement delayed checkin, (kind of), some TODO leftfeature/delayed_checkin
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -18,7 +18,11 @@ BOT_PORT = int(config["API"]["BOT_PORT"]) | |||
18 | 18 | ||
19 | MEDIA_GROUP_TIMEOUT = 3 | 19 | MEDIA_GROUP_TIMEOUT = 3 |
20 | 20 | ||
21 | FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7) | 21 | FEDI_LOGIN, \ |
22 | WAIT_VISIBILITY, \ | ||
23 | DELAYED_CHECKIN, \ | ||
24 | WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, \ | ||
25 | ADD_MEDIA, ADD_COMMENT = range(8) | ||
22 | 26 | ||
23 | MAIN_MENU = ReplyKeyboardMarkup([ | 27 | MAIN_MENU = ReplyKeyboardMarkup([ |
24 | [KeyboardButton(text="Check-in here", request_location=True)], | 28 | [KeyboardButton(text="Check-in here", request_location=True)], |
@@ -46,5 +50,10 @@ class MsgDict(TypedDict): | |||
46 | 50 | ||
47 | KEY_TOOT_STATUS_ID = "toot_status_id" | 51 | KEY_TOOT_STATUS_ID = "toot_status_id" |
48 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" | 52 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" |
53 | KEY_IS_SCHEDULED_TOOT = "is_scheduled_toot" | ||
49 | 54 | ||
50 | BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] | 55 | # TODO: |
56 | # use the first scope as default | ||
57 | # if user set delayed post, ask user consent and request OAuth token again | ||
58 | # DEFAULT_BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] | ||
59 | BOT_SCOPE = ['read:accounts', 'read:statuses', 'write:media', 'write:statuses'] | ||