PREFIX not working
So I did everything correctly and it was able to start without any error... But the problem here is that I don't know how I can use the prefix to do what's it's supposed to do. In the prefix environment variable, I put '?' as the prefix. Do you have any idea what might cause this problem?
Sorry, not quite clear on what you're asking.
As a test, if DISCORD_PREFIX=? and DISCORD_HELP_MESSAGE=some_str, then doing ?help in a DM with the bot or in a channel it has access to should return the help message.
I don't know why but when I use the command '?help' it didn't work. I've given the bot admin permission to make sure it's not because of it. But it still doesn't work. I've put every environment variables and every value you asked to add. In my GOOGLE_APPLICATION_CREDENTIALS I put the directory to my key which is C:\Users\Win7\Desktop\dialogflow-to-discord-masterkey.json(my key name, not key.json). I ran the command 'node index.js' in my terminal inside the folder. The message after the command says "Ready!" but it didn't work. I've tried regenerating the token and changing the DISCORD_TOKEN with the new token. I didn't change anything inside my key.json, which I got from the google cloud platform and setting them up. I gave it all of the Dialogflow roles I could possibly give, but nothing more than that. I put my own Gmail when I was asked to fill the service account user role. I also filled the service account admins role with my own Gmail. I then generate the key and saved it as a .JSON file.
I haven't used this in a while, but it seems like you have it configured correctly.
What happens if you try to DM the bot?