Package command_system :: Package implementation :: Module hosts
[hide private]
[frames] | no frames]

Source Code for Module command_system.implementation.hosts

 1  # Copyright (C) 2009-2010  Alexander Cherniuk <ts33kr@gmail.com> 
 2  # 
 3  # This program is free software: you can redistribute it and/or modify 
 4  # it under the terms of the GNU General Public License as published by 
 5  # the Free Software Foundation, either version 3 of the License, or 
 6  # (at your option) any later version. 
 7  # 
 8  # This program is distributed in the hope that it will be useful, 
 9  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
10  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
11  # GNU General Public License for more details. 
12  # 
13  # You should have received a copy of the GNU General Public License 
14  # along with this program.  If not, see <http://www.gnu.org/licenses/>. 
15   
16  """ 
17  The module defines a set of command hosts, which are bound to a 
18  different command processors, which are the source of commands. 
19  """ 
20   
21  from ..framework import CommandHost 
22   
23 -class ChatCommands(CommandHost):
24 """ 25 This command host is bound to the command processor which processes 26 commands from a chat. 27 """ 28 AUTOMATIC = True
29
30 -class PrivateChatCommands(CommandHost):
31 """ 32 This command host is bound to the command processor which processes 33 commands from a private chat. 34 """ 35 AUTOMATIC = True
36
37 -class GroupChatCommands(CommandHost):
38 """ 39 This command host is bound to the command processor which processes 40 commands from a group chat. 41 """ 42 AUTOMATIC = True
43