Author Topic: @readfile@ won't grab @target@  (Read 1396 times)

0 Members and 1 Guest are viewing this topic.

WrektGlitch

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: WrektGlitch
@readfile@ won't grab @target@
« on: June 26, 2016, 01:51:49 PM »
So I'm trying to utilize the @readfile@ variable to grab a line from a text file. That part is working great. The problem is that I have @target@ in these lines, and it won't grab @target@ from the line in the text document. Example:

"!sorry wrektglitch" should be grabbing one of a number of lines such as "Shut up @target@, you'll never be the man your mother is." but when the text goes into chat, it just says "Shut up , you'll never be the man your mother is." instead of "Shut up wrektglitch, you'll never be the man your mother is."

Any help, please?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @readfile@ won't grab @target@
« Reply #1 on: June 27, 2016, 01:08:31 AM »
Can you screenshot the command? Or copy and paste the message part of the command?
Old Name: RepentGamingTV
Twitch: Here

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

WrektGlitch

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: WrektGlitch
Re: @readfile@ won't grab @target@
« Reply #2 on: June 27, 2016, 04:35:04 PM »

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @readfile@ won't grab @target@
« Reply #3 on: June 27, 2016, 05:47:47 PM »
Because it is reading the .txt file, it will not insert a target when it doesn't save the @target@ to the .txt file.

One way would be to have all insults start with @target@ at the beginning.

In your command, the message part, you could have @target@ @readfile@[etc, etc].

@target@ is meant for in the command message itself.
Old Name: RepentGamingTV
Twitch: Here

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