Files
www.koffeejava.us/macaroni.md
koffeejava 9f841c330b
Some checks failed
Lint Commit Messages / commitlint (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
inital
2026-04-17 07:28:44 -06:00

3.4 KiB

layout, title, permalink
layout title permalink
page MacaroniPM - A PenguinMod API Wrapper for Python. /macaroni/

Macaroni logo{: .left }

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. {: .prompt-warning }

Using MacaroniPM for spam in PenguinMod will get your ip blocked {: .prompt-warning }

Do NOT share your token with anyone! {: .prompt-danger }

It is recomended to set both PID (if doing something with projects) and Token. {: .prompt-tips }

macaronipm.SetToken() and macaronipm.TOKEN

Sets your token into the macaronipm.TOKEN variable.

Example:

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

macaronipm.SetProject() and macaronipm.PID

Sets your project id into the macaronipm.PID variable.

Example:

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

The Misc Catagory

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

Toggles the Love button that you see in projects.

Example:

macaronipm.misc.LoveToggle("false")

The text "true" must be in quotes. {: .prompt-warning }

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

Toggles the Check button that you see in projects.

Example:

macaronipm.misc.VoteToggle("true")

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

Follows the set target.

Example:

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

macaronipm.misc()['GetFeatured']

Grabs featured projects.

Example:

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

This function returns in arrays, so you can do macaronipm.misc()['GetProject']()[0]) {: .prompt-tips }

This function is WIP! It is not recomended to use {: .prompt-warning }

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. {: .prompt-info }

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

Calling this gives you metadata about the selected project.

Example:

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

macaronipm.project()['GetMeta']() outputs in json so you could do macaronipm.project()['GetMeta']()['author']['username'] {: .prompt-tips }

User catagory

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

Calling this returns meta data about target user.

Example:

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

macaronipm.user()['GetMeta'] outputs in json so you could do macaronipm.user()['GetMeta']['koffeejava'] {: .prompt-tips }

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

Calling this returns meta data about target user.

Example:

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'] {: .prompt-tips }

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

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

Example:

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

Calling this will return a dataURI. {: .prompt-info }