Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to log reports/commands/chat?

What are some methods to log such things? I want to log a players admin commands and what they chatted etc. External API? If so what? Or is there a way to create a text file that would record it all? I apologize if this is too broad of a subject, but I don't know how else to phrase this..

2 comments

0

has to be involved with httpservice.. not sure

0

Trello and Google Analytics are two very good ways to log information, but why are you logging all chat messages? That's going to fill up a request limit for any website you use so I'd recommend only logging important information

1 answer

✓ Accepted answer

##Your question intrigued me.

And so, I went on a half-hour long journey of pain to attempt to set up a primitive logging system.

I used node.js and for hosting this nifty little site called repl.it which just lets you run code on the interwebs. You can find the code for the server here, simply paste that into a node.js repl and send some post requests like so:

local function sendString(str)
	return httpService:PostAsync("Link Here, not to the part with the text editor, to the dedicated link repl.it gives you",str)
end

print(sendString(httpService:JSONEncode({"A msg"})))

The JSON encode part is there because otherwise it throws a bad request error, and I don't know how to fix it...

But yea, that's my dumb way of logging things, if anybody has a better method please enlighten us.

This discussion is preserved as it was. New answers, comments, and votes are closed.