Organize este código: qtxt = args.join(" ").replace(" /", "/").replace("/ ",…
- User
Organize este código:
qtxt = args.join(" ").replace(" /", "/").replace("/ ", "/").replace("1m", "60000").replace("2m", "120000").replace("3m", "180000").replace("30m", "1800000").replace("1h", "3600000").replace("2h", "7200000").replace("7h", "25200000") txt1 = qtxt.split("/")[0] txt2 = qtxt.split("/")[1] var fcgp = { tempo1: txt1, tempo2: txt2, grupo: from } if(!fs.existsSync(
./func/fechar-abrir-gp-${from}.json)) { fs.writeFileSync(./func/fechar-abrir-gp-${from}.json, JSON.stringify(fcgp, null, 2)); } else { if (fs.existsSync("./func/fechar-abrir-gp-" + from + ".json")) { fs.unlinkSync("./func/fechar-abrir-gp-" + from + ".json"); fs.writeFileSync(./func/fechar-abrir-gp-${from}.json, JSON.stringify(fcgp, null, 2)); } } reply(Tempo de fechar o grupo e abrir em tal horário foi programado com sucesso..) const tempodttl = JSON.parse(fs.readFileSync(./func/fechar-abrir-gp-${from}.json)); setTimeout(async () => { reply("Grupo Fechado..") await client.groupSettingUpdate(from, 'announcement')
},${tempodttl.tempo1}) setTimeout(async () => { reply("Grupo Aberto..") await client.groupSettingUpdate(from, 'not_announcement')
},${tempodttl.tempo2}) breakcase 'ausente': case 'off': case 'afk': if (!isOwner) return reply(resposta.dono) msgtmp = moment.tz('America/Sao_Paulo').format('HH:mm:ss'); nmrdnofc = infoBot.numeroDono ? infoBot.numeroDono.replace(new RegExp("[()+-/ +/]", "gi"), "") : ""; msgz = args.join(" "); var catmsgaus = { Ausente_Desde: msgtmp, Motivo_Da_Ausência: msgz }; if (!fs.existsSync(
./func/afk-@${nmrdnofc}.json)) { fs.writeFileSync(./func/afk-@${nmrdnofc}.json, JSON.stringify(catmsgaus, null, 2)); } else { if (fs.existsSync(./func/afk-@${nmrdnofc}.json)) { fs.unlinkSync(./func/afk-@${nmrdnofc}.json); fs.writeFileSync(./func/afk-@${nmrdnofc}.json, JSON.stringify(catmsgaus, null, 2)); } } reply(Mensagem de ausência criada com sucesso..., { quoted: selo }); break; - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.