API-XX commited on
Commit
1f3accf
Β·
verified Β·
1 Parent(s): 166e279

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +3 -3
case.js CHANGED
@@ -3041,17 +3041,17 @@ case 'play':
3041
  case 'nsfw': {
3042
  if (!isGroup) return reply(mess.only.group)
3043
  if (!isGroupAdmins && !isOwner) return reply(mess.only.admin)
3044
- if (args.length < 1) return reply('*Enable or disable? Use: ᴏɴ/ᴏꜰꜰ*')
3045
  if (args[0] === 'on') {
3046
  db.data.chats[from].nsfw = true
3047
- reply(`*\`${command} has been enabled in this group\`*`)
3048
  let warning = fontx(`
3049
  *γ€Œ ⚠️ π–π€π‘ππˆππ† ⚠️ 」*\nThe NSFW (Not Safe For Work) feature has been activated in this group. As a result, explicit content may be accessible through the bot. Please proceed with caution and ensure compliance with community guidelines.
3050
  `)
3051
  m.reply(warning)
3052
  } else if (args[0] === 'off') {
3053
  db.data.chats[from].nsfw = false
3054
- reply(`*\`${command} has been disabled in this group\`*`)
3055
  }
3056
  }
3057
  break
 
3041
  case 'nsfw': {
3042
  if (!isGroup) return reply(mess.only.group)
3043
  if (!isGroupAdmins && !isOwner) return reply(mess.only.admin)
3044
+ if (args.length < 1) return reply('Enable or disable? Use: ᴏɴ/ᴏꜰꜰ')
3045
  if (args[0] === 'on') {
3046
  db.data.chats[from].nsfw = true
3047
+ reply(`${command} has been enabled in this group`)
3048
  let warning = fontx(`
3049
  *γ€Œ ⚠️ π–π€π‘ππˆππ† ⚠️ 」*\nThe NSFW (Not Safe For Work) feature has been activated in this group. As a result, explicit content may be accessible through the bot. Please proceed with caution and ensure compliance with community guidelines.
3050
  `)
3051
  m.reply(warning)
3052
  } else if (args[0] === 'off') {
3053
  db.data.chats[from].nsfw = false
3054
+ reply(`${command} has been disabled in this group`)
3055
  }
3056
  }
3057
  break