Skip to main content

When I want to run the bot on the server, I get an error while defining a variable. The code works locally. I don't understand why it doesn't work on the server. Does anyone have an idea?

That’s an interesting question, akif.ormanci !

I think the following community members may be able to help 

@ChanduMohammad 

@Tamil Arasu10 

@Olatidoye 

@KhaledMostafaMe 

@Theertha K S 


Can you please share screenshot of the code? where it fails? 

 

Hi ​@akif.ormanci ,

 

Below mentioned are the common causes for this error. Please check and see if you have missed any.

  • Using incorrect variable syntax (missing $ or $$).
  • Referencing a variable that is not defined or out of scope.
  • Incorrect concatenation or expression format.
  • Using variables inside strings without proper syntax.
  • Mismatched brackets or quotes in expressions.

Reply