https://github.com/gbdev/snippet-bot
A discord bot archiving code blocks and links to pastebin-like snippets
https://github.com/gbdev/snippet-bot
Last synced: 7 months ago
JSON representation
A discord bot archiving code blocks and links to pastebin-like snippets
- Host: GitHub
- URL: https://github.com/gbdev/snippet-bot
- Owner: gbdev
- License: gpl-3.0
- Created: 2017-11-24T17:01:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T21:17:24.000Z (almost 8 years ago)
- Last Synced: 2025-06-26T07:22:40.183Z (8 months ago)
- Language: JavaScript
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snippet-bot
A discord bot archiving code blocks and links to pastebin-like snippets
## Deploy
Clone the repository with `git clone https://github.com/dmg01/snippet-bot`.
Install dependencies with `npm install`. You may see `UNMET PEER DEP` errors or warnings, ignore them.
Create the configuration file `config.js` and add your token as follows:
```javascript
const config = {};
module.exports = config;
config.domains = ["pastebin.com"]; // pastebin/etc domans
config.dbFilename = "database.db"; // the database file to store the collection
config.parse = false; // archive chat history on login
config.oneshot = false; // quit after archiving chat history
config.port = 8080; // the port to server the http frontend on
config.token = "PUT YOUR TOKEN HERE"; // discord login token
```
Run the bot with `npm run bot`.
Run the server with `npm run server`.