-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaudiocmds.js
24 lines (20 loc) · 1.87 KB
/
audiocmds.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const skl = require('../events');
const {MessageType} = require('@adiwajshing/baileys');
const axios = require ('axios')
const Config = require('../config');
if (Config.WORKTYPE == 'private') {
skl.addCommand({pattern: 'audio', fromMe: true, desc: 'Gives audio commands' , dontAddCommandList: true }, async (message, match) => {
const cmd = "```Ayin```\n```Ayinu```\n```Bgm```\n```Bot```\n```Bye```\n```Good night```\n```Hello```\n```Hi```\n```Neymar```\n```Pm```\n```Sed```\n```alive```\n```assist```\n```ban```\n```bgm```\n```bot```\n```converting```\n```fake```\n```fork```\n```fuck```\n```music```\n```myre```\n```njan```\n```number```\n```oombi```\n```poda```\n```raganork```\n```remove```\n```reply```\n```sed```\n```subscribe```\n```xxxtentation```";
const {data} = await axios(`https://gist.github.com/souravkl11/f9a683c137a67af4133f62b60951f973`)
const { souravkl11 } = data
await message.client.sendMessage(message.jid, cmd, MessageType.text, { quoted: message.data });
});
}
if (Config.WORKTYPE == 'public') {
skl.addCommand({pattern: 'audio', fromMe: false, desc: 'Gives audio commands' , dontAddCommandList: true }, async (message, match) => {
const cmd = "```Ayin```\n```Ayinu```\n```Bgm```\n```Bot```\n```Bye```\n```Good night```\n```Hello```\n```Hi```\n```Neymar```\n```Pm```\n```Sed```\n```alive```\n```assist```\n```ban```\n```bgm```\n```bot```\n```converting```\n```fake```\n```fork```\n```fuck```\n```music```\n```myre```\n```njan```\n```number```\n```oombi```\n```poda```\n```raganork```\n```remove```\n```reply```\n```sed```\n```subscribe```\n```xxxtentation```";
const {data} = await axios('https://gist.github.com/souravkl11/f9a683c137a67af4133f62b60951f973')
const { souravkl11 } = data
await message.client.sendMessage(message.jid, cmd, MessageType.text, { quoted: message.data });
});
}