Communication from Roblox to Discord

My discord bot is currently running on node.js and is using discordjs v.13. What I want to achieve is being able to send data from my Roblox game directly to my Discord bot (or via a proxy if needed). Do you guys have any ideas or approaches on how I could do that? Thanks in advance. :slightly_smiling_face:

You’d use Discord Webhooks at most.

local url = " " -- Create a Webhook and paste it here.
		local http = game:GetService("HttpService")
		local HookData = {
			['username'] = me.Parent.Name, -- The bots name.
			['content'] = "Haxer" -- This is the content of what you wanna say or send.
		}
		HookData = http:JSONEncode(HookData)
		http:PostAsync(url, HookData)

Take note it has to be inside a ServerScript.

I don’t want to post them anywhere though. I want to keep them inside my script and store them for future use. What I need is a way to send my data from Roblox to my node js script and save them for future use.

Could you specify exactly?
I’m not entirely sure what you mean.

EDIT: Unless you mean you want to send data to a Web Server then use the data sent there and transfer it and for as you said future use.

Yeah that’s what I meant. Could you provide any help on that?

Look up videos on how to create web servers. Unfortunately I can’t help you further, although I wish you best of luck.