Machines are NOT bots and there is no AI behind. You may expect some sort of Artificial Intelligence or you may expect to make them act in a different way - you would be wrong. Machines can do what is explained on this page - nothing more, nothing less. The Admin CPs of our demo chats are open in read-only mode - go see for yourself.

 

 

Time Machine

Time Machine displays predefined messages in chat at intervals. Settings: Admin CP » Machines » Time Machine. A list of messages is called a sequence. Sequences are executed simultaneously, can be combined, postponed, excluded in case the chat is reloaded within a period of time and formatted as regular messages or fancy announcements. Users receive different messages based on group, room, sequence already seen etc. The visual look of the sequence items is controlled using a template that contains HTML, CSS, JavaScript, {TIME} and {TEXT}. {TIME} and {TEXT} are dynamically replaced with the current time of the user and the sequence item itself.

Sequence template

The default message template A and some ideas for announcements can be selected from the drop-down menu TEMPLATE. Here is a template based on Message template D the one with an avatar in the message (123 = userID; 4 = groupID):

<div class="msg">
<span class="avt" style="background-image:url(avatar.php?q=123)"></span>
<span class="chat_area_user g4">SomeUser</span>
<span class="chat_area_time">{TIME}</span>
<br /> {TEXT} </div>

Sequence items

The built-in preview('data|id',typeNum) function can be used in order to show an address on GoogleMap, YouTube video etc. Note that mp3, mp4 and images can be loaded from the /attachments folder only!

DescriptionSequence item
ImageHere's my <span style="color:red;cursor:pointer" onclick="preview('attachments/image.jpg',1)">photo</span>
MP3Here's a <span style="color:red;cursor:pointer" onclick="preview('attachments/music.mp3',2)">song</span>
MP4Watch this <span style="color:red;cursor:pointer" onclick="preview('attachments/video.mp4',3)">video</span>
GoogleMapsThe office is <span style="color:red;cursor:pointer" onclick="preview('London, 221B Baker Street',5)">here</span>
YouTubeWatch this <span style="color:red;cursor:pointer" onclick="preview('1yH7wPDkRR0',6)">YouTube video</span>
SoundCloudFind us on <span style="color:red;cursor:pointer" onclick="preview('alfredo-guzman-navarro',7)">SoundCloud</span>
VimeoWatch this <span style="color:red;cursor:pointer" onclick="preview('328542652',8)">video</span>
AudioBoomListen to this <span style="color:red;cursor:pointer" onclick="preview('7206265',9)">podcast</span>
GiphyHere it is: <span style="color:red;cursor:pointer" onclick="preview('zmJEsEgJgIsSp2qgRi',10)">CLICK!</span>
News<span style="color:red;cursor:pointer" onclick="preview(0,20)">Latest news!</span>

A proper link that opens a new window and a copy/paste dialog in the mobile apps:

Here's my <b onclick="wopen('https://yahoo.com',1)" class="x_accent_fg pointer">website</b>...

Import demo sequences

ACP » Machines » Time Machine » New sequence » Import

 

Time Machine

 

TheGodFather

TheGodFather scans all messages sent by users and replies with a phrase when a keyword match is found. Settings: Admin CP » Machines » TheGodFather. A keywords/phrases pair is called a subset. You can have multiple subsets each containing an unlimited number of keywords and phrases. Subsets are applied alphabetically and the first match takes precedence - rename them to change the order.

 

Optionally, setup a new user to appear in the online list in chat: TheGodFather (choose any name). A new user can be created from AdminCP » Users. This user has a status guest so if you plan to delete guests with CRONJOBS or manually, it is a good idea to set a password/email. Also, you can set avatar/motto - from version 19.05+ you have a preloaded avatar in the folder /attachments (/img 19.07+): img/thegodfather.svg. Remember userID and groupID of your new user:

Unlike Time Machine the phrases of TheGodFather cannot be formatted with HTML/CSS. They inherit the default message style from ACP » Style » Message Style. Emoticons, links and BB codes are supported inline: :hallo: :laughing: [b]bold[/b] [i]italic[/i] [br]. Stickers are supported as whole phrases (not inline): stickers/Stickers/en_cool.svg

Import demo subsets

ACP » Machines » TheGodFather » New subset » Import

 

TheGodFather

 

News Machine

News Machine scans public messages and posts news on a predefined topic in a particular language or from a particular country when a keyword match is found. Settings: Admin CP » Machines » News Machine. Keywords/news pairs are called subsets. Subsets are applied alphabetically after TheGodFather and the first match takes precedence.

 

Optionally, setup a new user to appear in the online list in chat: NewsMaster (choose any name). A new user can be created from AdminCP » Users. This user has a status guest so if you plan to delete guests with CRONJOBS or manually, it is a good idea to set a password/email. Also, you can set avatar/motto - from version 19.05+ you have a preloaded avatar in the folder /attachments: (/img 19.07+): img/newsmaster.svg. Remember userID and groupID of your new user:

News Machine relies on a 3rd party service to download the news. You need to register and get your API key at https://newsapi.org. A CRONJOB can be set to download fresh news daily (hourly). News Machine subsets allows you to send two types of queries to newsapi: Everything (topic) e.g. bitcoin, brexit, music or Latest news (country/global).

Import demo subsets

ACP » Machines » News Machine » New subset » Import

 

GIF Machine

GIF Machine scans public messages and posts GIFs on a predefined topic when a keyword match is found. Settings: Admin CP » Machines » GIF Machine. Keywords/GIFs pairs are called subsets. Subsets are applied alphabetically after News Machine and the first match takes precedence. GIF Machine requires a 3rd party service (Tenor) to fetch URLs to the GIF images.

 

Page updated: 2019-06-30

Facebook Twitter Google LinkedIn Reddit Digg StumbleUpon