mirror of
https://gitlab.jonasled.de/jonasled/discordbot
synced 2024-06-27 04:28:18 +02:00
more images for hangman
This commit is contained in:
parent
63fe147695
commit
70c22e46a1
2
bot.py
2
bot.py
|
@ -114,7 +114,7 @@ async def on_message(message): # this will run on every message
|
|||
await hangmanMessages[str(result[1])].edit(content=generateHangmanMessage(word, right, wrong) + "\n\ngame finished")
|
||||
dbcursor.execute("DELETE FROM hangman WHERE id=?", [result[0]])
|
||||
dbconnection.commit()
|
||||
elif(len(wrong.split(";")) >= 6):
|
||||
elif(len(wrong.split(";")) >= 11):
|
||||
await hangmanMessages[str(result[1])].edit(content=generateHangmanMessage(word, right, wrong) + "\n\ngame lost")
|
||||
dbcursor.execute("DELETE FROM hangman WHERE id=?", [result[0]])
|
||||
dbconnection.commit()
|
||||
|
|
34
hangman.py
34
hangman.py
|
@ -1,4 +1,38 @@
|
|||
hangman = ['''
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
''','''
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
=========''','''
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
=========''','''
|
||||
+---
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
=========''','''
|
||||
+---+
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
=========''','''
|
||||
+---+
|
||||
| |
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue