Author Topic: @Savelog @Message@ not working  (Read 1583 times)

0 Members and 1 Guest are viewing this topic.

statuschance

  • Youngling
  • *
  • Posts: 3
  • Karma: +1/-0
    • View Profile
  • Twitch Name: statuschance
@Savelog @Message@ not working
« on: August 20, 2017, 12:20:02 PM »
I am trying to add my own quote command that allows users to add commands to a textfile that already exists. Here is my command.

@savelog@[jamesstuff.txt, @message@]

I want the command to take whatever the user typed and add it as a new line in a txt file names jamesstuff (already exists). Also, is there any way to send a confirmation. If the quote was added, and a fail message if it did not add?

Thank you for the help.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @Savelog @Message@ not working
« Reply #1 on: August 20, 2017, 11:47:18 PM »
@if@[@target@||||You must include a quote after the command.||Quote saved successfully. @savelog@[jamesstuff.txt,@target@]]
Old Name: RepentGamingTV
Twitch: Here

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

statuschance

  • Youngling
  • *
  • Posts: 3
  • Karma: +1/-0
    • View Profile
  • Twitch Name: statuschance
Re: @Savelog @Message@ not working
« Reply #2 on: August 21, 2017, 04:53:28 AM »
I added this command and it successfully shows the confirmation but the actual text is not added to the .txt file.

Here is an example of what I want.

!addjamesstuff Hey this is a quote.

I want the "Hey this is a quote" added to the bottom of a txt file called jamesstuff.txt which is currently in the custom logs folder of deepbot. Right now, it won't add anything. In the custom commands documentation, it says to use @message@ but that does not work either. Hope this makes more sense.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @Savelog @Message@ not working
« Reply #3 on: August 21, 2017, 07:40:23 AM »
Try using the full file path. So @savelog@[C:\Deepbot - Twitch Streamer Assistant\custom logs\blah.txt,@target@]
Old Name: RepentGamingTV
Twitch: Here

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