original_docstring: Send your moves to the bot
docstring: Send your moves to the bot
docstring_tokens: Send your moves to the bot
code: async def moves(ctx):
      """Send your moves to the bot"""
      if ctx.message.channel.is_private:
          with session_scope() as session:
              row = session.query(Movelist).filter(Movelist.discord_id == ctx.message.author.id).one()
              if not row.eliminated:
                  row.moveset = ctx.message.content[7:]  # Remove "!moves"
                  await bot.say('Moves received! If you wish to change them, please resubmit them in their entirety')
                  #If all players have submitted moves, tell the GM
                  if session.query(Movelist).filter(and_(Movelist.moveset == None), (Movelist.eliminated == False)).count() == 0:
                      await bot.send_message(gm, 'All moves have been submitted')
              else:
                  await bot.say('You have been eliminated so moves have not been recorded')
      else:
          await bot.say('You can only send moves in private!')
code_tokens: async def moves ( ctx ) : if ctx . message . channel . is_private : with session_scope ( ) as session : row = session . query ( Movelist ) . filter ( Movelist . discord_id == ctx . message . author . id ) . one ( ) if not row . eliminated : row . moveset = ctx . message . content [ 7 : ] await bot . say ( 'Moves received! If you wish to change them, please resubmit them in their entirety' ) if session . query ( Movelist ) . filter ( and_ ( Movelist . moveset == None ) , ( Movelist . eliminated == False ) ) . count ( ) == 0 : await bot . send_message ( gm , 'All moves have been submitted' ) else : await bot . say ( 'You have been eliminated so moves have not been recorded' ) else : await bot . say ( 'You can only send moves in private!' )
short_docstring: Send your moves to the bot
short_docstring_tokens: Send your moves to the bot
comment: """Send your moves to the bot"""$SEP$# Remove "!moves"$SEP$#If all players have submitted moves, tell the GM