CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Run command if keyword in message #204

Open andrewcgraves opened 7 years ago

andrewcgraves commented 7 years ago

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

Innectic commented 7 years ago

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. :)

2Cubed commented 7 years ago

Good idea! :+1:

kondrik commented 7 years ago

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

andrewcgraves commented 7 years ago

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

2Cubed commented 7 years ago

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...