Animated Gifs on screen?


#1

PhantomBot Version: Latest
OS Version: Windows 2016
Java Version: 8
Browser and Version (for Panel Support): Chrome
Stock PhantomBot: Yes/No (Yes if you have not modified the scripts or Java Core) No

Is there a way if a certain command is done I can make a gif play on screen?


#2

Only custom commands do this by default, otherwise, you could build it into other commands in the scripts to call the hook for a GIF.


#3

Could make use of the gif alert system.

As IO said custom commands can do this by default but other scripts will require slight modification.


#5

Is there an api that will count if the command is done? (EG !add: Added 1.)


#6

To the original question (as the new one is unrelated to the post). A command needs to call the following from the JavaScript:

$.panelsocketserver.alertImage(filename);

Example:

$.panelsocketserver.alertImage('banana.gif');

#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.