Fix lambda parameter, command name

This commit is contained in:
Ceda EI 2019-04-01 15:39:59 +05:30
parent 5b0b4821dd
commit f697816b86
1 changed files with 4 additions and 4 deletions

8
bot.py
View File

@ -32,10 +32,10 @@ def cursed(bot, update, args, subreddit):
updater = Updater(token=config.api_key)
dispatcher = updater.dispatcher
dispatcher.add_handler(CommandHandler('cursed', lambda x, y, z:
cursed(x, y, z, "CursedImages"),
dispatcher.add_handler(CommandHandler('hmmm', lambda x, y, args:
cursed(x, y, args, "hmmm"),
pass_args=True))
dispatcher.add_handler(CommandHandler('hmmmm', lambda x, y, z:
cursed(x, y, z, "hmmm"),
dispatcher.add_handler(CommandHandler('cursed', lambda x, y, args:
cursed(x, y, args, "CursedImages"),
pass_args=True))
updater.start_polling()