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

Update the bot when starting the server #3927

Closed
wants to merge 5 commits into from
Closed

Update the bot when starting the server #3927

wants to merge 5 commits into from

Conversation

bruvv
Copy link
Contributor

@bruvv bruvv commented Aug 14, 2016

Short Description:

I think it's a good idea that people will be forced to always update to the latest github version. Just to get them not banned for example and help the noobs out.

@mention-bot
Copy link

@nivong, thanks for your PR! By analyzing the annotation information on this pull request, we identified @simonsmh, @03t02 and @devn0ll to be potential reviewers

@devn0ll
Copy link
Contributor

devn0ll commented Aug 14, 2016

@nivong do you wan to put pip install -r requirements.txt in there too ? To make shure that if new requieremts come out that is save too ?

@bruvv
Copy link
Contributor Author

bruvv commented Aug 14, 2016

ah yea forgot about that, will it also be usefull to put in
pip install -r requirements.txt --upgrade after?
ref: #3836

@BreezeRo
Copy link
Contributor

That's never a good idea, if you want to update your project automatically you could use a cron job on your own set up

@simonsmh
Copy link
Contributor

no it's not a good idea if dev is broken. close it and find a better way.

@danielsdian
Copy link
Contributor

If the user installed the Master version, it will update it, right? even if dev is broken, the idea is for the users to run the Master version?

@thanhtran0302
Copy link
Contributor

thanhtran0302 commented Aug 14, 2016

If I want to update, I prefer to do it myself, because sometime there is some modification that I don't want to update. And the role of run.sh is not to update the repo.

It's a bad idea to put theses lines in this script

@simonsmh
Copy link
Contributor

simonsmh commented Aug 14, 2016

Do you really want to notice the user that they have an update?
First git fetch
Then if git log = git log origin/dev(or master(how to check it automatically?))
Echo something like you have an update blablabla.
This is much better than force update.

In setup.sh I force all user to use dev branch which is a mistake. It should be fixed by creating another function to re sync to master.
@nivong

@MZorzy
Copy link

MZorzy commented Aug 14, 2016

And what about config.json modifications ?

@danielsdian
Copy link
Contributor

Why shouldnt the average user be automatically updated? Cant we make it so that if you are using the Master branch you get the update and if you are in the dev branch you dont and need to do it manually?

@devn0ll
Copy link
Contributor

devn0ll commented Aug 14, 2016

@danielsdian sounds good to me. I think on dev its alwyas better to update manualy

@BreezeRo
Copy link
Contributor

+1 @danielsdian

@douglascamata
Copy link
Member

Not a good idea, imho. What if I find a good commit and want to stick with it no matter what?

@bruvv
Copy link
Contributor Author

bruvv commented Aug 15, 2016

Maybe change it that it only updates the master branche and that we add a configuration option to disable it.

@simonsmh
Copy link
Contributor

simonsmh commented Aug 15, 2016

We should make it automatically. Does anyone knows how to check branch is on master or dev?

root@simonsmh:~/PokemonGo-Bot# git branch -vv

Is it fit to use?

@acc3s
Copy link

acc3s commented Aug 15, 2016

git branch -m - would be better I think

@simonsmh
Copy link
Contributor

simonsmh commented Aug 15, 2016

Git branch -vv|grep "* master"
I am going to fix all things about it and open a new pr.

https://github.com/simonsmh/PokemonGo-Bot/blob/patch-9/run.sh
It's done.
#4003

@bruvv
Copy link
Contributor Author

bruvv commented Aug 15, 2016

thanks closing this one. Thanks @simonsmh

@bruvv bruvv closed this Aug 15, 2016
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

Successfully merging this pull request may close these issues.

10 participants