You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Challenging because coming up with a syntax is difficult. Your first inclination is to allow for factoid commands/queries to be like lazybot: foo is bar but that doesn't really work in lazybot. The problem is that command prefixes are arbitary strings. This means that lazybot: can actually be a command prefix in which case whatever foo is could be a command, in which case the commands and hooks would clash. I guess one option here is to modify the command/hook system so that hooks only trigger if a command isn't also triggered, but I don't want to do that. I think that the best compromise here is to just make the factoid system be a command.
e.g.
$fact foo is bar
$whatis foo
The text was updated successfully, but these errors were encountered:
Challenging because coming up with a syntax is difficult. Your first inclination is to allow for factoid commands/queries to be like
lazybot: foo is bar
but that doesn't really work in lazybot. The problem is that command prefixes are arbitary strings. This means thatlazybot:
can actually be a command prefix in which case whateverfoo
is could be a command, in which case the commands and hooks would clash. I guess one option here is to modify the command/hook system so that hooks only trigger if a command isn't also triggered, but I don't want to do that. I think that the best compromise here is to just make the factoid system be a command.e.g.
The text was updated successfully, but these errors were encountered: