-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLadder.py
More file actions
25 lines (20 loc) · 870 Bytes
/
Ladder.py
File metadata and controls
25 lines (20 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# use this file to challenge the bot on the official showdown server.
# make sure you have PokeBot downloaded and poke-env in the virtual environment
from PokeBot import PokeBot
from poke_env.player_configuration import PlayerConfiguration
from poke_env.server_configuration import ShowdownServerConfiguration
import asyncio
async def main():
# fill in the account details to the account you want the bot to log into below
username = ""
password = ""
# fill in with how many games you want the bot to play
games = 0
# creates the bot with the given username and password
player = PokeBot(
player_configuration=PlayerConfiguration(username,password),
server_configuration=ShowdownServerConfiguration,
)
await player.ladder(games)
if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(main())