-
Notifications
You must be signed in to change notification settings - Fork 9
Package: command
command contains the Command class. This is the parent class for all custom functions. It is an abstract class, and should never be directly instantiated.
self.name : The name of the command. This should be written exactly as you would write the command in chat when you call it. Be sure to include a dollar sign.
self.help : The command's help string as shown when the $help command is queried. It should follow this format:
$<command name> | <command purpose> | <usage instructions>
Example:
$info | Display info about a command. | Usage: $info <command (including the dollar sign)>
self.author : The author of the command as shown when the $info command is queried.
self.last_updated : The date that the command was last updated as shown when the $info command is queried.
Simple constructor which sets the above mentioned attributes to their default values.
Returns self.name for easy printing.
Returns str(self.name)
Returns str(self.help)
Returns str(self.author)
Returns str(self.last_updated)
You should never directly instantiate this class. This class is used only as a base class for custom commands. See Package: commands.