Skip to content

Carboniter slack bot is a scraper tool for carbon.now.sh page

License

Notifications You must be signed in to change notification settings

mohamed-okasha/carboniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carboniter

Carboniter

js-standard-style

Carboniter is scraper tool for carbon.now.sh page, as a Slack bot.

How it works

After adding carbonier bot in slack channel send code block carboniter will send code block to carbon website and screenshot styled code then send back to slack channel.

For Developers

Clone source code

$ git clone https://github.com/mohamed-okasha/carboniter.git
$ cd carboniter

Install

$ npm install

Copy .env-example to .env

$ cp .env-example .env

Configure

  • create slack app
  • add environment variables in .env from slack app Basic Information page
NODE_ENV=development
PORT=3000
SLACK_TOKEN= xoxb-.....-.....-.....
SLACK_SIGNING_SECRET= ..........
APP_VERIFICATION_TOKEN= ......

Test Run

$ npm start

🚀 Carbointer LIVES on PORT 3000 🚀

Deploy on heroku

$ heroku create {optional-app-name}

Creating app... done, stack is app-name
https://app-name.herokuapp.com/

$ git add . & git commit -m 'init version'
$ git remote add heroku https://git.heroku.com/heroku-app-git-repo-link.git
$ git push heroku master

...
remote: -----> Node.js app detected
...
remote:        https://app-name.herokuapp.com/ deployed to Heroku
...
To https://git.heroku.com/heroku-app-git-repo-link.git
 * [new branch]      master -> master

$ heroku open

License

License

Carboniter is MIT licensed.

About

Carboniter slack bot is a scraper tool for carbon.now.sh page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published