Skip to content

Tag: node.js

Validating strings with Java and NodeJS

vo.getResultFun() and cod returns ‘G’ Java validation NodeJS isEqual Why NodeJS return the callback and Java don’t throws the exception? Answer The result of this js part : is false as the result of this java part: So there are several options : Validator.isNullUndefinedEmpty doesn’t w…

Not Found when serving express static file

I would like to access to a page of my web application. I created the server with expressJs and I serve the route by using app.use(express.static()). Here is my tree : In the app.js file, I have this : The line app.use(‘/MPS’, express.static(__dirname + ‘/client’)); work fine : when I …

Discordjs add space between prefix and command

I created a music bot that streams music when someone taps !play in-text channel Now I want to switch !play with please play but it response only with pleaseplay with no space between them and when I tried to change the code: but it doesn’t work at all with an error log (node:5296) UnhandledPromiseRejec…