Deep Bot - Twitch Streamer Assistant
Deep Bot => Help/Support => Topic started by: statuschance 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.
-
@if@[@target@||||You must include a quote after the command.||Quote saved successfully. @savelog@[jamesstuff.txt,@target@]]
-
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.
-
Try using the full file path. So @savelog@[C:\Deepbot - Twitch Streamer Assistant\custom logs\blah.txt,@target@]