djsrap

0.0.1 • Public • Published

DJSRAP

  • Djsrap means Discord.js Reddit Autoposter a module which post random reddit pictures from the selected subreddit using Mongo or Sqlite

How to use (Sqlite) (Methods)

//set the channel you want
.quickdb.set.channel(message , channelid)
// set the interval of posting
.quickdb.set.interval.guild(message, "value")
// if u want every server's interval of posting the same
.quickdb.set.interval.all("value")
.quickdb.set.subreddit.guild(message, "subreddit name")
//if u want every server's subreddit to be same
.quickdb.set.subreddit.all("subreddit `name")
// start the program
.quickdb.init(message)

How to use (MongoDB) (Methods) (Maybe Broken)

// You must connect your mongo db to use the Mongo Version of this module
.mongo.connect("mongo url")
//set the channel you want
.mongo.set.channel(message, channelid)
// set the interval of posting
.mongo.set.interval.guild(message, "value")
// if u want every server's interval of posting the same
.quickdb.set.interval.all("value")
.mongo.set.subreddit.guild(message, "subreddit name")
//if u want every server's subreddit to be same
.mongo.set.subreddit.all("subreddit `name")
// start the program
.mongo.init(message)

Package Sidebar

Install

npm i djsrap

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

7.91 kB

Total Files

3

Last publish

Collaborators

  • jenil-dev