Cleaning up my scripts a bot for a channel bot and wanting to see if I can condense this. Essentially it just triggers on expletives. Not sure what all is permitted here so I censored it. Instead of having the following:
on *:text:*CURSEWORD*:#:{
describe $chan washes $nick $+ 's mouth out with soap.
}
on *:text:*CURSEWORD*:#:{
describe $chan washes $nick $+ 's mouth out with soap.
}
on *:text:*CURSEWORD*:#:{
describe $chan washes $nick $+ 's mouth out with soap.
}
Is there a way to condense this so that it can recognize all the triggers?
on *:text:*CURSEWORD,CURSEWORD,CURSEWORD*:#:{
describe $chan washes $nick $+ 's mouth out with soap.
}
thanks in advance!!!