Deep Bot - Twitch Streamer Assistant

Deep Bot => Help/Support => Topic started by: MrSirViking on April 30, 2018, 05:16:04 AM

Title: Help with If Command
Post by: MrSirViking on April 30, 2018, 05:16:04 AM
Hey good people

I am trying to make a command for Xsgtpepperx. What i am trying to use is the: @if@[data||matchWith||matchedResult||FailResult]. So what i have done is this: !addcom !nap @if@[@target@||@target@||@target@ have a good nap ResidentSleeper|| @user@ have a good nap ResidentSleeper] 

what this should do is that if i do !nap horse it will display horse have a good nap but if i dont do a @target@ it should do @user@ so then display mrsirviking have a good nap. And it works.. It just dosent grab the @user@. if i do target it does @target@ have a good nap. if i dont do @target@ it just does have a good nap. It skips the @user@. Anyway to not get it to skip the @user@?

Thanks :)
Title: Re: Help with If Command
Post by: TheNumbLock on April 30, 2018, 09:50:22 PM
Basically you reverse the @if@. So in the below one I posted, it will look for a target after the command, if no target, then it will do @user@ one, and if you put something after the command, it will do the @target@. Here you go:

!addcom !nap @if@[@target@||||@user@ have a good nap ResidentSleeper||@target@ have a good nap ResidentSleeper] 
Title: Re: Help with If Command
Post by: MrSirViking on May 01, 2018, 12:02:52 AM
Thanks! i almost had it. So thanks for the help :)