0.1.2 • Published 6 years ago

rojava v0.1.2

Weekly downloads
35
License
None
Repository
-
Last release
6 years ago

All examples assume the module is defined as "roblox"

Many of these functions return a promise!

const varnamehere = require("rojava")


Documentation:

PostOnWall(GroupId, Message):

Posts Message on the wall of the group with an id of GroupId

This will error if you have failed to login with a working account or the bot does not have permission to post on the wall of the group

Example:

roblox.PostOnWall(8271827, "Hello Roblox, pls don't ban me :(")

Login(Username, Password):

Logs you in with Username and Password, This function is asynchronous so be sure to wait for the promise it returns to finish

Example:

roblox.Login("BotAccount", "123456789").then((token) => {
   --Code
})

GetUser(UserId): Gets a user object of UserId that can be used with some functions, UserId can be a number or string

Example:

roblox.GetUser(1283127).then((User) => {
    --Code
})

GetUserGroups(UserId):

Returns a list of groups UserId is in

Example:

roblox.GetUserGroups(12312891).then((Groups) => {
   --Code
})

SetRoleInGroup(User, GroupId, RoleName):

User is the object from GetUser, Not an id... Will fix this in the future

Sets User's role in GroupId to RoleName

Example:

roblox.SetRoleInGroup(UserObj, 326178, "Noobs")

Will error if bot is not logged in, or if it does not have permission to role the user

Switch(token):

Switches account that program is currently controlling, you can get a token from the Login function

Example:

roblox.Login(User, Pass).then((t) => {
    user1 = t

    roblox.Login(User, Pass).then((t2) => {
    user2 = t2

    --user2 stuff

    roblox.Switch(user1)

    --user1 stuff
    })

})

GetPostsFromGroup(GroupId):

Gets a small list of the most recent messages on GroupId's wall

DeletePost(GroupId, PostId):

Deletes post PostId from the wall of GroupId

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago