✏️ typo
This commit is contained in:
parent
43701f1a53
commit
0c2088bd68
|
@ -211,7 +211,6 @@ class Tirage(yaml.YAMLObject):
|
|||
]
|
||||
|
||||
msg += f"\n\n**{ROUND_NAMES[round].capitalize()}**:\n"
|
||||
code.interact(local=locals())
|
||||
msg += table.format(*records) + "\n"
|
||||
for team in self.teams:
|
||||
msg += team.details(round)
|
||||
|
@ -605,7 +604,7 @@ async def start_draw(ctx: Context, *teams):
|
|||
await ctx.send(
|
||||
"Nous allons commencer le tirage du premier tour. "
|
||||
"Seuls les capitaines de chaque équipe peuvent désormais écrire ici. "
|
||||
"Merci de d'envoyer seulement ce que est nécessaire et suffusant au "
|
||||
"Merci de d'envoyer seulement ce que est nécessaire et suffisant au "
|
||||
"bon déroulement du tournoi. Vous pouvez à tout moment poser toute question "
|
||||
"si quelque chose n'est pas clair ou ne va pas. \n\n"
|
||||
"Pour plus de détails sur le déroulement du tirgae au sort, le règlement "
|
||||
|
@ -754,7 +753,7 @@ async def show_cmd(ctx: Context, arg: str):
|
|||
await tirage.show(ctx)
|
||||
|
||||
|
||||
@bot.command()
|
||||
@bot.command(name="interrupt")
|
||||
@commands.has_role(CNO_ROLE)
|
||||
async def interrupt_cmd(ctx):
|
||||
await ctx.send(
|
||||
|
@ -764,11 +763,17 @@ async def interrupt_cmd(ctx):
|
|||
)
|
||||
|
||||
# Utility function
|
||||
def _show(o):
|
||||
print(*dir(o), sep="\n")
|
||||
|
||||
code.interact(local={**globals(), **locals()})
|
||||
local = {
|
||||
**globals(),
|
||||
**locals(),
|
||||
"pprint": pprint,
|
||||
"_show": lambda o: print(*dir(o), sep="\n"),
|
||||
"__name__": "__console__",
|
||||
"__doc__": None,
|
||||
}
|
||||
|
||||
code.interact(banner="Ne SURTOUT PAS FAIRE Ctrl+C !\n(TFJM² debugger)", local=local)
|
||||
await ctx.send("Tout va mieux !")
|
||||
|
||||
|
||||
|
|
57
tirages.yaml
57
tirages.yaml
|
@ -1,57 +0,0 @@
|
|||
&id001 !<Tirage>
|
||||
channel: 703310860365594624
|
||||
phase: !!python/object:__main__.TirageOrderPhase
|
||||
name: des tirages
|
||||
order_name: tirage_order
|
||||
reverse: false
|
||||
round: 0
|
||||
tirage: *id001
|
||||
teams:
|
||||
- !<Team>
|
||||
accepted_problems:
|
||||
- null
|
||||
- null
|
||||
drawn_problem: null
|
||||
mention: <@&703923322483900426>
|
||||
name: AAA
|
||||
passage_order:
|
||||
- null
|
||||
- null
|
||||
rejected:
|
||||
- !!set {}
|
||||
- !!set {}
|
||||
tirage_order:
|
||||
- null
|
||||
- null
|
||||
- !<Team>
|
||||
accepted_problems:
|
||||
- null
|
||||
- null
|
||||
drawn_problem: null
|
||||
mention: <@&703923681931296831>
|
||||
name: BBB
|
||||
passage_order:
|
||||
- null
|
||||
- null
|
||||
rejected:
|
||||
- !!set {}
|
||||
- !!set {}
|
||||
tirage_order:
|
||||
- null
|
||||
- null
|
||||
- !<Team>
|
||||
accepted_problems:
|
||||
- null
|
||||
- null
|
||||
drawn_problem: null
|
||||
mention: <@&703923724465733632>
|
||||
name: CCC
|
||||
passage_order:
|
||||
- null
|
||||
- null
|
||||
rejected:
|
||||
- !!set {}
|
||||
- !!set {}
|
||||
tirage_order:
|
||||
- null
|
||||
- null
|
Loading…
Reference in New Issue