The online racing simulator
How can I connect the LFS api to my discord bot
First of all, hello, I hope I've brought this up in the right place.
What I want to do is I want to display things like how many people are active on the server in my discord bot, whether it is active or closed
First of all, I have no idea about the LFS api, but I can suggest a code to show your discord bot the number of people on your server.
Event OnConnect( $userName ) # Player event

setconfigvar("DiscordBotStatus",":".GetLapperVar("numplayers")." Players"); #change discordbot statusmessage

EndEvent

Event OnDisConnect( $userName, $reason ) # Player event

setconfigvar("DiscordBotStatus",":".GetLapperVar("numplayers")." Players"); #change discordbot statusmessage

EndEvent

Thanks, I know what you said but that's not what I want to do

FGED GREDG RDFGDR GSFDG