Fix lambda parameter, command name
This commit is contained in:
parent
5b0b4821dd
commit
f697816b86
8
bot.py
8
bot.py
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue