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

bot not responding on twitter #4

Open
vyomanaut opened this issue Oct 3, 2019 · 3 comments
Open

bot not responding on twitter #4

vyomanaut opened this issue Oct 3, 2019 · 3 comments

Comments

@vyomanaut
Copy link

i took your echo bot sample , added credentials to the appsettings json file from my twitter dev account .
Here's how the appsettings.json looks :

{
  "MicrosoftAppId": "",
  "MicrosoftAppPassword": "",
  "ScmType": "None",
  "TwitterOptions": {
    "WebhookUri": "https://proximabothh.azurewebsites.net//twitter/adapter",
    "AccessSecret": "",
    "AccessToken": "",
    "ConsumerKey": "",
    "ConsumerSecret": "",
    "Environment": "MrRocketFace",
    "Tier": "PremiumFree", // Available values [ "PremiumFree", "PremiumPaid", "Enterprise" ]
    "BotUsername": "MrRocketFace", // Configure your bot twitter screen name. This is used to detect messages originating from the bot to prevent recursion
    "AllowedUsernames": [] // If configured, the bot will only respond to these usernames. Leave empty to respond to everyone
  }
}

published the bot to my azure site using a publish profile i downloaded from azure .
the bot neither responds to DMs nor tweets .

what exactly am i doing wrong here ? i have not messed with your code except the appsettings .

does it take a few days for twitter to authenticate ?

i couldnt find help anywhere else on this issue .

@tmarkovski
Copy link
Owner

Hi @vyomanaut,

Did you try to run this locally first by configuring an Ngrok Webhooks pointing back to you? Twitter Webhooks are configured right away, configuration happens when the NET Core host is starting, so all you have to do is wake up the deployed instance once by calling https://proximabothh.azurewebsites.net/ from a browser.
I strongly advice you to try and make it work first locally.

@vyomanaut
Copy link
Author

sure , thanks for the advice , will look into it .

@hemkay
Copy link

hemkay commented Jan 31, 2021

Hi @tmarkovski , I did try using the Ngrok on my local host and it keeps working fine. But after deploying it to Azure I will not get a response again. I did get a response once then that is all. What could I be doing wrong (I did not change the webURI from the ngrok endpoint as it was said it will be changed automatically when deployed)

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

3 participants