XEP 0196

1.7 Documentation

«  XEP 0191   ::   Contents   ::   XEP 0198  »

XEP 0196

class slixmpp.plugins.xep_0196.XEP_0196(xmpp, config=None)[source]

XEP-0196: User Gaming

publish_gaming(name=None, level=None, server_name=None, uri=None, character_name=None, character_profile=None, server_address=None, options=None, ifrom=None, callback=None, timeout=None, timeout_callback=None)[source]

Publish the user’s current gaming status.

Parameters
  • name (Optional[str]) – The name of the game.

  • level (Optional[str]) – The user’s level in the game.

  • uri (Optional[str]) – A URI for the game or relevant gaming service

  • server_name (Optional[str]) – The name of the server where the user is playing.

  • server_address (Optional[str]) – The hostname or IP address of the server where the user is playing.

  • character_name (Optional[str]) – The name of the user’s character in the game.

  • character_profile (Optional[str]) – A URI for a profile of the user’s character.

  • options (Optional[Form]) – Optional form of publish options.

stanza = <module 'slixmpp.plugins.xep_0196.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.7.0/slixmpp/plugins/xep_0196/stanza.py'>
stop(ifrom=None, callback=None, timeout=None, timeout_callback=None)[source]

Clear existing user gaming information to stop notifications.

Stanza elements

Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0196.stanza.UserGaming(xml=None, parent=None)[source]
interfaces = {'character_name', 'character_profile', 'level', 'name', 'server_address', 'server_name', 'uri'}
name = 'game'
namespace = 'urn:xmpp:gaming:0'
plugin_attrib = 'gaming'
sub_interfaces = {'character_name', 'character_profile', 'level', 'name', 'server_address', 'server_name', 'uri'}

«  XEP 0191   ::   Contents   ::   XEP 0198  »