Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
bots/Queen
database
dev
ini
installer
lib
model
scripts
service
src/jdd/so
Manifest
SOCVDBService.jar
SOCVDBService.jardesc
SOCVFinderService.exe
readme.md
readme_heatdector.md
service_installer.nsi
shortcuts.ini

readme.md

#SOCVDBService

This is planned to be a service that fills/updates a database with question, since api can not be filtered on close votes / flags.

Currently its a test implementation of the api, to understand what can be achieved.

The main class is CloseVoteFinder, it currently has a static API THROTTLE set to 1 seconds and MAX_PAGES=20

To test bot this code can be used:

Properties properties = new Properties();

properties.load(new FileInputStream("ini/SOCVService.properties"));

CloseVoteFinder.initInstance(properties);

String tag = "php";

BotCommands botCmd = new BotCommands();

//For cherry

CherryPickResult resultCherryPick = botCmd.getCherryPickBatch(0L, 0L, tag, 10, null, null, null, null);

String htmlCherry = resultCherryPick.getHTML();

//For possible dupes

CherryPickResult resultPossibileDupes = botCmd.getPossibileDuplicatesBatch(0, 0, tag, 10);

String htmlPDupes = resultPossibileDupes.getHTML();

There is also a temporary (only for testing) Swing application CVAppSwing.java executed by the SOCVDBService.jar (executable jar)

You can’t perform that action at this time.