aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-24 21:08:59 -0800
committerclarkzjw <[email protected]>2023-02-28 15:58:02 -0800
commit353b83d415061bff2881cbe324273409740be64c (patch)
tree420fa402e7eda3425fd69b24959cffb0b2cc5039 /config.py
parent0041eb4f9893687565e444be9d50648f49aa4d91 (diff)
downloadswarm2fediverse-353b83d415061bff2881cbe324273409740be64c.tar.gz
bot: implement delayed checkin, (kind of), some TODO leftfeature/delayed_checkin
Diffstat (limited to 'config.py')
-rw-r--r--config.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/config.py b/config.py
index fe69bd9..bff9313 100644
--- a/config.py
+++ b/config.py
@@ -18,7 +18,11 @@ BOT_PORT = int(config["API"]["BOT_PORT"])
18 18
19MEDIA_GROUP_TIMEOUT = 3 19MEDIA_GROUP_TIMEOUT = 3
20 20
21FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7) 21FEDI_LOGIN, \
22 WAIT_VISIBILITY, \
23 DELAYED_CHECKIN, \
24 WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, \
25 ADD_MEDIA, ADD_COMMENT = range(8)
22 26
23MAIN_MENU = ReplyKeyboardMarkup([ 27MAIN_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
47KEY_TOOT_STATUS_ID = "toot_status_id" 51KEY_TOOT_STATUS_ID = "toot_status_id"
48KEY_TOOT_STATUS_CONTENT = "toot_status_content" 52KEY_TOOT_STATUS_CONTENT = "toot_status_content"
53KEY_IS_SCHEDULED_TOOT = "is_scheduled_toot"
49 54
50BOT_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']
59BOT_SCOPE = ['read:accounts', 'read:statuses', 'write:media', 'write:statuses']
Powered by cgit v1.2.3 (git 2.41.0)