#Join team battle tournament wit BOT

4 messages · Page 1 of 1 (latest)

silk adder
#

Am I missing something obvious? According to the API documentation, I can join a team battle tournament by sending the team I want to join. But somehow this is always ignored.

try:
    async with self.lichess_session.post('/api/tournament/kuchY34k/join',
                                         data={'team': 'DarkOnTeams'}) as response:
        print(await response.text())
        response.raise_for_status()
except aiohttp.ClientResponseError as e:
        print(e)

I receive:

{"error":"Missing team"}
400, message='Bad Request', url='https://lichess.org/api/tournament/kuchY34k/join'
hoary sable
#

that's the team name

#

try that