diff options
Diffstat (limited to 'commands.py')
-rw-r--r-- | commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.py b/commands.py index 916b4ad..5bef7fa 100644 --- a/commands.py +++ b/commands.py @@ -60,7 +60,7 @@ async def shuffle(ctx: commands.Context, channel_size=2): if not members: await answer(ctx, 'error: nobody wants to get shuffeled :(') return False - elif len(members) < channel_size: + if len(members) < channel_size: await answer(ctx, f'error: you are too few people ({len(members)}). Group size is {channel_size}') return False # round up the quotient between the member count and the channel size @@ -104,13 +104,13 @@ async def loop_cycle(ctx, t): @commands.command( help=f'repeat "shuffle" and "stop" <n> (default: {config.DEFAULT_LOOP_COUNT}) times and <t>' -f' (default: {config.DEFAULT_LOOP_TIME}) seconds', + f' (default: {config.DEFAULT_LOOP_TIME}) seconds', aliases=('repeat', 'shuffleloop')) async def loop(ctx: commands.Context, n=config.DEFAULT_LOOP_COUNT, t=config.DEFAULT_LOOP_TIME): try: n, t = int(n), int(t) except ValueError: - await answer(ctx, f'error: expecting positive integer arguments for <n> and <t> (e.g. "loop 5 60" to repeat 5 times)') + await answer(ctx, 'error: expecting positive integer arguments for <n> and <t> (e.g. "loop 5 60" to repeat 5 times)') return await answer(ctx, f'error: repeat shuffling {n} times and each {t} seconds') for _ in range(n): |