thirdy / durian

Path of Exile Items watcher
http://thirdy.github.io/durian/
GNU General Public License v2.0
35 stars 10 forks source link

Please make the purchase message customisable #37

Closed Formyndare closed 8 years ago

Formyndare commented 8 years ago

@ Hi, WTB your <"ITEM"> listed for <# CURRENCY> in

Is what I'm reffering to - Unless I missed something and there is in fact a way to alter this?

kyri0 commented 8 years ago

Hello, this will be made end-user avaible via javascprit eventually. For now, if you want to alter the message, you will have to download the the source code (avaiable in the release page), and edit the file where the WTB message is. After that, you would need to compile Durian on your own. If you know how to do this, you can find the WTB message file in:

https://github.com/thirdy/durian/blob/master/durian/src/main/java/qic/SearchPageScraper.java

Search for:

public String wtb() {
//            String mods = buildWTBModsMessage();
//            return String.format(
//                    "@%s Hi, I would like to buy your %s listed for %s in %s. With stats%s",
//                    getIgn(), getName(), getBuyout(), getLeague(), mods);
            return String.format(
                    "@%s Hi, WTB your \"%s\" listed for %s in %s league.",
                    ign, name, buyout, league);
        }

@thirdy will eventually make a better guide for this (if the update with the end-user edit option doesn't come first).

Formyndare commented 8 years ago

This is great info and a quick response, thank you!

On Mon, Jan 4, 2016 at 5:30 AM, kyri0 notifications@github.com wrote:

Hello, this will be made end-user avaible via javascprit eventually. For now, if you want to alter the message, you will have to download the the source code (avaiable in the release page), and edit the file where the WTB message is. After that, you would need to compile Durian on your own. If you know how to do this, you can find the WTB message file in:

https://github.com/thirdy/durian/blob/master/durian/src/main/java/qic/SearchPageScraper.java

Search for:

public String wtb() { // String mods = buildWTBModsMessage(); // return String.format( // "@%s Hi, I would like to buy your %s listed for %s in %s. With stats%s", // getIgn(), getName(), getBuyout(), getLeague(), mods); return String.format( "@%s Hi, WTB your \"%s\" listed for %s in %s league.", ign, name, buyout, league); }

@thirdy https://github.com/thirdy will eventually make a better guide for this (if the update with the end-user edit option doesn't come first).

— Reply to this email directly or view it on GitHub https://github.com/thirdy/durian/issues/37#issuecomment-168527197.

thirdy commented 8 years ago

Implemented with 0.6, closing