1
0
Fork 0
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:
Jonas Leder 2020-10-08 11:22:31 +02:00
parent 63fe147695
commit 70c22e46a1
2 changed files with 35 additions and 1 deletions

2
bot.py
View file

@ -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()

View file

@ -1,4 +1,38 @@
hangman = ['''
''','''
=========''','''
|
|
|
|
|
=========''','''
+---
|
|
|
|
|
=========''','''
+---+
|
|
|
|
|
=========''','''
+---+
| |
|