We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d906572 commit b978325Copy full SHA for b978325
docs/examples/events_example.rst
@@ -7,4 +7,4 @@ This is an example of a basic events setup.
7
.. literalinclude:: ../../examples/events.py
8
:language: py
9
:linenos:
10
- :lines: 1-126,136-
+ :lines: 1-126,138-
examples/events.py
@@ -132,6 +132,8 @@ class Handler(logging.Handler):
132
def emit(self, record) -> None:
133
sys.exit(0)
134
log.addHandler(Handler())
135
+ # we don't wanna wait forever for an event, so if it sets up OK lets call it quits.
136
+ client.loop.call_later(20.0, sys.exit, 0)
137
138
client.loop.run_until_complete(add_clan_players())
139
client.loop.run_forever()
0 commit comments