Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PREFIX not working #1

Open
greggtitiusnana opened this issue Mar 15, 2020 · 3 comments
Open

PREFIX not working #1

greggtitiusnana opened this issue Mar 15, 2020 · 3 comments

Comments

@greggtitiusnana
Copy link

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?

@codetheweb
Copy link
Owner

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.

@greggtitiusnana
Copy link
Author

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.

@codetheweb
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants