Example #1
0
    def at_cmdset_creation(self):
        """Populates the cmdset"""

        # Account-specific commands
        # self.add(account.CmdOOCLook())
        # self.add(account.CmdIC())
        # self.add(account.CmdOOC())
        # self.add(account.CmdCharCreate())
        # self.add(account.CmdCharDelete())
        # self.add(account.CmdSessions())
        # self.add(account.CmdWho())
        # self.add(account.CmdOption())
        self.add(account.CmdQuit())
        # self.add(account.CmdPassword())
        # self.add(account.CmdColorTest())
        self.add(account.CmdQuell())
        # self.add(account.CmdStyle())

        # nicks
        # self.add(general.CmdNick())

        # testing
        self.add(building.CmdExamine())

        # Help command
        self.add(help.CmdHelp())

        # system commands
        self.add(system.CmdReload())
        self.add(system.CmdReset())
        self.add(system.CmdShutdown())
        self.add(system.CmdPy())

        # Admin commands
        self.add(admin.CmdNewPassword())
Example #2
0
 def add_default_commands(self):
     """Add selected Evennia built-in commands"""
     from evennia.commands.default import (account, building, system, admin,
                                           comms)
     # Player-specific commands
     self.add(account.CmdOOCLook())
     self.add(account.CmdIC())
     self.add(account.CmdOOC())
     self.add(account.CmdOption())
     self.add(account.CmdQuit())
     self.add(account.CmdPassword())
     self.add(account.CmdColorTest())
     self.add(account.CmdQuell())
     self.add(building.CmdExamine())
     # system commands
     self.add(system.CmdReset())
     self.add(system.CmdShutdown())
     self.add(system.CmdPy())
     # Admin commands
     self.add(admin.CmdDelAccount())
     self.add(admin.CmdNewPassword())
     # Comm commands
     self.add(comms.CmdAddCom())
     self.add(comms.CmdDelCom())
     self.add(comms.CmdCemit())
     self.add(comms.CmdIRC2Chan())
     self.add(comms.CmdRSS2Chan())
Example #3
0
    def at_cmdset_creation(self):
        """Populates the cmdset"""

        # Player-specific commands
        try:
            self.add(account.CmdOOCLook())
            from commands.base_commands import overrides

            self.add(overrides.CmdWho())
            self.add(account.CmdQuit())
            self.add(account.CmdColorTest())
            self.add(account.CmdOption())
            # Help command
            self.add(help.CmdHelp())
            # Comm commands
            self.add(comms.CmdAddCom())
            self.add(comms.CmdDelCom())
            self.add(comms.CmdAllCom())
            self.add(comms.CmdChannels())
            self.add(comms.CmdCWho())
            from commands.base_commands import general

            self.add(general.CmdPage())
            from commands.base_commands import roster

            self.add(roster.CmdRosterList())
            self.add(roster.CmdAdminRoster())
            self.add(roster.CmdSheet())
            self.add(roster.CmdRelationship())
            from commands.base_commands import guest

            self.add(guest.CmdGuestLook())
            self.add(guest.CmdGuestCharCreate())
            self.add(guest.CmdGuestPrompt())
            self.add(guest.CmdGuestAddInput())
            from world.dominion import general_dominion_commands as domcommands

            self.add(domcommands.CmdFamily())
            from commands.base_commands import bboards

            self.add(bboards.CmdBBReadOrPost())
            self.add(bboards.CmdBBSub())
            from commands.base_commands import staff_commands

            self.add(staff_commands.CmdAskStaff())
            self.add(staff_commands.CmdListStaff())
            from commands.base_commands import social

            self.add(social.CmdWhere())
            self.add(social.CmdFinger())
            self.add(social.CmdCensus())
            from web.helpdesk import lore_commands

            self.add(lore_commands.CmdLoreSearch())
        except Exception as err:
            exc_type, exc_value, exc_traceback = sys.exc_info()
            traceback.print_tb(exc_traceback, limit=5, file=sys.stdout)
            print("Error encountered in loading Guest commandset: %s" % err)
Example #4
0
    def at_cmdset_creation(self):
        "Populates the cmdset"

        # Account-specific commands
        self.add(account.CmdOOCLook())
        self.add(account.CmdIC())
        self.add(account.CmdOOC())
        self.add(account.CmdCharCreate())
        self.add(account.CmdCharDelete())
        # self.add(account.CmdSessions())
        self.add(account.CmdWho())
        self.add(account.CmdOption())
        self.add(account.CmdQuit())
        self.add(account.CmdPassword())
        self.add(account.CmdColorTest())
        self.add(account.CmdQuell())
        self.add(account.CmdStyle())

        # nicks
        self.add(general.CmdNick())

        # testing
        self.add(building.CmdExamine())

        # Help command
        self.add(help.CmdHelp())

        # system commands
        self.add(system.CmdReload())
        self.add(system.CmdReset())
        self.add(system.CmdShutdown())
        self.add(system.CmdPy())

        # Admin commands
        self.add(admin.CmdNewPassword())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdIRCStatus())
        self.add(comms.CmdRSS2Chan())
        self.add(comms.CmdGrapevine2Chan())
Example #5
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super(AccountCmdSet, self).at_cmdset_creation()
        #
        # any commands you add below will overload the default ones.
        #
        # Account specific Commands
        self.remove(account.CmdOOCLook())
        self.remove(account.CmdIC())
        self.remove(account.CmdOOC())
        self.remove(account.CmdCharCreate())
        self.remove(account.CmdCharDelete())
        self.remove(account.CmdOption)
        self.remove(account.CmdQuit())
        self.remove(account.CmdPassword())
        self.remove(account.CmdColorTest())
        self.add(acct.CmdOption())
        self.add(acct.CmdQuit())
        self.add(acct.CmdPassword())
        self.add(acct.CmdColorTest())
        self.add(acct.CmdQuell())

        # Comm commands
        self.remove(comms.CmdPage())
        self.remove(comms.CmdChannels)
        self.add(comm.CmdChannels)
        self.add(comm.CmdCdestroy())
        self.add(comm.CmdChannelCreate())
        self.add(comm.CmdClock())
        self.add(comm.CmdCBoot())
        self.add(comm.CmdCemit())
        self.add(comm.CmdCWho())
        self.add(comm.CmdCdesc())
        self.add(comm.CmdTell())
Example #6
0
 def test_quit(self):
     self.call(account.CmdQuit(), "", "Quitting. Hope to see you again, soon.", caller=self.account)