mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 15:14:18 +00:00
aggiornato a telegramcoso 4.0
This commit is contained in:
parent
968c167185
commit
5a9454de69
1 changed files with 10 additions and 10 deletions
20
main.py
20
main.py
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from telegram.ext import Updater
|
from telegram.ext import Updater, CommandHandler
|
||||||
import filemanager
|
import filemanager
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
@ -356,14 +356,14 @@ def power(bot, update):
|
||||||
else:
|
else:
|
||||||
bot.sendMessage(update.message.chat['id'], "Per usare /power, scrivimi in chat privata a @mifiabot!")
|
bot.sendMessage(update.message.chat['id'], "Per usare /power, scrivimi in chat privata a @mifiabot!")
|
||||||
|
|
||||||
updater.dispatcher.addTelegramCommandHandler('ping', ping)
|
updater.dispatcher.addHandler(CommandHandler('ping', ping))
|
||||||
updater.dispatcher.addTelegramCommandHandler('newgame', newgame)
|
updater.dispatcher.addHandler(CommandHandler('newgame', newgame))
|
||||||
updater.dispatcher.addTelegramCommandHandler('join', join)
|
updater.dispatcher.addHandler(CommandHandler('join', join))
|
||||||
updater.dispatcher.addTelegramCommandHandler('debug', debug)
|
updater.dispatcher.addHandler(CommandHandler('debug', debug))
|
||||||
updater.dispatcher.addTelegramCommandHandler('endjoin', endjoin)
|
updater.dispatcher.addHandler(CommandHandler('endjoin', endjoin))
|
||||||
updater.dispatcher.addTelegramCommandHandler('vote', vote)
|
updater.dispatcher.addHandler(CommandHandler('vote', vote))
|
||||||
updater.dispatcher.addTelegramCommandHandler('endday', endday)
|
updater.dispatcher.addHandler(CommandHandler('endday', endday))
|
||||||
updater.dispatcher.addTelegramCommandHandler('power', power)
|
updater.dispatcher.addHandler(CommandHandler('power', power))
|
||||||
updater.dispatcher.addTelegramCommandHandler('status', status)
|
updater.dispatcher.addHandler(CommandHandler('status', status))
|
||||||
updater.start_polling()
|
updater.start_polling()
|
||||||
updater.idle()
|
updater.idle()
|
||||||
|
|
Loading…
Reference in a new issue