Giter Club home page Giter Club logo

something-random-on-discord's Introduction

SOMETHING RANDOM

⚠ NOTICE

You can not use v2.0.0 because i made a big mistake, now i will continue with version v3.0.0

✨ UPDATES

[ API Issue ]: Changed the API to reddit API


SETUP

const discord = require("discord.js")
const client = new discord.Client()
const random = require("something-random-on-discord").Random


client.on("ready", () => {
  console.log("Ready to go")
})

client.on("message", async message => {
  if(message.content === "!meme") {
    let data = await random.getMeme()
    message.channel.send(data)
  }
})


client.login("TOKEN")

DOCUMENTATION

getMeme(): Provieds You the JSON embed with meme image and title.

  let data = await random.getMeme()
    message.channel.send(data)

getAdvice(): Provieds You a random advice.

  let data = await random.getAdvice()
    message.channel.send(data)

getNeko(): Provieds You a random neko image.

 let data = await random.getNeko()
    message.channel.send(data)

getRandomJoke(): Provieds You a Random Funny Joke.

 let data = await random.getRandomJoke()
    message.channel.send(data)

getNameJoke(): Provieds You a Random Funny Joke related to your name.

 let data = await random.getNameJoke("ctk", "warrior")
    message.channel.send(data)

getAnimeImgURL(type): Provied you a random image url of anime(based on action), availabe actions are "pat", "hug", "waifu", "cry", "kiss", "slap", "smug", "punch"

 let data = await random.getAnimeImgURL("cry")
    message.channel.send(data)

getFact(): Provides you a random fact.

let data = await random.getFact();
    message.channel.send(data);

getNPM(): it provides the information of given package.

let data = await random.getNPM("discord.js");
    message.channel.send(data);

ServerAssistant

const srod = require("something-random-on-discord").ServerAssistant

isHoisted(): Checks if the given name is hoisted or not.

srod.isHoisted("! Mattechi276") //returns true

isURL(): Checks wheather given link is url or not.

srod.isURL("https://withwin.in") //returns true

[ New ] checkProfanity(string): Check wheather if string contains any bad word

srod.checkProfanity("fuck you lmao").then(string => {
 //returns  { profanity: true }
})

FEEL FREE TO JOIN OUR SERVER

CTK'S SERVER => JOIN OR DIE

something-random-on-discord's People

Contributors

ctk-warrior avatar ttury avatar yodalightsabr avatar yuu0007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

something-random-on-discord's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.