Page MenuHomePhabricator

Phabot macro detector does not tokenize works
Closed, ResolvedPublic

Description

If someone says:

<cburroughs>  Foo bar allthethings foo bar

Phabaot should print spiffy ascii art, but

<cburroughs> FooallthethingsBar  !allthethings! :allthethings: Supercalifragilisticexpialiallthethingsdocious

should not.

Current behavior:

<Bob> :frogsiren: :dizzy_face: :frogsiren:
<phabot>                                   !::,.           
<phabot>                                  .,,,::,   .*,..  
<phabot>                                ..,*,;,,,,:,.,:,,. 
<phabot>                              ,||!::::,,,,,,,,::,! 
<phabot>                           .,,,|$###@@@@*;,,,,,,,; 
<phabot>                   .:;;;||@====#$$###$$#$$$*!,,,,; 
<phabot>                   ,.  .*$@$##!|$$$##$##$$###@|:,! 
<phabot>             .::::@$$###$|$$$##!,:::;========!::;! 
<phabot>          .,,,,,,,,|==@=:,;!;;:..........,,,,,:::: 
<phabot>         ,,..,=$@###*|$$$#$,                       
<phabot>       .,,,,,,,*===*:,;!;,                         
<phabot>      ,,...*$@$##*!$$$#$,                          
<phabot>    .:;;;|||$###@||=@@|                            
<phabot>    ,!;;!=$@$###*#$$#@.                            
<phabot>   *@==$#$@$##$#$$$##.                             
<phabot>  ;*!;;!@$###@!=$$#$;                              
<phabot>  |||;;;;!|!!;;;;;;!;:                             
<phabot>  |||!!;;;;;;;;!@@!;;;;                            
<phabot>  |||!;!;;;;;;;;|!;;;!!.                           
<phabot>  !!;;;;;!!!!!!!;;!!!;;.                           
<phabot>  ;!;;;;;;;;;;;;;;;;;!,                            
<phabot>  ;!!!!!;;;;;;;;;!;;;;;,                           
<Bob> wasnt me

Event Timeline

cburroughs raised the priority of this task from to Needs Triage.
cburroughs updated the task description. (Show Details)
cburroughs added a project: Phabot.
cburroughs added a subscriber: cburroughs.

I think we should require the entire line be a macro, for consistency with the web UI rules.

That is, only:

username> frogsiren

...would trigger it, not:

username> frogsiren is cool