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

https://github.com/brianpeiris/deletebot

Deletebot deletes messages from your Slack channel. It can be used to create readonly channels
https://github.com/brianpeiris/deletebot

Last synced: 10 days ago
JSON representation

Deletebot deletes messages from your Slack channel. It can be used to create readonly channels

Awesome Lists containing this project

README

          

# deletebot
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

Deletebot deletes messages from your Slack channel. It can be used to create readonly channels.

### Install

```shell
$ npm install
```

### Copy `.env-example` to `.env`

```shell
$ cp .env-example .env
```

### Configure

```shell
# Must be an admin token.
SLACK_TOKEN=xoxb...8WRqKWx
NODE_ENV=development
PORT=3000
```
### Run

```shell
$ npm start

deletebot LIVES on PORT 3000
```

Visit [localhost:3000](http://localhost:3000).

### Deploy

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

_Or with the [Heroku Toolbelt](https://toolbelt.heroku.com)_

```shell
$ heroku create {optional-app-name}

Creating app... done, stack is cedar-14
https://blooming-scrubland-64464.herokuapp.com/

$ git push heroku master
...
remote: -----> Node.js app detected
...
remote: https://blooming-scrubland-64464.herokuapp.com/ deployed to Heroku
...
To https://git.heroku.com/blooming-scrubland-64464.git
* [new branch] master -> master

$ heroku open
```
### Credits

Based on https://github.com/mattcreager/starbot