Deep Bot - Twitch Streamer Assistant
Deep Bot => Help/Support => Topic started by: TheSyntox on March 28, 2017, 02:24:39 AM
-
Hi,
Just wondering, is it possible to set a command that can be used only once by user?
My aim is to have two commands activating VIP. One normal to extend VIP for month and one for half price that can be used for points given after following for 14days s trial. I would like this command to be run only once so viewers have to use main command to extend VIP.
Another way to achieve this would be to set VIP status in follow notification options but it's not possible at the moment.
-
Absolutely. You would most likely have to use @savefile@ to save a name to a folder. Then use @readfile@ when someone uses the command to check if there is a .txt file with their name. So would make use of @if@.
You can actually initiate commands in follower notification options > Channel Message section.
-
That's looking good! Many thanks TheNumbLock, will give it a try later on.
-
Unfortunately I wasn't able to set it up. Not sure should I save txt file for each user like user1.txt, user2.txt or save all user names into one txt file. Also how would I use @IF@ so bot checks if file/name exists and says something like "Sorry this command can be user only once" or else assigning VIP to the user and takes points.
Ideally would be to have a option like this on the message to run once and have a alternate text in case msg was run for the user.