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
- Host: GitHub
- URL: https://github.com/ticklemycode/joke-slack-bot
- Owner: ticklemycode
- Created: 2018-06-08T13:09:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T13:31:44.000Z (about 8 years ago)
- Last Synced: 2025-05-18T12:36:07.449Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
);
```