slack-emoji-uploader

0.1.1 • Public • Published

slack-emoji-uploader

Upload emoji to Slack in node.

npm version

Install

$ npm i slack-emoji-uploader

Usage

SlackTokenGetter

const { SlackTokenGetter } = require("slack-emoji-uploader");

tokenGetter = new SlackTokenGetter("team_name");
tokenGetter.getApiToken("email", "password").then((apiToken) => console.log(apiToken));
// xoxs-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

SlakEmojiUploader

const { SlakEmojiUploader } = require("slack-emoji-uploader");
const fs = require("fs");

emojiUploader = new SlakEmojiUploader("team_name", apiToken);

const img = fs.readFileSync("/path/to/image.png")
emojiUploader.upload("emoji_name", img)

Readme

Keywords

none

Package Sidebar

Install

npm i slack-emoji-uploader

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

25.7 kB

Total Files

14

Last publish

Collaborators

  • naari3