Skip to content

Instantly share code, notes, and snippets.

@lyfe00011
Last active May 11, 2022 05:20

Revisions

  1. lyfe00011 revised this gist Feb 8, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions lyrics.js
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@ const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    if(!match) return await message.sendMessage('Give me input')
    let { status, result } = await getJson(`https://early-pie-production.up.railway.app/lyrics?name=${match}`)
    if (!status) return await message.sendMessage(result)
    return await message.sendMessage('```' + result + '```', { quoted: message.data });
  2. lyfe00011 revised this gist Feb 6, 2022. 2 changed files with 8 additions and 11 deletions.
    8 changes: 8 additions & 0 deletions lyrics.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status, result } = await getJson(`https://early-pie-production.up.railway.app/lyrics?name=${match}`)
    if (!status) return await message.sendMessage(result)
    return await message.sendMessage('```' + result + '```', { quoted: message.data });
    });
    11 changes: 0 additions & 11 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status, result } = await getJson(`https://untitled-3lmot7du2tk1.runkit.sh/lyrics?name=${match}`)
    if (!status) return await message.sendMessage(result)
    let { title, author, lyrics} = result
    return await message.sendMessage('```' + `Title : ${title}\n
    Author : ${author}\n
    Lyrics : ${lyrics}` + '```', { quoted: message.data });
    });
  3. lyfe00011 revised this gist Jan 26, 2022. 1 changed file with 0 additions and 7 deletions.
    7 changes: 0 additions & 7 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,5 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")
    /*
    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-3lmot7du2tk1.runkit.sh/news')
    const msg = result.map({title} => title).join('\n\n')
    return await message.sendMessage(msg)
    })
    */
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status, result } = await getJson(`https://untitled-3lmot7du2tk1.runkit.sh/lyrics?name=${match}`)
  4. lyfe00011 revised this gist Jan 22, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,12 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")

    /*
    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-3lmot7du2tk1.runkit.sh/news')
    const msg = result.map({title} => title).join('\n\n')
    return await message.sendMessage(msg)
    })
    */
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status, result } = await getJson(`https://untitled-3lmot7du2tk1.runkit.sh/lyrics?name=${match}`)
  5. lyfe00011 revised this gist Jan 21, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,8 @@ const { getJson } = require("../Utilis/download")

    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-3lmot7du2tk1.runkit.sh/news')
    return await message.sendMessage(result)
    const msg = result.map({title} => title).join('\n\n')
    return await message.sendMessage(msg)
    })
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
  6. lyfe00011 revised this gist Dec 2, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@ const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")

    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://lyfe00011.herokuapp.com/news')
    let { result } = await getJson('https://untitled-3lmot7du2tk1.runkit.sh/news')
    return await message.sendMessage(result)
    })
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status, result } = await getJson(`https://lyfe00011.herokuapp.com/lyrics?name=${match}`)
    let { status, result } = await getJson(`https://untitled-3lmot7du2tk1.runkit.sh/lyrics?name=${match}`)
    if (!status) return await message.sendMessage(result)
    let { title, author, lyrics} = result
    return await message.sendMessage('```' + `Title : ${title}\n
  7. lyfe00011 revised this gist Nov 3, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@ const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")

    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-1ouyr1rszhaw.runkit.sh/news')
    let { result } = await getJson('https://lyfe00011.herokuapp.com/news')
    return await message.sendMessage(result)
    })
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status, result } = await getJson(`https://untitled-1ouyr1rszhaw.runkit.sh/lyrics?name=${match}`)
    let { status, result } = await getJson(`https://lyfe00011.herokuapp.com/lyrics?name=${match}`)
    if (!status) return await message.sendMessage(result)
    let { title, author, lyrics} = result
    return await message.sendMessage('```' + `Title : ${title}\n
  8. lyfe00011 revised this gist Sep 10, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,8 @@ Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayala
    })
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status,result } = await getJson(`https://untitled-1ouyr1rszhaw.runkit.sh/lyrics?name=${match}`)
    if(!status)return await message.sendMessage(result)
    let { status, result } = await getJson(`https://untitled-1ouyr1rszhaw.runkit.sh/lyrics?name=${match}`)
    if (!status) return await message.sendMessage(result)
    let { title, author, lyrics} = result
    return await message.sendMessage('```' + `Title : ${title}\n
    Author : ${author}\n
  9. lyfe00011 revised this gist Sep 10, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@ const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/download")

    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-gckj20h3j6vq.runkit.sh/news')
    let { result } = await getJson('https://untitled-1ouyr1rszhaw.runkit.sh/news')
    return await message.sendMessage(result)
    })
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status,result } = await getJson(`https://untitled-gckj20h3j6vq.runkit.sh/lyrics?name=${match}`)
    let { status,result } = await getJson(`https://untitled-1ouyr1rszhaw.runkit.sh/lyrics?name=${match}`)
    if(!status)return await message.sendMessage(result)
    let { title, author, lyrics} = result
    return await message.sendMessage('```' + `Title : ${title}\n
  10. lyfe00011 revised this gist Sep 9, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/donwload")
    const { getJson } = require("../Utilis/download")

    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-gckj20h3j6vq.runkit.sh/news')
  11. lyfe00011 revised this gist Sep 9, 2021. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,11 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/donwload")
    Asena.addCommand(
    { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." },
    async (message, match) => {

    Asena.addCommand( { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." }, async (message, match) => {
    let { result } = await getJson('https://untitled-gckj20h3j6vq.runkit.sh/news')
    return await message.sendMessage(result)
    })
    Asena.addCommand(
    { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status,result } = await getJson(`https://untitled-gckj20h3j6vq.runkit.sh/lyrics?name=${match}`)
    if(!status)return await message.sendMessage(result)
  12. lyfe00011 revised this gist Sep 9, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -15,5 +15,4 @@ Asena.addCommand(
    return await message.sendMessage('```' + `Title : ${title}\n
    Author : ${author}\n
    Lyrics : ${lyrics}` + '```', { quoted: message.data });
    }));
    })
    });
  13. lyfe00011 revised this gist Sep 9, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ Asena.addCommand(
    return await message.sendMessage(result)
    })
    Asena.addCommand(
    { pattern: 'lyrics ?(.*)', fromMe: true, desc: "News in malayalam." },
    { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." },
    async (message, match) => {
    let { status,result } = await getJson(`https://untitled-gckj20h3j6vq.runkit.sh/lyrics?name=${match}`)
    if(!status)return await message.sendMessage(result)
  14. lyfe00011 created this gist Sep 9, 2021.
    19 changes: 19 additions & 0 deletions lyrics_news.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    const Asena = require("../Utilis/events")
    const { getJson } = require("../Utilis/donwload")
    Asena.addCommand(
    { pattern: 'news ?(.*)', fromMe: true, desc: "News in malayalam." },
    async (message, match) => {
    let { result } = await getJson('https://untitled-gckj20h3j6vq.runkit.sh/news')
    return await message.sendMessage(result)
    })
    Asena.addCommand(
    { pattern: 'lyrics ?(.*)', fromMe: true, desc: "News in malayalam." },
    async (message, match) => {
    let { status,result } = await getJson(`https://untitled-gckj20h3j6vq.runkit.sh/lyrics?name=${match}`)
    if(!status)return await message.sendMessage(result)
    let { title, author, lyrics} = result
    return await message.sendMessage('```' + `Title : ${title}\n
    Author : ${author}\n
    Lyrics : ${lyrics}` + '```', { quoted: message.data });
    }));
    })