Author Topic: @readfile@  (Read 1329 times)

0 Members and 1 Guest are viewing this topic.

CaptnClay

  • Youngling
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
  • Twitch Name: QuietStormm
@readfile@
« 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

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @readfile@
« Reply #1 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.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

CaptnClay

  • Youngling
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
  • Twitch Name: QuietStormm
Re: @readfile@
« Reply #2 on: February 03, 2016, 09:33:47 AM »
Awesome, I'll give it a try! Thanks!