Deep Bot - Twitch Streamer Assistant
Deep Bot => Help/Support => Topic started by: DustVixen on January 04, 2016, 09:28:43 PM
-
Is there a @command@ that I'm missing whereby DB can read a random line in a text file?
Eg:
!dice
Casting your dice... @readrandline@(C:\Users\Namehere\dice.txt)
Where the .txt files lists many possible outcomes:
$addpoints("$user","1","10","You have won $value $currencyname $user","fail")
$removepoints("$user","1","10","You have lost $value $currencyname $user","fail","false")
Or will I need to run two bots to do this?
-
http://deepbot.deep.sg/wiki/Custom+Commands
-
Thanks Mitch, but I can't seen to get @readfile@ to work when there is more than one line in the text file.
Scratch that, I'm an idiot.. for those of you reading this, just make sure you have spelled the whole string correctly *facepalm*