As of late my time has been rather limited due to taking a position where I work. With that in mind I am curious to see what people want to see next for Enquiry.
Click results and open them in the default web browser
Add search engines through an API
Specify aliases through the configuration file
Fires events to allow other plugins to listen, modify and cancel results
Send search results to another player
Building
Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any gradle command.
To build Enquiry, simply run gradle. The compiled jar is located in ./libs/.
@mumfrey I think Iâll actually change the name to âEnquiryâ as based on what Iâve read it is the more proper of the two based on what the plugin does.
@WetSponge I have plans to support other engines such as Bing, DuckDuckGo and potentially Wolfram Alpha. I also will probably try to drop the dependency on Googleâs Java API for CustomSearch and directly use GET and POST requests as needed to drop the plugin size. Though this is all planned stuff right now.
Iâve updated the plugin as well as added some functionality to it. It now supports Bing and has an API for example. As per @mumfreyâs request it is also now called âEnquiryâ.
I cant figure out how to config this thing. Ive tried creating a new project in the Google Dev console and generated both a browser and a server API key. Ive tried both yet running the command /enquiry google test returns âan error occurred while attempting to search google for testâ with no console output to tell me what the error was. Im guessing its just me being a newb at the Google API stuff.
Ive enabled the Custom Search API, still no dice. Tried both Browser and Server keys again. Also I dont have any whitelisting. The keys allow from anyone
Youâre going to want to use the server key for âapi-keyâ and the search engine ID from cse.google.com/cse/manage/all for âsearch-idâ. I plan to update the documentation for this a bit as Google didnât exactly make it simple.
Okay, so we have to define a custom site to search? How do I just get google results and not define something specific? Putting in custom search engine worked, tried to set it to www.google.com and it returned no results for test.
Google hid this, simply remove all URLâs added to the custom search engine but make it âSearch the entire web but emphasize included sitesâ.
Iâll probably just add Wiki documentation to the repo as adding comments to show how to do all this would clutter the configuration file. Let me know if you run into anymore issues.