Author Topic: Keywords / phrases  (Read 2174 times)

0 Members and 1 Guest are viewing this topic.

nitebytes

  • Youngling
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
    • Nitebytes - Streamer, Musician, Gamer, Goofball
  • Twitch Name: nitebytes
Keywords / phrases
« on: January 30, 2017, 10:34:19 PM »
Hi, If a feature like this exists and I've missed it, please shoot me down and point me at it - I've looked and can't find anything.

At the moment I have another bot I use that responds when certain words appear in a sentence in chat;
eg.
Tom: What time is James joining the game?
bot: Don't trust James, he's a bot.

The trigger word being 'James'. It's not a command, nor is it at the start of the line. Is there way to make deepbot do this?
If not, can I request it as a future feature?
Adapt, Improvise, Overcome
Or just scream until help arrives

Website | Twitch | Twitter

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Keywords / phrases
« Reply #1 on: January 31, 2017, 07:59:29 AM »
You can do this, however it will make any custom command by name, rather than !command.

Just a note that the word I think has to come at the beginning or end of the sentence.

To turn this feature on, you have to uncheck this box in the command editor (you want to make a command of course so you can save the setting globally.):



Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

nitebytes

  • Youngling
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
    • Nitebytes - Streamer, Musician, Gamer, Goofball
  • Twitch Name: nitebytes
Re: Keywords / phrases
« Reply #2 on: January 31, 2017, 03:23:13 PM »
Hmm, OK, so my example wouldn't work in any case because the trigger word was in the middle of the sentence?
Adapt, Improvise, Overcome
Or just scream until help arrives

Website | Twitch | Twitter

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Keywords / phrases
« Reply #3 on: February 01, 2017, 07:54:59 AM »
Yeah I believe so. The feature is how it is in Deepbot so it uses less CPU resources. If Deepbot scanned every word in your chat, it could use a pretty good chunk of CPU compared to just first and last word of a chat message.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

nitebytes

  • Youngling
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
    • Nitebytes - Streamer, Musician, Gamer, Goofball
  • Twitch Name: nitebytes
Re: Keywords / phrases
« Reply #4 on: February 01, 2017, 03:52:33 PM »
gotcha. Thanks for that - saved me hours of 'wtf am I doing wrong' moments :)
Adapt, Improvise, Overcome
Or just scream until help arrives

Website | Twitch | Twitter