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

Welcome message spam #7

Open
revission opened this issue Sep 2, 2019 · 8 comments
Open

Welcome message spam #7

revission opened this issue Sep 2, 2019 · 8 comments

Comments

@revission
Copy link

I noticed that I'm receiving the welcome message repeatedly, even when making no changes to the setup myself. Roughly 2am Pacific daily, I have the bot saying hello, and presenting the schedule.

While I'm hopeful this will end when the season officially starts, I was curious if there's a way to prevent/disable the welcome message after the user confirms it was setup properly. I'd like to integrate this into my primary league chat, but currently I have it running in a test channel to avoid hitting that channel nightly :-)

In any case, thank you for your time invested into this!

@SwapnikKatkoori
Copy link
Owner

@revission Thanks for bringing this issue up. I am pretty sure that it is crashing because the season hasn't started yet and the bot is restarting every day as a result.

If it still does this after the season starts, I will add an environment variable that allows disabling the welcome message so it doesn't spam.

@revission
Copy link
Author

revission commented Sep 6, 2019

Just happened again. Had a schedule post properly for our matchups this week, but I just got yet another 'Welcome Message' anyhow :-)

image

@SwapnikKatkoori
Copy link
Owner

Ok I think I know where the problem is. A fix is on the way (hopefully).

@SwapnikKatkoori
Copy link
Owner

Is your bot on Discord, Slack, or Groupme?

@SwapnikKatkoori
Copy link
Owner

@revission It should hopefully work now. You will need to delete the bot and make a new one.

Steps:
1.) Go to https://dashboard.heroku.com/apps/NAME_OF_YOUR_BOT/settings and click "Reveal config vars"
2.) Copy the config vars that you need for discord.
3.) Go to the bottom of that page and delete the bot.
4.) Follow these steps to relaunch a new bot https://github.com/SwapnikKatkoori/sleeper-ff-bot#deploy-the-bot

Sorry for the tedious steps. Lmk if it keeps spamming after this fix.

@revission
Copy link
Author

revission commented Sep 6, 2019

Sounds good. I'll work on that and let you know how it looks going forward.

EDIT: New bot is deployed and welcome message received. I'll let you know how the next week or so goes.

@revission
Copy link
Author

Just got another 'Welcome' :-)

@SwapnikKatkoori
Copy link
Owner

I think that it broke again :(
The sleeper api is causing some unforeseen errors that I'll need to fix when I have more time. I would take the bot down on Herkou for now to avoid the spam.

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