there is an error
I have no idea how to use the discord bot api with nodejs
However judging from the
TypeError, you are attempting to get an attribute of an undefined value "bot.command". Looking at the rest of your code, maybe it's supposed to be "bot.commands".