Deep Bot - Twitch Streamer Assistant

Deep Bot => Help/Support => Topic started by: ByronBojangles on February 11, 2017, 11:55:04 AM

Title: Why isn't my @if@ command working?
Post by: ByronBojangles on February 11, 2017, 11:55:04 AM
!addcmd !tickets @if@[>||@calc@[/|@points@|20]||300||Remember this is up to a maximum of 15 tickets!||You must have at least 20 points to buy a ticket]
The goal of this command is to return the first message if they have over 300 of the stream currency, and the second is supposed to be if they have less than 300. Can anyone help?
Title: Re: Why isn't my @if@ command working?
Post by: TheNumbLock on February 12, 2017, 12:51:54 AM
o.o? Would be easier to do this: @if@[>||@points@||20||You must have at least 20 points to buy a ticket||Remember this is up to a maximum of 15 tickets!]
Title: Re: Why isn't my @if@ command working?
Post by: ByronBojangles on February 12, 2017, 01:40:05 AM
Thank you! I'll test that out when I can.

I'd prefer mine to work though so the second message only shows up if they have over 300 points, but if that's too complicated then I'll definitely do it your way.
Title: Re: Why isn't my @if@ command working?
Post by: TheNumbLock on February 12, 2017, 02:15:30 AM
The problem is that with your @if@, they need 6000 points in order for the first phrase to be said, since @calc@[/|@points@|20] > 300. So their points divided by 20 has to be 300 or more.