Create an INI file with the following content:
- [hashtable]
*word1*=
*word2*=
*word3*=
When the bot joins its channel, the INI file will be loaded into the memory:
- On me:*:join:#channel:{
if $hget(keys) { hfree keys }
hmake keys
hload -i keys file.ini
}
Whenever somebody speaks in the channel, the items in the memory will me matched against the text, to see if it contains any of the triggers you defined:
- On *:text:$($hfind(keys,$1-,1,W)):#channel:{
msg # $matchkey matched your text.
}