Skip to content

Commit

Permalink
Removed zee5 module
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinpal committed Aug 15, 2021
1 parent 18a5c61 commit 9acba88
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 78 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
- **yt** - Download Youtube video from link
- **weather** - Lookup today's weather
- **carbon** - Generate beautiful image from text
- **jiosaavn** - Download a song from Jiosaavn Link
- **zee5** - Download a Zee5 content
- **sing** - Download a song by search
- **qr** - Generate QR from text
- **directlink** - Get direct link of photos
- **tr** - Translate Text
Expand All @@ -59,6 +58,8 @@
- **shorten** - Get Short URL
- **ocr** - Extract Text from Image

[More modules]("https://github.com/TheWhatsBot/WhatsBot/wiki/Commands")

### Deploy :

[![Deploy with Heroku](https://www.herokucdn.com/deploy/button.svg "Deploy with Heroku")](https://heroku.com/deploy?template=https://github.com/TheWhatsBot/WhatsBot "Deploy with Heroku")<br>
Expand Down
13 changes: 1 addition & 12 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const app = express();
const { Client, MessageMedia } = require('whatsapp-web.js');
const config = require('./config')
const qr = require('./modules/qr');
const zee = require('./modules/zee5');
const saavn = require('./modules/jiosaavn');
const pmpermit = require('./modules/pmpermit');
const carbon = require('./modules/carbon');
Expand Down Expand Up @@ -159,17 +158,7 @@ client.on('message_create', async (msg) => {
var data = await qr.qrgen(quotedMsg.body);
client.sendMessage(msg.to, new MessageMedia(data.mimetype, data.data, data.filename), { caption: `QR code for 👇\n` + "```" + quotedMsg.body + "```" });

} else if (msg.body.startsWith("!zee5 ")) { // Zee5 Module

msg.delete(true)
var data = await zee.mainF(msg.body.replace("!zee5 ", ""));
if (data == "error") {
client.sendMessage(msg.to, `🙇‍♂️ *Error*\n\n` + "```Something Unexpected Happened to fetch this Zee5 Content, Maybe it's a wrong url.```")
} else {
client.sendMessage(msg.to, new MessageMedia(data.image.mimetype, data.image.data, data.image.filename), { caption: `🎥 *${data.title}* _(${data.genre})_\n\n📄 ` + "```" + data.description + "```" + `\n\n*Stream Url* 👇\n${data.url}` });
}

} else if (msg.body.startsWith("!jiosaavn ")) { // Jiosaavn Module
} else if (msg.body.startsWith("!jiosaavn ")) { // Jiosaavn Module

msg.delete(true)
var data = await saavn.mainF(msg.body.replace("!jiosaavn ", ""));
Expand Down
2 changes: 1 addition & 1 deletion modules/jiosaavn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const axios = require('axios');
const downloadserverurl = "https://musicder.net/download/"
const downloadserverurl = "https://mder.pages.dev/download/"

async function mainF(url) {

Expand Down
2 changes: 1 addition & 1 deletion modules/song.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function download(songkey, id) {
return {
status: true,
content: {
text: `🎶 *${data.song}* _(${data.year})_\n\n📀 *Artist :* ` + "```" + data.singers + "```\n📚 *Album :* " + "```" + data.album + "```" + `\n\n*Download Url* 👇\nhttps://musicder.net/download/${data.id}`,
text: `🎶 *${data.song}* _(${data.year})_\n\n📀 *Artist :* ` + "```" + data.singers + "```\n📚 *Album :* " + "```" + data.album + "```" + `\n\n*Download Url* 👇\nhttps://mder.pages.dev/download/${data.id}`,
image: await image(data.image)
}
}
Expand Down
62 changes: 0 additions & 62 deletions modules/zee5.js

This file was deleted.

0 comments on commit 9acba88

Please sign in to comment.