Deep Bot - Twitch Streamer Assistant

Deep Bot => Help/Support => Topic started by: schokobaron on May 23, 2016, 05:33:07 PM

Title: Giveaway in a txt file
Post by: schokobaron on May 23, 2016, 05:33:07 PM
Hello!

I want to make a giveaway over a week. I want to have a txt file and everytime someone puts in !enterGA, he loses 200 points and his name will be in 1 line of the txt file. You can also enter multiple times. so if he types !enterGA 3 times over the course of the week, his name will be 3 times in the pot.
After the giveaway the file and so on could reset with a command (delete all?) or something, but thats not important.

Could this be done with deepbot? :)
Title: Re: Giveaway in a txt file
Post by: TheNumbLock on May 23, 2016, 09:54:11 PM
Yes.

Command:

!enterGA
Message: @savelog@[giveaway.txt,@user@]
Cost: 200
Chain: !enterGA2
Insufficient Point Message: Sorry, you do not have enough points to enter.

(http://puu.sh/p2enA/3f2ca4b08f.png)

!enterGA2
Message: Congrats, @user@ you have been entered into Giveaway!