agent string
}{
{
- name: "a name after the command",
+ name: "reads the name after the stop command",
line: " /stop GreenOtter ",
found: true,
agent: "GreenOtter",
},
{
- name: "the command alone",
+ name: "finds no subagent name after the bare command",
line: "/stop",
},
{
- name: "the command with spaces only",
+ name: "finds no subagent name in trailing spaces",
line: "/stop ",
},
{
- name: "a word that starts with the command",
+ name: "rejects a command joined to its name",
line: "/stopGreenOtter",
},
{
- name: "a message",
+ name: "leaves a mention of the command as text",
line: "please /stop GreenOtter",
},
}