Clarify why the update command fails on non git installs #3357
Labels
code improvement
feature request
priority: low
Something that's not on top of the list. You are free to submit a pull request though
Is your feature request related to a problem? Please elaborate.
When a user runs the ?update command, the bot will run
git pull
and then resetart itself. This is nice unless the bot isn't installed by git, which a lot of bots are not. The bot just spits out the raw error of not finding a .git folder which is confusing to most user.Describe the solution you'd like
I would suggest that the ?update command first checks the presence of a .git folder (and anything else required for update to work) before starting. If this isn't found, the bot should spit out a clear message to the user instructing that their hosting platform does not support automatic updates, and instructions on how to manually update.
Does your solution involve any of the following?
Describe alternatives you've considered
N/A
Who will this benefit?
This will mostly benefit users that are less known with git and programming as they will get more clear errors and instructions on what to do. It will also benefit support staff as they have to explain this less.
Additional Information
No response
The text was updated successfully, but these errors were encountered: