Skip to content

New extension: Meme API #1668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 4, 2025

Description

This extension adds easy access to the Meme API for GDevelop.
The Meme API itself is under a MIT license, which is perfect for GDevelop.

The extension allows users to :

  • Obtain one random meme from the default subreddits ('memes', 'dankmemes', 'me_irl')
  • Obtain one random meme from a selected subreddit

The meme data is then returned in JSON format containing :

  • Link to reddit post (string) postLink
  • Subreddit name (string) subreddit
  • Post title (string) title
  • Image URL (string) url
  • Is it NSFW (boolean) nsfw
  • Is it a spoiler (boolean) spoiler
  • Username of the post's author (string) author
  • Quantity of upvotes on post (number) ups
  • Image preview URLs from lowest to highest quality (array) preview

This data can then be exported in a structure variable in GDevelop, and retrieved with VariableString(OutputVariable.something) (for getting the title, it would be VariableString(OutputVariable.title))

How to use the extension

  1. Use the Obtain a random meme or Obtain a random meme from a specific subreddit action, choose an output variable for the JSON data (and also choose subreddit name in the case of the specific subreddit action)
  2. Use VariableString() to retreive obtained data.
    • Example for getting the title with a variable named FunnyMeme : VariableString(FunnyMeme.title)

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Meme API - Example.zip

Extension file

MemeAPI.zip


Extension by @Zac0511

You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:

!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)

It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!

@github-actions github-actions bot requested a review from a team as a code owner May 4, 2025 10:17
@github-actions github-actions bot added the ✨ New extension A new extension label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ New extension A new extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant