Creating a command to write a line to a text file?

commands

#1

PhantomBot Version: v2.4.1
OS Version: Ubuntu 16.04
Java Version: openjdk version “1.8.0_171”
Browser and Version (for Panel Support): Chrome (66.0.3359.181)
Stock PhantomBot: Yes/No (Yes if you have not modified the scripts or Java Core) Yes

I am looking to create a command along the lines of !emote some emote idea here for chat that would essentially the the text after !emote and write it to a text file, is there any existing plugin like this, or would I need to craft something?

Cheers,
Chop.


#2

Create a command with the following response: (writefile emotes.txt, true, (echo)).
All ideas will be saved to emotes.txt in the addons bot folder.


#3

Thank you, that is perfect.