Yoshi-E / ArmaRconDiscordBot

Discord Bot to connect to an arma server using BEC and Rcon
Other
19 stars 11 forks source link

[Feature Request] Find player GUID using player name #30

Closed FliesWithWind closed 3 years ago

FliesWithWind commented 3 years ago

Hey,

Really love the work you've done. :)

Any chance you could add "!find " command for getting player guid using player nickname?

Yoshi-E commented 3 years ago

There are already 2 commands for that in the rcon_database module: !find \<field> \<value> !find_linked \<BEID>

The command find allows you to search the database, example below. the values need to match exactly, e.g. yoshi_e would not be valid when the nick name is "Yoshi_E" Closest match stuff is planned, but has a low priority for now.

The command !find_linked on the other hand returns the accounts by cross referencing the database (e.g to find multi account users)

(linked to the given BEID over by any IP/BEID that was used by the given user once).

Disclaimer: find_linked uses IPs to match account, so if somebody is using a public network (e.g. university) its possible that different users are matched without any real relation to each other

FliesWithWind commented 3 years ago

Thanks for the fast answer.

It seems !find is not working for me atm. Is it on master or dev branch?

Yoshi-E commented 3 years ago

It should be on both branches. Make sure you have the permission for the command enabled on the bots config page: http://localhost:8000/

FliesWithWind commented 3 years ago

Thanks for the help. It was a permission issue. My bad.

Can't wait for the closes match support. :)

Yoshi-E commented 3 years ago

Added Wild card support for search queries:

e.g. !find name Yos% will return all names that start with 'Yos'