minor fixes
This commit is contained in:
parent
02cc5956ef
commit
d506dbb4bb
@ -14,7 +14,7 @@ from discord.ext import commands
|
||||
|
||||
bot = commands.Bot(command_prefix='$', help_command=None)
|
||||
|
||||
min_time_player= timedelta(seconds=1) # in random/queue games, cooldown time between plays
|
||||
min_time_player= timedelta(seconds=1) # in random games, cooldown time between plays
|
||||
time_to_skip= timedelta(days=1) # in queue games, how much time to wait for the next move
|
||||
min_players = 2
|
||||
|
||||
@ -35,13 +35,12 @@ format="%Y_%m_%d_%H_%M_%S_%f"
|
||||
|
||||
@bot.command()
|
||||
async def help(ctx):
|
||||
print(ctx.message.content)
|
||||
await ctx.send(
|
||||
'$help : shows this help\n\n'+
|
||||
|
||||
'$join : join the game in this channel\n'+
|
||||
'$leave: leave the game in this channel\n'+
|
||||
'$play <move>: play a move. For example, `$play Q16`\n'+
|
||||
'$play <move>: play a move. For example, `$play Q16`. Passing is not implemented!\n'+
|
||||
'$edit <move>: if you make a mistake in your move, you have 5 minutes to correct it with this command\n\n'+
|
||||
|
||||
'$sgf: get the sgf file of the game\n'+
|
||||
@ -49,7 +48,7 @@ async def help(ctx):
|
||||
'$queue: get the queue of players\n\n'+
|
||||
|
||||
'$newgame <queue/random>: starts a game in this channel (admin only!)\n'+
|
||||
'$resign <B/W>: resigns the game in this channel (admin only!)'
|
||||
'$resign <B/W>: resigns the game in this channel, and returns its sgf file (admin only!)'
|
||||
)
|
||||
# ctx has guild, message, author, send, and channel (?)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
[]
|
||||
[(562649462451863565, 'queue', [], [], [477895596141707264]), (881984021192671242, 'random', [286260353594294273, 477895596141707264, 145294584077877249, 477895596141707264, 219167818665558017, 286260353594294273, 145294584077877249, 477895596141707264, 286260353594294273, 477895596141707264, 219167818665558017, 303594321431625738, 477895596141707264, 286260353594294273, 417845944336384020], ['2021_08_30_21_31_07_461876', '2021_08_30_21_31_26_306298', '2021_08_30_21_35_27_424446', '2021_08_30_21_39_09_372781', '2021_08_30_21_40_34_475670', '2021_08_30_21_41_00_375606', '2021_08_30_21_41_13_119382', '2021_08_30_21_46_07_024481', '2021_08_30_21_46_26_836852', '2021_08_30_21_47_41_010088', '2021_08_30_21_49_19_847960', '2021_08_30_21_50_45_118229', '2021_08_30_22_11_51_306111', '2021_08_30_22_19_23_495322', '2021_08_30_22_29_07_751700'], [])]
|
Loading…
x
Reference in New Issue
Block a user