An open API service indexing awesome lists of open source software.

https://github.com/ticklemycode/joke-slack-bot

Toy app - Joke Slackbot
https://github.com/ticklemycode/joke-slack-bot

Last synced: 11 months ago
JSON representation

Toy app - Joke Slackbot

Awesome Lists containing this project

README

          

# Slack Bot @jokebot
Simple intro to working with Slack Bots. Followed guide from Traversy Media https://www.youtube.com/watch?v=nyyXTIL3Hkw&t=1720s

### Dependencies
- slack-bot-api - https://github.com/mishk0/slack-bot-api
- axios - https://github.com/axios/axios

```js
npm install
```

### Configure Slack Bot dependency
```js
const SlackBot = require('slackbots');

const bot = new SlackBot({
token: '', //Bot User OAuth Access Token
name: '' // App name
});
```

Posting message to Slack Channel
```js
bot.postMessageToChannel(
'general',
'Get Ready to laugh with @jokebot!',
params
);
```