GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

New extension: Meme API

Open Zac0511 opened this issue 8 months ago • 1 comments

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

  • [x] I've followed all of the best practices.
  • [x] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • [x] 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

Zac0511 avatar May 04 '25 10:05 Zac0511

👋 Hey Zac0511, thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟶ ❌ [Dots in sentences]: Field 'shortDescription' of the extension description misses a dot at the end of the sentence!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

github-actions[bot] avatar May 04 '25 10:05 github-actions[bot]