Commit f988e99c authored by root's avatar root

Welcome greetings

parent b4498897
......@@ -103,6 +103,7 @@ class QuizzBot(Bot):
def status(self, update, context):
logging.debug("Got status update message")
new_user = update.message.new_chat_members
update.message.chat.send_message("Welcome! :)")
if (not new_user == None) and (not new_user == []):
for user in new_user:
self.new_user(user)
......@@ -142,7 +143,7 @@ class QuizzBot(Bot):
logging.debug(poll)
for opt in update.message.poll.options:
option = self.get_or_add(opt, poll.id)
logging.debug(option)
logging.debug(option) # TODO Reply to every second anonymus quizzes
"""
Commands
......@@ -182,7 +183,7 @@ class QuizzBot(Bot):
"""
if(update.message.from_user.username in self._admins):
update.message.reply_text("Bot is stopping...")
threading.Thread(target=self.stop, args=(self._db,)).start()
#threading.Thread(target=self.stop, args=(self._db,)).start()
else:
update.message.reply_text("Sry, you are not an admin!")
......@@ -237,6 +238,12 @@ class QuizzBot(Bot):
date = datetime
return date
def kick(self, chat_member):
print() #TODO
def elect_quizmaster(self, chat_member):
print() #TODO
"""
Static
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment