Exemplo n.º 1
0
from src.cmds.config.CommandConfig_Enable import CommandConfig_Enable
from src.cmds.config.CommandConfig_Disable import CommandConfig_Disable
from src.cmds.config.CommandConfig_Get import CommandConfig_Get
from src.cmds.other.CommandInventory import CommandInventory
from src.cmds.other.CommandHelp import CommandHelp
from src.cmds.game.CommandLoot import CommandLoot
from src.utility.User import User

import src.utility.Global as Global

commands = {
    "Game Commands": [
        CommandLoot(["open"], ["<key>"], "Collects a loot chest"),
        CommandLoot(["mine"], ["<key>"], "Mines an ore"),
        CommandLoot(["attack"], ["<key>"], "Attacks an enemy"),
        Command(["recipes"], [], "View a list of all recipes"),
        Command(["recipe"], ["<item>"], "View a single recipe"),
        Command(["craft"], ["<item>"], "Craft an item")
    ],
    "config": [
        CommandConfig_Enable(["config", "enable"], ["#channel"],
                             "Enable bot messages in a channel"),
        CommandConfig_Disable(["config", "disable"], ["#channel"],
                              "Disable bot messages in a channel"),
        CommandConfig_Get(["config", "get"],
                          "Get channels in which bot messages are enabled"),
    ],
    "other": [CommandInventory(["inventory"], "View your inventory")]
}
commands["other"].append(
    CommandHelp(["help"], "shows this text block", commands))
Exemplo n.º 2
0
 def __init__(self, cmd, optionals, info):
     Command.__init__(self, cmd, optionals, info)
Exemplo n.º 3
0
 def __init__(self, command, info):
     Command.__init__(self, command, [], info)
Exemplo n.º 4
0
 def __init__(self, command, info, commandlist):
     Command.__init__(self, command, [], info)
     self.commandlist = commandlist