1.5.2 • Published 4 years ago

application.js v1.5.2

Weekly downloads
7
License
MIT
Repository
-
Last release
4 years ago

Youtube Notifier Added

Our Staff Is add a youtube notifier for you!

EXAMPLE

const http = require("http");
const express = require("express");
const app = express();
var server = http.createServer(app);

app.get("/", (request, response) => {
  console.log(`Ping Received.`);
  response.writeHead(200, { "Content-Type": "text/plain" });
  response.end("DISCORD BOT YO");
});

const listener = server.listen(process.env.PORT, function() {
  console.log(`Your app is listening on port ` + listener.address().port);
});


const discord = require("discord.js")
const client = new discord.Client()
const { TOKEN, CHANNEL_ID, SERVER_CHANNEL_ID } = require("./config.json");
const ApplicationClient = require('application.js');


client.on("ready", () => {
  console.log("Watching " + CHANNEL_ID.length  + " Channels")
})

const applidation = new ApplicationClient({
  hubCallback: 'https://necessary-probable-slouch.glitch.me/yt',
  secret: 'JOIN_MY_SERVER_OR_DIE'
});


application.on('notified', data => {
  console.log('New Video');
  client.channels.cache.get(SERVER_CHANNEL_ID).send(
    `**${data.channel.name}** just uploaded a new video - **${data.video.link}**`
  );
});
 
application.subscribe(CHANNEL_ID);

app.use("/yt", application.listener());


client.login(TOKEN)

config.json EXAMPLE

{
  "TOKEN": "",
  "CHANNEL_ID": ["UC8PayvChcsfei4dG5MhaexA"],
  "SERVER_CHANNEL_ID": "735118044145123348"
}

Project Applîcation

Hello, We Are Project Application Developers. We Make This NPM Package to make your code easier! You can See A List Of Commands Below, also you can see how to install our package in a video!

List Of Random Commands

  • GET RANDOM ADVICE
  • GET RANDOM NEKO IMAGE
  • GET RANDOM ANIME IMAGE(BASED ON ACTION)
  • GET RANDOM MEME
  • GET RANDOM JOKES
  • GET RANDOM STING(BASED ON GIVEN NUMBER)
  • GET RANDOM KPOP SINGER

SETUP

const discord = require("discord.js")
const client = new discord.Client()
const { Application } = require("application.js")
const application = new Application();


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

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


client.login("TOKEN")

USE OF RANDOM COMMANDS

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

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

getAdvice(): Provieds You a random advice.

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

getString(number): Provieds You a random string, length will be based on the number you gave.

 let data = await application.getString(6)
    message.channel.send(data)

getNeko(): Provieds You a random neko image.

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

getJoke(): Provieds You a Random Funny Joke.

 let data = await application.getJoke()
    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 application.getAnimeImgURL("cry")
    message.channel.send(data)

getKpop(): Provide you a Random Kpop singer image and name.

let data = await application.getKpop()
    message.channel.send(data)

JOIN OUR SERVER

Project Applîcation Server => SOON

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.6

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.8.9

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago