Skip to content

command.py Inherits Action

Frank Hui edited this page Jan 26, 2020 · 1 revision

command.py, The Command Class

All commands must inherit command.py.
Inheriting command.py gives you these variables:

self.user_params

Parameters that the user passed in along with the command.

Example: "!dog p1 p2 p3"
user_params = ["p1", "p2", "p3"]

And all other variables from action.py