Skip to content

Releases: rkfg/ns2query

Switch to BoltDB

20 Dec 12:56
Compare
Choose a tag to compare

The user database has been changed to BoltDB. Config keys should also be changed, for the old LevelDB path use ldb_database_path, for the new BoltDB file path use bdb_database_path. To convert the database to BoltDB run ns2query --convert after changing the config. LevelDB isn't used anywhere now except for the conversion and will be dropped in next releases.

Fixed build date layout

19 Dec 20:38
Compare
Choose a tag to compare

Build date is now formatted properly as day.month.year.

Restart on IP change, better error messages

19 Dec 12:43
Compare
Choose a tag to compare

When the bot runs on embedded hardware (like routers) and the IP changes all connections (including UDP even though it's connectionless) stop working because source IP doesn't exist anymore. It's not an issue if the IP is static but in my case it changes on every reconnect on the ppp0 interface. When UDP write (send) results in an error the bot now restarts itself. It's easier and more robust than messing with every small network client running independently.

TLS handshake timeout increased to 2 minutes, on slow hardware the intitial crypto setup can take more than the default 10 seconds.

Some startup error messages are annotated now so it's easier to figure out what exactly went wrong.

Reconnects

19 Nov 11:56
Compare
Choose a tag to compare

In case of initial Discord connection failure, reconnect after a second. Also small database API refactoring in regard of path (prefix) building.

DB refactoring

18 Nov 19:56
Compare
Choose a tag to compare

Changed database schema and greatly streamlined its usage. Now we properly use prefix trees with zero byte separated levels. A simple Flag -u converts the database from the previous version.

Support spaces in Discord IDs

16 Nov 22:33
Compare
Choose a tag to compare

And also some refactoring in database functions

Query skill by Discord tag

16 Nov 18:20
Compare
Choose a tag to compare

Use -skill !name to query the registered player's skill using their Discord ID (in form of name#1234). You can type just the first letters of the name and the first match will be returned.

Support basic Steam IDs, fix commander elo calculation

14 Nov 20:23
Compare
Choose a tag to compare

Now you can specify IDs in -skill and -bind as STEAM_1:1:NNNNNNNN too. Average commander elo wasn't parsed correctly. Some rewording in help messages to make the command format more clear.

Version and user binding

14 Nov 16:33
Compare
Choose a tag to compare

Added -version and -bind commands, see -help for details.

Skill queries

13 Nov 12:15
Compare
Choose a tag to compare

Added Hive3 skill queries using the new -skill command. It accepts steam profile URLs, profile IDs or custom (vanity) URLs. See -help for details.