Post

MacaroniPM v2.0.1 | Beautiful Boccoli

MacaroniPM v2.0.1 | Beautiful Boccoli

Hello people! This update is quite big as it changes alot of stuff so instead of explaining what I changed, heres a new list of functions that you can call.

Special Thanks

I would Like to say thanks to ianyourgod on discord for showing me the ApiModual for JS! It really helped me make Macaroni better! I also would like to say thanks to scratchattach for the idea to even make this.

MacaroniPM 1.x.xcode will mostly no longer work.

Using MacaroniPM for spam in PenguinMod will get your ip blocked

Do NOT share your token with anyone!

It is recomended to set both PID (if doing something with projects) and Token.

macaronipm.SetToken() and macaronipm.TOKEN

Sets your token into the macaronipm.TOKEN variable.

Example:

1
2
macaronipm.SetToken("ABCDEFG1234567")
print(macaronipm.TOKEN)

macaronipm.SetProject() and macaronipm.PID

Sets your project id into the macaronipm.PID variable.

Example:

1
2
macaronipm.SetProject("ABCD1234")
print(macaronipm.PID)

The Misc Catagory

macaronipm.misc()['LoveToggle']()

Toggles the Love button that you see in projects.

Example:

1
macaronipm.misc.LoveToggle("false")

The text “true” must be in quotes.

macaronipm.misc()['VoteToggle']()

Toggles the Check button that you see in projects.

Example:

1
macaronipm.misc.VoteToggle("true")

macaronipm.misc()['follow']()

Follows the set target.

Example:

1
macaronipm.misc()['follow']("koffeejava")

macaronipm.misc()['GetFeatured']

Grabs featured projects.

Example:

1
print(macaronipm.misc()['GetFeatured'][3])

This function returns in arrays, so you can do macaronipm.misc()['GetProject']()[0])

This function is WIP! It is not recomended to use

Project Catagory

Call stuff about projects.

macaronipm.project()['GetThumbnail']()

Calling this gives you the thumbnail of the project you set.

Calling this will return a dataURI.

macaronipm.project()['GetMeta']()

Calling this gives you metadata about the selected project.

Example:

1
print(macaronipm.project()['GetMeta']()['author']['username'])

macaronipm.project()['GetMeta']() outputs in json so you could do macaronipm.project()['GetMeta']()['author']['username']

User catagory

macaronipm.user()['GetMeta']()

Calling this returns meta data about target user.

Example:

1
print(macaronipm.user()['GetMeta']("koffeejava"))

macaronipm.user()['GetMeta'] outputs in json so you could do macaronipm.user()['GetMeta']['koffeejava']

macaronipm.user()['IsBlocking']()

Calling this returns meta data about target user.

Example:

1
2
3
4
if macaronipm.user()['IsBlocking']("koffeejava") == "true"
    print("Why did you block me :(")
elif:
    print("Thats good!")

macaronipm.user()['GetMeta'] outputs in json so you could do macaronipm.user()['GetMeta']['koffeejava']

macaronipm.user()['GetPfp']()

Calling this gives you the pfp of the target you set.

Example:

1
pfp = macaronipm.user()['GetPfp']("koffeejava")

Calling this will return a dataURI.

This post is licensed under CC BY 4.0 by the author.

Trending Tags