Set what I'm drinking with a command


#1

[11-21-2018 @ 04:43:43.570 GMT]
Java Version: 1.8.0_161-b12
OS Version: Windows 10 10.0 (x86)
Panel Version: 1.1
PhantomBot Version: 2.4.2 (Revision: 5c75a7b2)
Stock Phantonbot: No
Browser: Chrome Version 70.0.3538.102 (Official Build) (64-bit)

I want to be able to type out !tea and let chat know what I’m drinking. I also want to be able to change it with !tea set (or something similar) and say something like “!tea set Jasmine Peony” so it will change the !tea command to “Saphy is currently drinking Jasmine Peony.”

I’m not sure what to even Google or search for because I’m a noob. Any help would be greatly appreciated!


#2

!addcom settea (writefile drink.txt, false, (echo))

!addcom tea Saphy is currently drinking (readfile drink.txt)

Output:


#3

This is exactly what I needed! Thank you so much. I had to run it from the control panel instead of chat, but it works perfectly.