Author Topic: Using @if@ to return message  (Read 854 times)

0 Members and 1 Guest are viewing this topic.

DSheep

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Drownedsheep
Using @if@ to return message
« on: December 27, 2016, 11:25:31 PM »
Hey there, first of all I'm not a streamer, I moderate for a friend so know that I only have mod level 2 access (if that will matter).

I'm having trouble figuring out how to use the @if@ variable to return a message when a command has successfully been used.

So the deal is I have this command for disabling custom commands;
Quote
!disable @disablecmd@[@target@]

And it works fine but the bot doesn't return a message saying the disabled command has been disabled or that the command has successfully been used.

Now, the problem is I can't figure out how to use
Quote
@if@[data||matchWith||matchedResult||FailResult]
to return such a message (on either success or fail)
I tried
Quote
@if@[@disablecmd@||@disablecmd@||Success||Failed]
and of course it didn't work.

Obviously I did something wrong, does anyone have an idea how I could get it to work?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Using @if@ to return message
« Reply #1 on: December 28, 2016, 03:25:34 AM »
Just know when adding commands through twitch chat, twitch doesn't recognize || and will make it say @if@[datamatchWithmatchedResultFailResult]. So that may be the issue on why it isn't working.
Old Name: RepentGamingTV
Twitch: Here

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