Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
ReferenceError: StartDelimiter is not defined

So, I am trying to create a discord bot that acts similar to the not quite nitro bot. Launching the bot has no problems, but the problem arises from when I attempt to use the bot.

after using the bot for its function, it throws this error in the terminal:

ReferenceError: StartDelimiter is not defined

at get_substrings_between (C:\Users\\Nitrolite\index.js:65:32)
at Client.<anonymous> (C:\Users\\Nitrolite\index.js:12:26)
at Client.emit (node:events:527:28)
at MessageCreateAction.handle (C:\Users\\Nitrolite\node_modules\discord.js\src\client\actions\MessageCreate.js:26:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\\Nitrolite\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)   
at WebSocketManager.handlePacket (C:\Users\\Nitrolite\node_modules\discord.js\src\client\websocket\WebSocketManager.js:351:31)
at WebSocketShard.onPacket (C:\Users\\Nitrolite\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\\Nitrolite\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\\Nitrolite\node_modules\ws\lib\event-target.js:199:18)
at WebSocket.emit (node:events:527:28)

as for the lines of code themselves:

    var StartDelimiterLength = StartDelimiter.length;
function get_substrings_between(str, startDelimiter, endDelimiter) {
    let substringArray = get_substrings_between(message.content, ":", ":");

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!