Created
February 19, 2021 23:39
-
-
Save guillefix/75179f117b7edb5a2d594d7dd9e526f0 to your computer and use it in GitHub Desktop.
just experimenting with requesting public records using Neos.js and stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Neos = require('@bombitmanbomb/neosjs') | |
const neos = new Neos() | |
neos.on("login",(obj)=>{ | |
// console.log(obj.Options) // Log the current user and Session | |
// console.log(obj.CurrentUser, obj.CurrentSession) // Log the current user and Session | |
}) | |
neos.on("friendAdded",(friend)=>{ | |
if (friend.FriendStatus == "Requested") { | |
neos.AddFriend(friend) // Accept the Friend Request | |
} | |
// console.log(friend) //New Friend | |
}) | |
neos.on("messageReceived",(message)=>{ | |
neos.SendTextMessage(message.SenderId,message.Content) // Reply recieved message back | |
}) | |
neos.Login("[username here]", “[password here]”) | |
// thing = neos.CloudXInterface.FetchRecord("U-guillefix","R-20b676b7-a34a-42d6-a57e-f7fa28e9f8b2") | |
thing = neos.CloudXInterface.FetchRecord(new Neos.CloudX.Util.Uri("neosrec://U-guillefix/R-20b676b7-a34a-42d6-a57e-f7fa28e9f8b2")) | |
// thing = neos.CloudXInterface.FindRecords("U-alex-from-alaska") | |
// thing = neos.CloudXInterface.FetchRecordAtPath("U-guillefix","Inventory\\VRAI") | |
// thing = neos.CloudXInterface.GetRecordsFull("U-guillefix",tag=null,path="Inventory\\VRAI") | |
// thing = neos.CloudXInterface.GetRecordsFull("U-guillefix",tag=null,path="Inventory\\guillefix public") | |
// thing = neos.CloudXInterface.GET("U-guillefix","Inventory\\VRAI") | |
// thing = neos.CloudXInterface.GetRecordsFull("U-guillefix",tag=null,path="Inventory\\VRAI") | |
// thing = neos.CloudXInterface.FetchRecord("U-Turk", "R-ca5df2d1-0a71-45ed-b432-0b02b2ae9f88") | |
// thing = neos.CloudXInterface.FetchRecordIRecord("neosrec:///U-Turk/R-ca5df2d1-0a71-45ed-b432-0b02b2ae9f88"); | |
// thing = neos.CloudXInterface.FetchRecordIRecord("neosrec:///U-Turk/R-ca5df2d1-0a71-45ed-b432-0b02b2ae9f88"); | |
thing.then(a=>{ | |
console.log(a) | |
}) | |
// thing.then(a=>{ | |
// console.log(a) | |
// thing2 = neos.CloudXInterface.GetRecordsFull(a.Content.ownerId,tag=null,path=a.Content.path) | |
// thing2.then(a=>{ | |
// console.log(a) | |
// }) | |
// }) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment