Update README.md

This commit is contained in:
taniman 2017-12-14 23:13:04 +01:00 committed by GitHub
parent 836ac23e4a
commit 34092bdad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 54 deletions

View File

@ -19,58 +19,10 @@ https://t.me/joinchat/FWYlMkKK-mkrSuj836ehug
# Check out the wiki
https://github.com/taniman/profit-trailer/wiki/ProfitTrailer
https://wiki.profittrailer.io/
# How to run
Download the latest released jar file
https://github.com/taniman/profit-trailer/releases
1. Make sure you have java 8 installed on your system
2. Unzip ProfitTrailer.zip file
3. Fill your apiKeys and secrets in application.properties using notepad++
4. Make sure there are no invisible charters behind the apiKey and secret you fill in
5. Open a terminal or command prompt and type
6. CD to the ProfitTrailer directory
7. java -jar ProfitTrailer.jar -XX:+UseConcMarkSweepGC -Xmx256m -Xms256m
* On OSX or some linux versions you might need to sudo su and then run the java -jar command.
8. If you did everything correctly the application will start without giving you any error messages
### On windows
Open a web browser and go to
http://localhost:8081/checkSetup/
### On a Linux VPS
curl http://localhost:8081/checkSetupLinux/
All rows should say 'Looking good!'
If this is not the case, than you have an error in your application.properties
# Running in the background
Use the provided pm2 json file.<br />
If you have pm2 installed just use this command.<br />
pm2 start pm2-ProfitTrailer.json <br />
pm2 save <br />
This will make sure that pm2 will automatically start the bot when pm2 reloads. <br />
<br />
To see the log you could do. <br />
pm2 log 'id' <-- this is the id pm2 gave your bot
# Setup telegram so the bot can send you telegram messages
1. Talk to @BotFather
1.1. NOT to be confused with TheBotFather channel!!!
1.2 Once there type "/newbot" to create a bot. Answer the questions by typing answers and pressing enter.
2. Start a chat to your bot's name (for ex. @MyTPBot) and press start button
3. Start another chat with https://telegram.me/get_id_bot This bot will reveal your Chat ID
4. Edit application.properties and set
- telegram.botToken = "your bot token"
- telegram.chatId = "your chat id"
- restart the bot
5. Go to http://localhost:8081/settings/telegramTestMessage to test your telegram setup. You will receive a message if the setup is correct.
https://wiki.profittrailer.io/doku.php/instructions
# Authorized resellers on telegram
All resellers speak English :)
@ -85,7 +37,3 @@ pm2 log 'id' <-- this is the id pm2 gave your bot
- @lowprofiler (Danish & Norwegian)
- @gcan9 (Swedish & Greek)
- @CryptoGuruOmigus (Japanese)
No one responding?
- @Elroy (DEV)