Spaces:
Paused
Paused
File size: 565 Bytes
290c0c4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { dBinary } from '../../lib/binary.cjs';
import config from '../../config.cjs';
const dbinary = async (m, gss) => {
const prefix = config.PREFIX;
const cmd = m.body.startsWith(prefix) ? m.body.slice(prefix.length).split(' ')[0].toLowerCase() : '';
const text = m.body.slice(prefix.length + cmd.length).trim();
const validCommands = ['dbinary'];
if (validCommands.includes(cmd)) {
if (!text) return m.reply('Please provide a text.');
let db = await dBinary(text)
m.reply(db)
}
};
export default dbinary; |