Browse Source

fixed cat (fixes #11)

master
Angerstoner 5 years ago
parent
commit
61c647af5e
  1. 8
      schneiderbot.py

8
schneiderbot.py

@ -124,9 +124,8 @@ def help(bot, update):
def sendCat(bot, update):
"""CUTE"""
catfile = cat.getCat();
bot.send_photo(chat_id=update.message.chat_id, photo=open(catfile, 'rb'))
os.remove(catfile)
cat_file = requests.get('http://aws.random.cat/meow').json()['file']
bot.send_photo(chat_id=update.message.chat_id, photo=cat_file)
def sendDog(bot, update):
@ -225,7 +224,8 @@ def simon(bot, update, args):
name = "[Simon](tg://user?id=47438109)"
if len(args) > 0:
name = " ".join(args[0:])
update.message.reply_text("%s, bitte kauf dir einen Hund oder eine Katze, du hast zu viel Zeit" % name)
update.message.reply_text("%s, bitte kauf dir einen Hund oder eine Katze, du hast zu viel Zeit" % name,
parse_mode=ParseMode.MARKDOWN)
def mensa(bot, update, args):

Loading…
Cancel
Save