Whenever I try to execute my script it gives the error “SyntaxEror: Unexpected token ‘case’

I coded myself a bot but it doesnt seem to be working, it keeps giving the error:

case prefix + "pois":
^^^^

SyntaxError: Unexpected token 'case'

I have tried alot of stuff to check what the problems is.
I have tried installing node.js, discord.js, npm and done npm i in the shell but still does not work. (I am trying to run it on Replit). I’m new to coding so please if anyone knows the answer tell it in an easy way that a beginner coder can understand.
Here is my index.js:

var prefix = '$'

case prefix + "pois":

                var id = parseInt(args[1])

                if (id) {
                  fetch(`https://www.rolimons.com/uaid/` + id).then(res => res.text()).then(res => {
                    //// clog(res)
                    if (res != 'Uaid not found, try again later') {
                      var search = res,
                        first = 'uaid_details'
                      var second = `owner_list`;
                      var itemdat = JSON.parse(search.substring(search.indexOf(first) + first.length, search.indexOf(second)).replace(";", "").replace("=", "").replace("var", ''))
                      // clog(itemdat)
                      var search = res,
                        first = 'item_details'
                      var second = `uaid_details`;
                      var itemname = JSON.parse(search.substring(search.indexOf(first) + first.length, search.indexOf(second)).replace(";", "").replace("=", "").replace("var", ''))
                      var search = res,
                        first = 'owner_list'
                      var second = `lucky_cat_uaid`;
                      var owners = JSON.parse(search.substring(search.indexOf(first) + first.length, search.indexOf(second)).replace(";", "").replace("=", "").replace("var", ''))
                      message.reply(`Scanning...`)
                      var em = new discord.MessageEmbed()
                        .setFooter("Ascension||discord.gg/ascension")
                        .setURL("https://www.rolimons.com/item/" + args[1])
                        .setColor("#ffc0cb")
                        .setThumbnail("https://www.roblox.com/thumbs/asset.ashx?width=420&height=420&assetid=" + itemdat["asset_id"])
                        .setTitle(`UAID ` + args[1])
                        .setURL(`https://www.rolimons.com/uaid/` + args[1])
                        .setAuthor(itemname.name, `https://www.roblox.com/thumbs/asset.ashx?width=420&height=420&assetid=` + itemdat["asset_id"])
                      if (itemdata.serial) {
                        em.addField('SERIAL', itemdat.serial)
                      }
                      em.addField('OWNER', (itemdat.owner_name || `Hidden/Deleted`))
                      em.addField(`Last Traded`, itemdat["updated_relative_string"])
                      message.reply(em)
                      if (itemdat["updated_relative_string"].search(`month`) != -1 || itemdat["updated_relative_string"].search(`year`) != -1) {
                        message.channel.send(`Since the current owner has had it for more than a month, we have deemed this uaid(${args[1]}) as CLEAN :white_check_mark:`)

                      } else {
                        comped_detected = false

                        Object.keys(owners).forEach(x => {

                          var item = owners[x][0]
                          if (item && parseInt(x) + 2628000 >= Date.now() / 1000) {
                            fetch(`https://avatar.roblox.com/v1/users/${item}/avatar`).then(res => res.json().catch(err => { })).then(avatar => {
                              avatar.assets.forEach(a => {
                                if (badassets[a.id] != undefined) {
                                  comped_detected = true
                                }
                              })
                              fetch("https://inventory.roblox.com/v1/users/" + item + "/assets/collectibles?sortOrder=Asc&limit=100").then(res => res.json().catch(err => { })).then(p => {
                                // clog(p)
                                var amt = 0
                                if (p.data) {
                                  p.data.forEach(l => {
                                    amt = amt + itemdata[l.assetId][4]
                                  })
                                  if (amt < 5000) {
                                    comped_detected = true
                                  }
                                }
                              })
                            })
                          }
                        })

                        setTimeout(function() {
                          if (comped_detected) {
                            message.reply(`after scanning this uaid, the bot has determined that the uaid is :x: POIS`)
                          } else {

                            message.reply(`After scanning this uaid, the bot has determined that the uaid is :white_check_mark: CLEAN`)
                          }
                        }, 2000)
                      }
                    } else {
                      message.reply(`invalid UAID.`)
                    }
                  })

                } else {
                  message.reply(`please provide a UAID for us to scan.`)
                }

Again help is appreciated Im very new to coding.