Core Help Root: Objects: Robot: Robot Methods
Public Methods:
- .parse_line(line)
- Accepts a line of text and treats it as if it had been typed by a user.
- .tell(what, [who])
- Standard 'tell method for receiving input.
- .event_notify(event, origin, [args])
-
- .startup()
-
- .active()
- Returns a dictionary of the active reactions.
- .activate_reaction(id)
- Given an id, activates that reaction.
- .tell_traceback([args])
-
- .add_reaction([args])
-
- .del_reaction(id)
-
- .reactions()
- Returns a dictionary of all defined reactions.
- .match_type(type)
-
- .reactions_cmd(cmdstr, cmd, this)
- Command for listing information about the reactions on the robot.
- .update_reaction(id, part, value)
-
- .deactivate_reaction(id)
- Given an id, deactivates that reaction.
- .connected()
- If the robot is active, returns true, otherwise false.
- .connected_time([args])
-
- .idle_time([args])
-
- .activate_reaction_cmd(cmdstr, cmd, int, prep, this)
- Command for activating a reaction on the robot.
- .deactivate_reaction_cmd(cmdstr, cmd, int, prep, this)
- Command for deactivating a reaction on the robot.
- .add_reaction_cmd(cmdstr, cmd, str)
- Command for adding a new reaction to the robot.
Protected Methods:
- .react_command:react_command(str, match, sender, cmd)
-
- .react_subcmd(str, match, sender, cmd)
-
- .check_reactions(type, str, sender)
-
- .update_active(key, id, value)
-
- .remove_active(key, id)
-
- .do_reaction(str, match, id, sender)
-
Private Methods:
- .check_reaction_args(method, template, type, chance, times, hook, min, max)
- Type checking method.
- .check_reaction_hook(hook)
- Type checking method.
- .check_reaction_hook_method(method)
- Type checking method.
- .check_reaction_hook_args(args)
- Type checking method.
- .check_reaction_min(min)
- Type checking method.
- .check_reaction_max(max)
- Type checking method.
- .check_reaction_matchwith(method)
- Type checking method.
- .check_reaction_template(template)
- Type checking method.
- .check_reaction_type(type)
- Type checking method.
- .check_reaction_chance(chance)
- Type checking method.
- .check_reaction_times(times)
- Type checking method.
Robot Methods
the Cold Dark