Skip to content

Commit

Permalink
fix des rolls pour les mj
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-sabouret committed Apr 30, 2024
1 parent c9cd1e7 commit 702a479
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lgrez/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__author__ = "Loïc Simon, Tom Lacoma"
__license__ = "MIT"
__copyright__ = "Copyright 2020 - 2022 Loïc Simon & Tom Lacoma - Club BD-Jeux × GRIs – ESPCI Paris - PSL"
__version__ = "4.0.7"
__version__ = "4.0.8"
__all__ = ["LGBot"]


Expand Down
9 changes: 6 additions & 3 deletions lgrez/features/annexe.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ async def roll(journey: DiscordJourney, *, pattern: str):
- ``/roll vivant`` -> choisit un joueur vivant
"""
global next_roll
moi = Joueur.from_member(journey.member)


inp = pattern.lower()
# Rolls spéciaux
result = None
Expand All @@ -60,7 +59,11 @@ async def roll(journey: DiscordJourney, *, pattern: str):
elif inp in ["taverne", "tavernier"]:
result = random.choice(["Rôle choisi", "Vrai rôle", "Rôle random"])
elif inp in ["loup", "méchants", "nécro", "necromants", "nécromancien", "nécromanciens", "loups", "meute"]:
result = moi
if "mj" not in journey.member.top_role.name.lower():
moi = Joueur.from_member(journey.member)
result = moi
else :
result="c'est juste la pour troll les joueurs"

if result:
if next_roll is not None:
Expand Down

0 comments on commit 702a479

Please sign in to comment.