Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-plugin-slack-notifier

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-slack-notifier - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

9

dist/src/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Slack = require("slack-node");
const slack_settings_1 = require("./slack-settings");
// import { webHookUri, channelName } from './slack-settings';
const nconf = module.parent.require('nconf');
const webHookUri = nconf.get('slackWebUrl');
const channelName = nconf.get('channelName');
function savePost(newPost) {
const slackObj = new Slack();
const uri = slack_settings_1.webHookUri;
const uri = webHookUri;
slackObj.setWebhook(uri);
const post = newPost.post;
slackObj.webhook({
channel: slack_settings_1.channelName || '#general',
channel: channelName || '#general',
username: 'webhookbot',

@@ -13,0 +16,0 @@ text: post.content,

{
"name": "nodebb-plugin-slack-notifier",
"version": "0.0.6",
"version": "0.0.7",
"description": "Simple nodebb plugin that notify slack about posts",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/lakshmipriyamukundan/nodebb-plugin-slack-notifier#readme",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc