FlexHub Forum

Trigger

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Trigger
« on: June 24, 2011, 14:48:47 »
Hi, it would be possible to make the "trigger" on a specific word?

Example:

the word in fav mainchat

the bot responds in mainchat -> type /fav

thanks ... soon ...

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: Trigger
« Reply #1 on: June 24, 2011, 15:57:31 »
Check the manual about adding patterns: http://flexhub.org/wiki/index.php/Manual#Pattern_Management
Additional information about special characters in patterns: http://flexhub.org/wiki/index.php/Pattern_Matching

For your example it would be:
!addpattern MC "^fav$" -a0 -r2"type /fav"

Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Re: Trigger
« Reply #2 on: June 24, 2011, 16:07:45 »
Thanks ... check manual ;)