Browse Source

Add ServerMessage to battleye interface

pull/20/head 2.3.8
Richard Neumann 2 years ago
parent
commit
b4bcf6c48d
  1. 2
      docs/source/conf.py
  2. 3
      docs/source/usage.rst
  3. 3
      rcon/battleye/__init__.py

2
docs/source/conf.py

@ -9,7 +9,7 @@
project = 'rcon'
copyright = '2022, Richard Neumann'
author = 'Richard Neumann'
release = '2.3.7'
release = '2.3.8'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

3
docs/source/usage.rst

@ -34,8 +34,7 @@ those messages:
.. code-block:: python
from rcon.battleye import Client
from rcon.battleye.proto import ServerMessage
from rcon.battleye import Client, ServerMessage
def my_message_handler(server_message: ServerMessage) -> None:
"""Print server messages."""

3
rcon/battleye/__init__.py

@ -1,6 +1,7 @@
"""BattlEye RCON implementation."""
from rcon.battleye.client import Client
from rcon.battleye.proto import ServerMessage
__all__ = ['Client']
__all__ = ['Client', 'ServerMessage']

Loading…
Cancel
Save