Skip to content

Commit 3d39f71

Browse files
committed
Update README.md with latest changes
1 parent 69cdca4 commit 3d39f71

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Key Features
99
- Entire coverage of the official Clash of Clans API
1010
- Email/password login removes the stress of managing tokens
1111
- Optimised for speed and performance
12+
- Completely customisable cache
1213

1314
Getting Started
1415
================
@@ -40,7 +41,7 @@ This example will get a player with a certain tag, and search for 5 clans with a
4041
import asyncio
4142
4243
client = coc.login('email', 'password')
43-
loop = asyncio.get_event_loop
44+
loop = asyncio.get_event_loop()
4445
4546
player = loop.run_until_complete(client.get_player('tag'))
4647
print(player.name)
@@ -64,14 +65,12 @@ This script will run forever, printing to the terminal whenever someone joins th
6465
import asyncio
6566
6667
client = coc.login('email', 'password', client=coc.EventsClient)
67-
loop = asyncio.get_event_loop()
6868
6969
@client.event
7070
async def on_clan_member_join(player, clan):
7171
print('{0.name} ({0.tag}) just joined {1.name} ({1.tag})!')
7272
73-
loop.run_until_complete(client.add_clan_update('tag'))
74-
client.start_events('clan')
73+
client.add_clan_update('tag')
7574
7675
client.run_forever()
7776

0 commit comments

Comments
 (0)