This commit is contained in:
ddorn 2020-04-26 01:50:06 +02:00
parent e01968efbf
commit a6b2f0d5d9
1 changed files with 5 additions and 5 deletions

View File

@ -1,17 +1,15 @@
#!/bin/python #!/bin/python
import enum
import os import os
import random
import sys import sys
import traceback import traceback
from collections import defaultdict from collections import defaultdict
from operator import attrgetter from operator import attrgetter
from time import sleep from time import sleep
from typing import List, Dict from typing import Dict
import discord import discord
from discord.ext import commands from discord.ext import commands
import random
from discord.ext.commands import Context from discord.ext.commands import Context
from discord.utils import get from discord.utils import get
@ -143,6 +141,8 @@ class Phase:
pass pass
async def next(self, ctx: Context) -> "Phase": async def next(self, ctx: Context) -> "Phase":
if self.NEXT is None:
return None
return self.NEXT(self.tirage) return self.NEXT(self.tirage)
@ -236,7 +236,7 @@ class TiragePhase(Phase):
if team.drawn_problem: if team.drawn_problem:
await ctx.send( await ctx.send(
"Vous avez déjà tiré in problème, merci de l'accepter (`!yes`) " "Vous avez déjà tiré un problème, merci de l'accepter (`!yes`) "
"ou de le refuser (`!no)`." "ou de le refuser (`!no)`."
) )
elif not self.available(problem): elif not self.available(problem):