Deep Bot - Twitch Streamer Assistant

Deep Bot => Help/Support => Topic started by: CaptnClay on January 31, 2016, 06:32:02 PM

Title: @readfile@
Post by: CaptnClay on January 31, 2016, 06:32:02 PM
I was hoping to clean up my commands a little bit by creating them in text files, but it seems, so far at least, variables cannot be obtained through the @readfile@. Ex: I have a test text file saved as "@user@ gives @target@ a high-five." And when I set up the !highfive command and use @readfile@[pathtofile..\..\highfive.txt] It comes up blank in my commands. Not sure if this is a possibility as off now or will ever be, but just checking!

Thanks in advance,
QuietStormm
Title: Re: @readfile@
Post by: TheNumbLock on February 01, 2016, 08:12:16 AM
I was hoping to clean up my commands a little bit by creating them in text files, but it seems, so far at least, variables cannot be obtained through the @readfile@. Ex: I have a test text file saved as "@user@ gives @target@ a high-five." And when I set up the !highfive command and use @readfile@[pathtofile..\..\highfive.txt] It comes up blank in my commands. Not sure if this is a possibility as off now or will ever be, but just checking!

Thanks in advance,
QuietStormm

@Readfile@ reads from a .txt file that has information already in it. You would need to do @savefile@ or @savelog@ then use @readfile@. @user@ should work, it works for me. I would make sure you are on the latest update. which is 0.8.8.0.
Title: Re: @readfile@
Post by: CaptnClay on February 03, 2016, 09:33:47 AM
Awesome, I'll give it a try! Thanks!