Machines

Our machines are availabe with BlaB! AX Pro and BlaB! WS Pro only. The Admin CPs of our demo chats are open in read-only mode, have a look: Admin CP » Machines.

Scroll to:

 

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"><img class="avt x_circle" src="avatar.php?q=80001" alt="" />
<div style="text-align:left">
<span class="chat_area_user g1">Someone</span>
<span class="chat_area_time">{TIME}</span><br />
<span>{TEXT}</span></div></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>
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.

 

Chat bot - TheGodFather

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 Extensions

An extension is a separate PHP file that TheGodFather calls when a keyword match is found in a message. You can easily write your own extensions. The following extensions are provided in our support center:

 

TheGodFather

 

Bling Machine

Bling Machine (BlaB! AX/WS Pro v21.05+) displays in chat fullscreen content with sound - fullscreen animations, announcements, fullscreen or part-screen advertisements. You can build your own blings from scratch or start with the provided templates. Certain chatters can trigger the blings directly from chat (group permission T is required) or it can be combined with Aunt Hedwig or TheGodFather.

Bling Machine

 

Aunt Hedwig

Aunt Hedwig (BlaB! AX/WS Pro v20.09+) delivers in chat online content from external sources such as tweets, Facebook posts, RSS, images, news, stock exchange data. Aunt Hedwig cannot be triggered by itself - an external service is required which could be your own program, a Telegram Bot or any of the multitude of Internet glue services: IFTTT, Zapier, Microsoft Flow, Huginn, Intergomat, Tasker, n8n.io.

Chat bot - AuntHedwig

Optionally, setup a new user to appear in the online list in chat: AuntHedwig (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 - there is a preloaded avatar in the folder /img: img/hedwig.svg. Remember userID and groupID of your new user:

Aunt Hedwig detects links to Youtube, DailyMotion, Vimeo videos and turns the whole message into attachment so that the video can be played in chat.

Aunt Hedwig

 

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.

 

Chat bot - news

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: 2021-09-12