grupo-setwelcome.js 850 B

123456789101112
  1. const handler = async (m, {conn, text, isROwner, isOwner}) => {
  2. if (text) {
  3. global.db.data.chats[m.chat].sWelcome = text;
  4. m.reply('*โœ… ๐Œ๐ž๐ง๐ฌ๐š๐ฃ๐ž ๐๐ž ๐›๐ข๐ž๐ง๐ฏ๐ž๐ง๐ข๐๐š ๐œ๐จ๐ง๐Ÿ๐ข๐ ๐ฎ๐ซ๐š๐๐จ ๐œ๐จ๐ซ๐ซ๐ž๐œ๐ญ๐š๐ฆ๐ž๐ง๐ญ๐ž ๐ฉ๐š๐ซ๐š ๐ž๐ฌ๐ญ๐ž ๐ ๐ซ๐ฎ๐ฉ๐จ*');
  5. } else throw `*โš ๏ธ ๐ข๐ง๐ ๐ซ๐ž๐ฌ๐ž ๐ž๐ฅ ๐ฆ๐ž๐ง๐ฌ๐š๐ฃ๐ž ๐๐ž ๐›๐ข๐ž๐ง๐ฏ๐ž๐ง๐ข๐๐š ๐ช๐ฎ๐ž ๐๐ž๐ฌ๐ž๐ž ๐š๐ ๐ซ๐ž๐ ๐š๐ซ, ๐ฎ๐ฌ๐ž:*\n*- @user (menciรณn)*\n*- @group (nombre de grupo)*\n*- @desc (description de grupo)*`;
  6. };
  7. handler.help = ['setwelcome <text>'];
  8. handler.tags = ['group'];
  9. handler.command = ['setwelcome'];
  10. handler.admin = true;
  11. handler.register = true
  12. export default handler;