0.0.1 • Published 3 years ago

djsrap v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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)