Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kurozann/database

Useful repository for my bot database
https://github.com/kurozann/database

data-center data-engineering database

Last synced: about 2 months ago
JSON representation

Useful repository for my bot database

Awesome Lists containing this project

README

        

# example for plugins
```
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;
```