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)
|
updater = Updater(token=config.api_key)
|
||||||
dispatcher = updater.dispatcher
|
dispatcher = updater.dispatcher
|
||||||
|
|
||||||
dispatcher.add_handler(CommandHandler('cursed', lambda x, y, z:
|
dispatcher.add_handler(CommandHandler('hmmm', lambda x, y, args:
|
||||||
cursed(x, y, z, "CursedImages"),
|
cursed(x, y, args, "hmmm"),
|
||||||
pass_args=True))
|
pass_args=True))
|
||||||
dispatcher.add_handler(CommandHandler('hmmmm', lambda x, y, z:
|
dispatcher.add_handler(CommandHandler('cursed', lambda x, y, args:
|
||||||
cursed(x, y, z, "hmmm"),
|
cursed(x, y, args, "CursedImages"),
|
||||||
pass_args=True))
|
pass_args=True))
|
||||||
updater.start_polling()
|
updater.start_polling()
|
||||||
|
|
Loading…
Reference in New Issue