Package command_system :: Package implementation :: Module standard :: Class StandardCommonCommands
[hide private]
[frames] | no frames]

Class StandardCommonCommands

source code


This command container contains standard commands which are common to all - chat, private chat, group chat.
Nested Classes [hide private]

Inherited from framework.CommandContainer: __metaclass__

Instance Methods [hide private]
 
clear(self) source code
 
compact(self) source code
 
help(self, command=None, all=False) source code
 
say(self, message) source code
 
me(self, action) source code
 
grep(self, text, limit=None) source code
 
status(self, status, message) source code
 
away(self, message) source code
 
online(self, message) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  AUTOMATIC = True
  HOSTS = ChatCommands, PrivateChatCommands, GroupChatCommands
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

clear(self)

source code 
Decorators:
  • @command
  • @doc(_("Clear the text window"))

compact(self)

source code 
Decorators:
  • @command
  • @doc(_("Hide the chat buttons"))

help(self, command=None, all=False)

source code 
Decorators:
  • @command(overlap= True)
  • @doc(_("Show help on a given command or a list of available commands if -a is given"))

say(self, message)

source code 
Decorators:
  • @command(raw= True)
  • @doc(_("Send a message to the contact"))

me(self, action)

source code 
Decorators:
  • @command(raw= True)
  • @doc(_("Send action (in the third person) to the current chat"))

grep(self, text, limit=None)

source code 
Decorators:
  • @command('lastlog', overlap= True)
  • @doc(_("Show logged messages which mention given text"))

status(self, status, message)

source code 
Decorators:
  • @command(raw= True, empty= True)
  • @doc(_(""" Set current the status Status can be given as one of the following values: online, away, chat, xa, dnd. """))

away(self, message)

source code 
Decorators:
  • @command(raw= True, empty= True)
  • @doc(_("Set the current status to away"))

online(self, message)

source code 
Decorators:
  • @command('back', raw= True, empty= True)
  • @doc(_("Set the current status to online"))

Class Variable Details [hide private]

AUTOMATIC

Value:
True

HOSTS

Value:
ChatCommands, PrivateChatCommands, GroupChatCommands