NotificamBot/pub-redis-example.js

13 lines
217 B
JavaScript

const redis = require('redis');
const publisher = redis.createClient();
publisher.publish("NotificamBot", JSON.stringify({
code:'generic',
description: 'event test',
options: {}
}));
publisher.quit();