let handler = async (m, { conn, args, usedPrefix, command }) => {
conn.chatRead(m.chat);
conn.sendMessage(m.chat, {
react: {
text: '🕒',
key: m.key,
}
});
try {
let res = await fetch(`https://raw.githubusercontent.com/KuroZann/DataBase/main/Anime/waifu.json`);
let json = await res.json();
let anu = json[Math.floor(Math.random() * json.length)];
await conn.sendFile(m.chat, anu, 'video.mp4', `*◦ Result from :* ${command}`, m);
} catch (error) {
console.log(error);
conn.sendMessage(m.chat, 'An error occurred while sending media', m);
}
};
handler.help = ['waifu'].map(v => v + ' */none*');
handler.tags = ['anime'];
handler.command = /^(waifu)$/i;
module.exports = handler;
-
Notifications
You must be signed in to change notification settings - Fork 0
Useful repository for my bot database
License
kurozann/DataBase
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Useful repository for my bot database
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published