cosmetics; make clear that the first hashtag is a special one

This commit is contained in:
Tomáš Mládek 2019-05-22 12:11:52 +02:00
parent 4f0f6cfc59
commit 4d74e08b00

View file

@ -287,10 +287,12 @@ class DelojzaBot:
message.reply_text(reply)
filenames = download_fn(urls, out_path, message.date, message, audio=audio, filename=filename)
tumblr_ids = []
if hashtags[0] in ('TUMBLR', 'TUMBLR_NOW') and self.tumblr_client:
now = hashtags[0] == 'TUMBLR_NOW'
cmd_hashtag = hashtags[0]
tumblr_ids = []
if cmd_hashtag in ('TUMBLR', 'TUMBLR_NOW') and self.tumblr_client:
now = cmd_hashtag == 'TUMBLR_NOW'
reply = '(btw, {})'.format("***FIRING TO TUMBLR RIGHT AWAY***" if now else "queueing to tumblr")
message.reply_text(reply, parse_mode=telegram.ParseMode.MARKDOWN)
for filename in filenames: