Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kurozann/database
- Owner: KuroZann
- License: other
- Created: 2024-06-16T12:03:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T11:03:48.000Z (4 months ago)
- Last Synced: 2024-09-07T12:24:47.994Z (4 months ago)
- Topics: data-center, data-engineering, database
- Language: JavaScript
- Homepage:
- Size: 636 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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;
```