XEP 0107

1.6 Documentation

«  XEP 0106   ::   Contents   ::   XEP 0108  »

XEP 0107

class slixmpp.plugins.xep_0107.XEP_0107(xmpp, config=None)[source]

XEP-0107: User Mood

publish_mood(value=None, text=None, options=None, ifrom=None, callback=None, timeout=None, timeout_callback=None)[source]

Publish the user’s current mood.

Parameters
  • value – The name of the mood to publish.

  • text – Optional natural-language description or reason for the mood.

  • options – Optional form of publish options.

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

Clear existing user mood 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_0107.stanza.UserMood(xml=None, parent=None)[source]
del_value()[source]
get_value()[source]
interfaces = {'text', 'value'}
moods = {'afraid', 'amazed', 'amorous', 'angry', 'annoyed', 'anxious', 'aroused', 'ashamed', 'bored', 'brave', 'calm', 'cautious', 'cold', 'confident', 'confused', 'contemplative', 'contented', 'cranky', 'crazy', 'creative', 'curious', 'dejected', 'depressed', 'disappointed', 'disgusted', 'dismayed', 'distracted', 'embarrassed', 'envious', 'excited', 'flirtatious', 'frustrated', 'grateful', 'grieving', 'grumpy', 'guilty', 'happy', 'hopeful', 'hot', 'humbled', 'humiliated', 'hungry', 'hurt', 'impressed', 'in_awe', 'in_love', 'indignant', 'interested', 'intoxicated', 'invincible', 'jealous', 'lonely', 'lost', 'lucky', 'mean', 'moody', 'nervous', 'neutral', 'offended', 'outraged', 'playful', 'proud', 'relaxed', 'relieved', 'remorseful', 'restless', 'sad', 'sarcastic', 'satisfied', 'serious', 'shocked', 'shy', 'sick', 'sleepy', 'spontaneous', 'stressed', 'strong', 'surprised', 'thankful', 'thirsty', 'tired', 'undefined', 'weak', 'worried'}
name = 'mood'
namespace = 'http://jabber.org/protocol/mood'
plugin_attrib = 'mood'
set_value(value)[source]
sub_interfaces = {'text'}

«  XEP 0106   ::   Contents   ::   XEP 0108  »