# application.js

> Youtube Notifier Added!!! Project Applîcation Only!!!

Latest version **1.5.2** (published 2020-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install application.js
pnpm add application.js
yarn add application.js
bun add application.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.2 |
| Published | 2020-08-02 |
| First published | 2020-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 40.8 KB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | no |
| Author | sxpherr |
| Maintainers | sxpherr |
| Keywords | Sxpherr, random, images, jokes, advice, String, meme, neko, kpop |

## Links

- npm: https://www.npmjs.com/package/application.js
- Homepage: https://github.com/Sxpherr/application.js#readme
- Issues: https://github.com/Sxpherr/application.js/issues
- npm.io page: https://npm.io/package/application.js

## Dependencies (9)

- [url](https://npm.io/package/url.md) ^0.11.0
- [axios](https://npm.io/package/axios.md) ^0.19.2
- [crypto](https://npm.io/package/crypto.md) ^1.0.1
- [events](https://npm.io/package/events.md) ^3.2.0
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.23
- [express](https://npm.io/package/express.md) ^4.17.1
- [discord.js](https://npm.io/package/discord.js.md) ^12.2.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.5.2 (latest) — 2020-08-02
- 1.5.1 — 2020-08-02
- 1.5.0 — 2020-08-02
- 1.4.9 — 2020-08-02
- 1.4.8 — 2020-08-02
- 1.4.7 — 2020-08-01
- 1.4.5 — 2020-08-01
- 1.4.4 — 2020-08-01
- 1.4.3 — 2020-08-01
- 1.4.2 — 2020-08-01
- 1.4.1 — 2020-08-01
- 1.4.0 — 2020-08-01
- 1.3.9 — 2020-08-01
- 1.3.8 — 2020-08-01
- 1.3.7 — 2020-07-31
- … 40 more at https://npm.io/package/application.js/versions

## README

# Youtube Notifier Added
Our Staff Is add a youtube notifier for you!

# EXAMPLE
```js
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
```js
{
  "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
```js
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.
```js
  let data = await application.getMeme()
    message.channel.send(data)
```

**getAdvice()**: Provieds You a random advice.
```js
  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.
```js
 let data = await application.getString(6)
    message.channel.send(data)
```

**getNeko()**: Provieds You a random neko image.
```js
 let data = await application.getNeko()
    message.channel.send(data)
```

**getJoke()**: Provieds You a Random Funny Joke.
```js
 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"
```js
 let data = await application.getAnimeImgURL("cry")
    message.channel.send(data)
```

**getKpop()**: Provide you a Random Kpop singer image and name.
```js
let data = await application.getKpop()
    message.channel.send(data)
```

# JOIN OUR SERVER

Project Applîcation Server => **SOON**

---
_Source: https://npm.io/package/application.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
