Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.run = {
- usage: ['genimage'],
- hiden: ['genimage'],
- use: 'text',
- category: 'utilities',
- async: async (m, {
- client,
- text,
- isPrefix,
- command,
- Func,
- args
- }) => {
- try {
- let old = new Date()
- await client.sendReact(m.chat, '🕒', m.key)
- let [prompt, model, sampler] = text.split`|`
- const json = await Api.neoxr('/genimg', {
- prompt: prompt,
- model: model,
- sampler: sampler
- })
- if (!json.status) return client.reply(m.chat, global.status.fail, m)
- let data = json.data
- //client.reply(m.chat, data, m)
- client.sendFile(m.chat, data.url, ``, `🍟 *Process* : ${((new Date - old) * 1)} ms`, m)
- } catch (e) {
- client.reply(m.chat, Func.jsonFormat(e), m)
- }
- },
- error: false,
- limit: true,
- cache: true,
- location: __filename
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement