Carboniter is scraper tool for carbon.now.sh page, as a Slack bot.
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.
$ git clone https://github.com/mohamed-okasha/carboniter.git
$ cd carboniter
$ npm install
$ cp .env-example .env
- create slack app
- add environment variables in
.env
from slack appBasic Information
page
NODE_ENV=development
PORT=3000
SLACK_TOKEN= xoxb-.....-.....-.....
SLACK_SIGNING_SECRET= ..........
APP_VERIFICATION_TOKEN= ......
$ npm start
🚀 Carbointer LIVES on PORT 3000 🚀
$ 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
Carboniter is MIT licensed.