How can i run a nodejs server on a node-red flow

I have made a discord bot in nodejs.
now i have the question how can i run it from node-red?

Depending on your code, you most likely have to create a node.

But there are nodes available to create chatbots, including discord.

Not sure why that would be helpful?

If you have a server, run it natively. If you need to communicate with it, add a simple API, socket or similar.