aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-22 17:35:28 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:32 -0800
commitb935ae39c533bfdee7d052acdf939b68833a882a (patch)
tree4b744eb26eee050e02b1e1148ae2fd7fad5dc7a3 /command.py
parentd469f16670df2d1748a6377d1bebe9b730dc25be (diff)
downloadswarm2fediverse-b935ae39c533bfdee7d052acdf939b68833a882a.tar.gz
bot: test peewee sqlite3
Diffstat (limited to 'command.py')
-rw-r--r--command.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/command.py b/command.py
index 837d3cd..e45a2e2 100644
--- a/command.py
+++ b/command.py
@@ -15,13 +15,6 @@ async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> i
15 15
16 16
17async def fedi_login_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: 17async def fedi_login_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int:
18 # generate fedi OAuth login url
19
20 # mastodon_client = Mastodon(client_id=MASTODON_CLIENT_ID_FILE, api_base_url=TOOT_API_BASE_URL)
21 # oauth_url = mastodon_client.auth_request_url(redirect_uris="{}/{}".format(BOT_DOMAIN, FEDI_LOGIN_CALLBACK_URL),
22 # scopes=['write:media', 'write:statuses'])
23 #
24 # await update.message.reply_text(PROMPT_FEDI_LOGIN.format(oauth_url), parse_mode=ParseMode.MARKDOWN)
25 await update.message.reply_text(PROMPT_FEDI_LOGIN_WHERE_IS_INSTANCE, parse_mode=ParseMode.MARKDOWN) 18 await update.message.reply_text(PROMPT_FEDI_LOGIN_WHERE_IS_INSTANCE, parse_mode=ParseMode.MARKDOWN)
26 return FEDI_LOGIN 19 return FEDI_LOGIN
27 20
Powered by cgit v1.2.3 (git 2.41.0)