From 60caf09e20fc5df5cff69a4ecfe439e562d7add8 Mon Sep 17 00:00:00 2001 From: Zac0511 Date: Sun, 4 May 2025 10:16:57 +0000 Subject: [PATCH] Automated Extension submission for issue #1667 --- extensions/community/MemeAPI.json | 207 ++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 extensions/community/MemeAPI.json diff --git a/extensions/community/MemeAPI.json b/extensions/community/MemeAPI.json new file mode 100644 index 000000000..a74bf9eb9 --- /dev/null +++ b/extensions/community/MemeAPI.json @@ -0,0 +1,207 @@ +{ + "author": "", + "category": "Third-party", + "extensionNamespace": "", + "fullName": "Meme API", + "gdevelopVersion": "", + "helpPath": "https://github.com/D3vd/Meme_Api", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXdlYiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNi4zNiwxNEMxNi40NCwxMy4zNCAxNi41LDEyLjY4IDE2LjUsMTJDMTYuNSwxMS4zMiAxNi40NCwxMC42NiAxNi4zNiwxMEgxOS43NEMxOS45LDEwLjY0IDIwLDExLjMxIDIwLDEyQzIwLDEyLjY5IDE5LjksMTMuMzYgMTkuNzQsMTRNMTQuNTksMTkuNTZDMTUuMTksMTguNDUgMTUuNjUsMTcuMjUgMTUuOTcsMTZIMTguOTJDMTcuOTYsMTcuNjUgMTYuNDMsMTguOTMgMTQuNTksMTkuNTZNMTQuMzQsMTRIOS42NkM5LjU2LDEzLjM0IDkuNSwxMi42OCA5LjUsMTJDOS41LDExLjMyIDkuNTYsMTAuNjUgOS42NiwxMEgxNC4zNEMxNC40MywxMC42NSAxNC41LDExLjMyIDE0LjUsMTJDMTQuNSwxMi42OCAxNC40MywxMy4zNCAxNC4zNCwxNE0xMiwxOS45NkMxMS4xNywxOC43NiAxMC41LDE3LjQzIDEwLjA5LDE2SDEzLjkxQzEzLjUsMTcuNDMgMTIuODMsMTguNzYgMTIsMTkuOTZNOCw4SDUuMDhDNi4wMyw2LjM0IDcuNTcsNS4wNiA5LjQsNC40NEM4LjgsNS41NSA4LjM1LDYuNzUgOCw4TTUuMDgsMTZIOEM4LjM1LDE3LjI1IDguOCwxOC40NSA5LjQsMTkuNTZDNy41NywxOC45MyA2LjAzLDE3LjY1IDUuMDgsMTZNNC4yNiwxNEM0LjEsMTMuMzYgNCwxMi42OSA0LDEyQzQsMTEuMzEgNC4xLDEwLjY0IDQuMjYsMTBINy42NEM3LjU2LDEwLjY2IDcuNSwxMS4zMiA3LjUsMTJDNy41LDEyLjY4IDcuNTYsMTMuMzQgNy42NCwxNE0xMiw0LjAzQzEyLjgzLDUuMjMgMTMuNSw2LjU3IDEzLjkxLDhIMTAuMDlDMTAuNSw2LjU3IDExLjE3LDUuMjMgMTIsNC4wM00xOC45Miw4SDE1Ljk3QzE1LjY1LDYuNzUgMTUuMTksNS41NSAxNC41OSw0LjQ0QzE2LjQzLDUuMDcgMTcuOTYsNi4zNCAxOC45Miw4TTEyLDJDNi40NywyIDIsNi41IDIsMTJBMTAsMTAgMCAwLDAgMTIsMjJBMTAsMTAgMCAwLDAgMjIsMTJBMTAsMTAgMCAwLDAgMTIsMloiIC8+PC9zdmc+", + "name": "MemeAPI", + "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/6064b4209201090fac74eab3d6f09242d0e722c810518c684a6ba70527c4cf87_web.svg", + "shortDescription": "Get random memes from reddit.", + "version": "1.0.1", + "description": [ + "With this extension, you can easily obtain memes from reddit.", + "This extension is powered by [D3vd](https://github.com/D3vd)'s [Meme API](https://github.com/D3vd/Meme_Api)", + "", + "## What can you do :", + "* Obtain one random meme from the default subreddits ('memes', 'dankmemes', 'me_irl')", + "* Obtain one random meme from a selected subreddit", + "", + "When you obtain a meme, the extension will return the meme's data in JSON format (saved in a variable you can choose).", + "", + "## What will be saved", + "* 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`", + "", + "## How to retreive the results and use them in a game", + "You can something from the result by using `VariableString(VariableName.data)` (`VariableName` being the name of the variable you used to store output data, and `data` being one of the output data types shown above)", + "", + "Let's imagine you used the `Obtain random meme` action and saved the result in a variable named `FunnyMeme`, and you want to show the post's name on a text object.", + "Simply make an action that sets your text object to `VariableString(FunnyMeme.title)` (after running the `Obtain random meme` action), and your text object will contain the title." + ], + "tags": [ + "meme", + "API" + ], + "authorIds": [ + "Cncy5TwCg2M9Cp4j8oe2RAN5rLB2" + ], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [ + { + "name": "__MemeAPI", + "type": "structure", + "children": [ + { + "name": "Meme", + "type": "structure", + "children": [] + }, + { + "name": "_UnformatedMemeData", + "type": "string", + "value": "" + } + ] + } + ], + "eventsFunctions": [ + { + "async": true, + "description": "Grabs a random meme from 'memes', 'dankmemes', 'me_irl' subreddits, and save the meme data (name, image link, Reddit post link, ect) as JSON format.", + "fullName": "Obtain a random meme", + "functionType": "Action", + "group": "Random", + "name": "RandomMeme", + "sentence": "Get random meme and store meme JSON data in _PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "await": true, + "value": "SendAsyncRequest" + }, + "parameters": [ + "\"https://meme-api.com/gimme\"", + "\"\"", + "\"GET\"", + "\"application/json\"", + "__MemeAPI._UnformatedMemeData", + "" + ] + }, + { + "type": { + "value": "JSONToVariableStructure2" + }, + "parameters": [ + "__MemeAPI._UnformatedMemeData", + "__MemeAPI.Meme" + ] + }, + { + "type": { + "value": "CopyVariableToArgument2" + }, + "parameters": [ + "\"Output_variable_for_meme_data\"", + "__MemeAPI.Meme" + ] + }, + { + "type": { + "value": "BuiltinAsync::ResolveAsyncEventsFunction" + }, + "parameters": [ + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Output variable", + "name": "Output_variable_for_meme_data", + "type": "variable" + } + ], + "objectGroups": [] + }, + { + "async": true, + "description": "Grabs a random meme from a select subreddit and save the meme data (name, image link, Reddit post link, ect) as JSON format.", + "fullName": "Obtain a random meme from a specific subreddit", + "functionType": "Action", + "group": "Specific", + "name": "RandomMemeFromSpecificSubreddit", + "sentence": "Get random meme from subreddit _PARAM2_ and store meme JSON data in _PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "await": true, + "value": "SendAsyncRequest" + }, + "parameters": [ + "\"https://meme-api.com/gimme/\" + Subreddit", + "\"\"", + "\"GET\"", + "\"application/json\"", + "__MemeAPI._UnformatedMemeData", + "" + ] + }, + { + "type": { + "value": "JSONToVariableStructure2" + }, + "parameters": [ + "__MemeAPI._UnformatedMemeData", + "__MemeAPI.Meme" + ] + }, + { + "type": { + "value": "CopyVariableToArgument2" + }, + "parameters": [ + "\"Output_variable_for_meme_data\"", + "__MemeAPI.Meme" + ] + }, + { + "type": { + "value": "BuiltinAsync::ResolveAsyncEventsFunction" + }, + "parameters": [ + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Output variable", + "name": "Output_variable_for_meme_data", + "type": "variable" + }, + { + "description": "Subreddit name", + "longDescription": "Please type the subreddit's name with only lowercase letters, or else it will fail.", + "name": "Subreddit", + "type": "string" + } + ], + "objectGroups": [] + } + ], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [] +} \ No newline at end of file