Correct when to start checking reused words
This commit is contained in:
parent
ed3892fe5f
commit
cae4f1ccdc
|
@ -75,15 +75,12 @@ class Games(commands.Cog):
|
||||||
if last_letter in ("ん", "ン"):
|
if last_letter in ("ん", "ン"):
|
||||||
break
|
break
|
||||||
# Cannot reuuse words; though make sure this doesn't get caught on the very first usage
|
# Cannot reuuse words; though make sure this doesn't get caught on the very first usage
|
||||||
if last_word in words_used and len(words_used) > 1:
|
if last_word in words_used and len(words_used) >= 1:
|
||||||
break
|
break
|
||||||
|
|
||||||
# If we're here, then the last letter used was valid
|
# If we're here, then the last letter used was valid
|
||||||
words_used.append(last_word)
|
words_used.append(last_word)
|
||||||
await message.add_reaction("✅")
|
await message.add_reaction("✅")
|
||||||
await ctx.send(
|
|
||||||
f"{words_used} - {last_letter} - {last_author} - {last_word}"
|
|
||||||
)
|
|
||||||
message = await ctx.bot.wait_for("message", check=check)
|
message = await ctx.bot.wait_for("message", check=check)
|
||||||
|
|
||||||
# If we're here, game over, someone messed up
|
# If we're here, game over, someone messed up
|
||||||
|
|
Loading…
Reference in a new issue