Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //handcrafted by wenlocktoad
- function GrabConvos(resay) {
- WenlockUrl = "https://chat.roblox.com/v2/get-user-conversations?pageNumber=1&pageSize=30"
- $.ajax({
- type: 'GET',
- url: WenlockUrl,
- async: false,
- success: function(data) {
- console.log(data)
- for (var x in data) {
- console.log(data[x].id);
- GrabChats(data[x].id);
- }
- }
- });
- console.log("fix a fix");
- }
- function GrabChats(Hakai) {
- IndraUrl = "https://chat.roblox.com/v2/get-messages?conversationId=" + Hakai + "&pageSize=30"
- $.ajax({
- type: 'GET',
- url: IndraUrl,
- async: false,
- success: function(data) {
- if (data.length != 0) {
- console.log(data[0].id)
- MarkRead(Hakai, data[0].id);
- }
- }
- });
- }
- function MarkRead(id, messageid) {
- var beerus = {
- "conversationId": id,
- "endMessageId": messageid
- }
- RobotUrl = "https://chat.roblox.com/v2/mark-as-read"
- $.ajax({
- type: 'POST',
- url: RobotUrl,
- async: false,
- contentType: "application/json; charset=utf-8",
- data: JSON.stringify(beerus),
- success: function(data) {
- console.log(data);
- }
- });
- }
- GrabConvos();
Add Comment
Please, Sign In to add comment