Source

imalse / core / cmd / command.py

"""

This file contains the basic commands that are used in IMALSE.

"""
       
class VerificationCmd(object):
    
    """
    
    This command is used for the verification between the botmaster and the
    server.
    
    """
    
    def __init__(self, password = 1234):
        """Initalize the setting."""
        self.event = 'verify_master'
        self.password = password
        
class EchoCmd(object):
    
    """
    
    This command is used to confirm the established connection between 
    the server and botmaster.
    
    """
    
    def __init__(self):
        """"""
        self.event = 'echo'
        self.msg = 'verified, hi master, what you want to do'
        
class NewAddressCmd(object):
    
    """"""
    
    def __init__(self):
        """"""
        self.event = 'add_address'
        self.addresses = ''

class MsgFromClientToBotCmd(object):
    
    """"""
    
    def __init__(self):
        """"""
        self.event = 'send_to_botmaster'
        self.botmaster_event = 'echo'
        self.msg = ''
        self.msg = ''