Navigation About Mode >LTR>

Virtual Gallery Bot 2

Redoing The Very First Bot Again

The infrastructure of a v-r.gallery bot is:

Though the used image generator is another one …
For the controls of the vr-space I use look-controls.

The Technical Details

Using nodejs with twit library and slack-node-sdk

A simple slack webhook is all one needs to build a simple bot:

const { IncomingWebhook, WebClient } = require('@slack/client');

const webhook = new IncomingWebhook(process.env.SLACK_WEBHOOK_URL);
const currentTime = new Date().toTimeString();
webhook.send({
    "text": "Required plain-text summary of the attachment.",
    "attachments": [
        {
            "fallback": "Required plain-text summary of the attachment.",
            "color": "#2eb886",
            "pretext": "Optional text that appears above the attachment block",
            "author_name": "Bobby Tables",
            "author_link": "https://platform.slack-edge.com/img/default_application_icon.png",
            "author_icon": "https://platform.slack-edge.com/img/default_application_icon.png",
            "title": "Slack API Documentation",
            "title_link": "https://api.slack.com/",
            "text": "Optional text that appears within the attachment",
            "fields": [
                {
                    "title": "Priority",
                    "value": "High",
                    "short": false
                }
            ],
            "image_url": "https://platform.slack-edge.com/img/default_application_icon.png",
            "thumb_url": "https://platform.slack-edge.com/img/default_application_icon.png",
            "footer": "Slack API",
            "footer_icon": "https://platform.slack-edge.com/img/default_application_icon.png",
            "ts": currentTime
        }
    ]
}, (error, resp) => {
  if (error) {
    return console.error(error);
  }
  console.log('Notification sent');
});

Do not forget to set the SLACK_WEBHOOK_URL environment variable first.
For more details please red Node Slack SDK.

The Generator

The generator, which creates the images for the gallery, was inspired mostly by the painting of Adolf Fleischmann and
Frantichek Kupka. Though the are small portion of Sean Scully and a lot of Agnes martin inside. Using this generator for
a ongoing animation, creates a different feeling. The animation is exclusivly generated for every visitor.

If someone visits the gallery, one new image is create. The time-gap between the visits must be 3 hours,
otherwise no picture is generated.

Details on the generator: it is a remixer. Two different kind of generator are combined to work as one.

v-r.gallery

v-r.gallery has some social channels on Twitter and Slack. You are invited to parcitipate.


Generator overview Navigation About