CactusBot icon indicating copy to clipboard operation
CactusBot copied to clipboard

Run command if keyword in message

Open andrewcgraves opened this issue 8 years ago • 5 comments

Create a command that would look for a certain word in a users message and reply with an output once that is seen.

andrewcgraves avatar Feb 11 '17 17:02 andrewcgraves

We've been thinking about making message triggers. For instance if you're playing on a server and people keep asking for the ip:

!command add ip I'm playing in Hypixel! mc.hypixel.net
!search add server ip

Something like that. Now that's clearly not what the final command would look like, but it's still an idea we've had. :)

Innectic avatar Feb 11 '17 17:02 Innectic

Good idea! :+1:

2Cubed avatar Feb 11 '17 18:02 2Cubed

So a search would be like an alias that triggers from anywhere in a message? I like it!

kondrik avatar Feb 13 '17 16:02 kondrik

Woot! Glad I could throw an idea out there :)

andrewcgraves avatar Feb 14 '17 05:02 andrewcgraves

We should build in boolean logic (AND/OR) and capitalization "stuff".

The following shows the desired result, but not necessarily the actual syntax we should use:

taco && salad

Can I have a taco?

Taco salad!
Mm...

2Cubed avatar Feb 14 '17 05:02 2Cubed