Hello! have you ever wanted to have a simple and free Chat API?
With MyChat, you can easily do that! you can make and use very easily multiple chats, that can be used from the API, you can easily use that for integrating Roblox chat with an outside application.
and you can easily control your multiple chats from the control panel.
How to setup
-
- Download MyChat Module script from here:
MyChat.rbxm (2.0 KB)
- Download MyChat Module script from here:
-
- Import it into your Roblox game, and place it in ReplicatedStorage
-
- Create a new Chat by clicking Here!, copy the access_code, and inside the module script change MyChat.CurrentAccessCode to the access code that you have copied. (The access code is your chat code. Do not share it with others that you donât want them to be able to control anything in your chat.)
Make sure âAllow HTTP Requestsâ is enabled!
Here is an example of how to use it from Roblox:
local MyChat = require(game.ReplicatedStorage.MyChat)
local Players = game.Players
Players.PlayerAdded:Connect(function(plr)
MyChat:SendMessage(plr.Name, "Hello, everyone!", plr.UserId)
wait(1)
local messages = MyChat:GetMessages()
print("Messages in chat:")
for _, msg in ipairs(messages) do
print(msg.timestamp, "[" .. msg.sender .. "]:", msg.content)
end
end)
Now that you have set up your first chat, letâs take a look at how to use the API.
How to use the API.
- Clicking Here! will lead you to the MyChat Homepage, where you can access your chat from a simple UI.
-
https://mychat.run.place/generate_code
creates a new chat (chat access code.) -
https://mychat.run.place/send_message
with:
{
"access_code": "YOUR_ACCESS_CODE",
"sender": "Name",
"content": "Hello World!",
"user_id": "0"
}
set user_id to the sender if outside of roblox, if inside, the actual user id.
will return: { "message": "Message sent successfully!" }
-
https://mychat.run.place/get_messages/YOUR_ACCESS_CODE
will return something like this:
{"chat_name":"test", "max_users":99999, "messages":[{"content":"hello","sender":"Player1","timestamp":"2025-04-13T16:39:59"},{"content":"bye","sender":"Player2","timestamp":"2025-04-13T16:40:03"}]}
-
https://mychat.run.place/chat_settings/YOUR_ACCESS_CODE
will reutrn something like this:
{"allowed_senders":[],"blocked_users":[],"blocked_words":[],"chat_name":"Main","enable_filter":false,"max_message_length":200,"max_users":99999}
You can also get data of specific players:
https://mychat.run.place/user/USER_ID/messages
- will return total amount of messages.
https://mychat.run.place/user/USER_ID/chats
â will return all the chats names that this user were in (only if this chat has a name. chat name can be set in the control panel.)
https://mychat.run.place/user/USER_ID/last_seen
â will return when the user last sent a message.
Chat Control-Panel:
all of the chat settings, and live chat!
https://mychat.run.place/control/YOUR-ACCESS-CODE
- Messages inside chats are automatically deleted after 1 hour.
- Chats are deleted after 1 week of no activity.
- Your old chats will automatically update with new updates coming to this project.
Here is a simple chat model for your game, using the module-script:
McChat.rbxm (22.8 KB)
This is a simple MyChat Chat model, you can freely use and edit as a starting point of your custom MyChat chat.
to use it, simply download it, put it in ServerScriptService, and run the game. (you should have the MyChat module script setup for it to work.)
Thanks for reading!
More features, and documents will be added soon!
- Yes!
- No!
0 voters
- Yes
- No
0 voters