Skip to content

A discord bot archiving code blocks and links to pastebin-like snippets

License

Notifications You must be signed in to change notification settings

gbdev/snippet-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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.

About

A discord bot archiving code blocks and links to pastebin-like snippets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages