{"id":19277768,"url":"https://github.com/becoditive/random-jokes-api","last_synced_at":"2025-04-22T00:31:11.442Z","repository":{"id":74749662,"uuid":"341887411","full_name":"beCoditive/random-jokes-api","owner":"beCoditive","description":"This is an Npm Package that has many meme API calls from which you can make a meme bot.","archived":false,"fork":false,"pushed_at":"2021-05-24T04:47:49.000Z","size":59,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-08T16:50:05.315Z","etag":null,"topics":["becoditive","node-js","node-module","nodejs","npm","npm-module","npm-package"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beCoditive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T12:05:37.000Z","updated_at":"2021-05-24T04:47:51.000Z","dependencies_parsed_at":"2023-05-29T03:30:19.318Z","dependency_job_id":null,"html_url":"https://github.com/beCoditive/random-jokes-api","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":"0.11111111111111116","last_synced_commit":"31ed9e654ea56ae9791317eedb98a3af08d61f48"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beCoditive%2Frandom-jokes-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beCoditive%2Frandom-jokes-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beCoditive%2Frandom-jokes-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beCoditive%2Frandom-jokes-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beCoditive","download_url":"https://codeload.github.com/beCoditive/random-jokes-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223881912,"owners_count":17219269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["becoditive","node-js","node-module","nodejs","npm","npm-module","npm-package"],"created_at":"2024-11-09T21:06:49.917Z","updated_at":"2024-11-09T21:06:50.434Z","avatar_url":"https://github.com/beCoditive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Jokes Api\r\n\r\n![npm bundle size](https://img.shields.io/bundlephobia/min/random-jokes-api)\r\n![npm](https://img.shields.io/npm/v/random-jokes-api)\r\n\r\n## Bugs and glitches\r\nFeel free to report all bugs and glitches by creating an issue in the [issue section](https://github.com/beCoditive/random-jokes-api/issues/new).\r\n\r\nA correct and understandable issue contains :\r\n\r\n- Steps to reproduce\r\n- Code that summonned the error\r\n- The complete error\r\n\r\nYou can also join me on my [discord server](https://discord/5JtJFEcZeP).\r\n\r\n\u003ca href=\"https://discord.gg/5JtJFEcZeP\"\u003e\u003cimg src=\"https://discord.com/api/guilds/760922672519184384/widget.png\" alt=\"Amandine support server\"/\u003e\u003c/a\u003e\r\n\r\nou can download it from \u003ca href=\"https://www.npmjs.com/package/random-jokes-api\"\u003enpmjs\u003c/a\u003e.\r\n\r\n```cli\r\nnpm i random-jokes-api\r\n```\r\n\r\n## Configuration\r\n\r\nThe first step is to import the module in your code.\r\n\r\n```js\r\nconst Memer = require(\"random-jokes-api\");\r\n```\r\n\r\nThen you have to request a API call according to your choice.\r\n\r\n```js\r\n// Import the discord.js library.\r\nconst Discord = require(\"discord.js\")\r\n// Create a new discord.js client.\r\nconst bot = new Discord.Client()\r\n\r\nconst Memer = require(\"random-jokes-api\");\r\n\u003e You can also destructure to avoid repeating Memer.\r\n\r\n// Listen to the ready event\r\nbot.on(\"ready\", () =\u003e {\r\n    console.log(\"Ready!\");  \r\n})\r\n\r\n// Listen to the message event\r\nbot.on(\"message\", async (message) =\u003e {\r\n    if (message.content === \"joke\") {\r\n        // Get the avatarUrl of the user\r\n\r\n        let jokes = Memer.joke()\r\n\r\n        message.channel.send(jokes)\r\n    }\r\n})\r\n\r\n// Log in to the bot\r\nbot.login(\"super_secret_token\")\r\n````\r\n\r\n# Available API Calls\r\n\r\n- ``let jokes = Memer.joke()``\r\n\r\n- ``let puns = Memer.pun()``\r\n\r\n- ``let roast = Memer.roast()``\r\n\r\n- ``let antijoke = Memer.antijoke()``\r\n\r\n- ``let quotes = Memer.quotes()``\r\n\r\n- ``let web = Memer.uselessweb()``\r\n\r\n- ``let shower = Memer.showerThought()``\r\n\r\n- ``let chuck = Memer.chuckNorris()``\r\n\r\n- ``let trivia = Memer.trivia()``\r\n\r\n- ``let compliment = Memer.compliement()``\r\n\r\n- ``let truth = Memer.truth()``\r\n\r\n- ``let dare = Memer.dare()``\r\n\r\n# Image Generation\r\n\r\n### Memes\r\n\r\n```js\r\nconst Memer = require(\"random-jokes-api\")\r\n\r\nconst Discord = require(\"discord.js\")\r\n\r\nconst bot = new Discord.Client()\r\n\r\n// Listen to the ready event\r\nbot.on(\"ready\", () =\u003e {\r\n    console.log(\"Ready!\");  \r\n})\r\n\r\n// Listen to the message event\r\nbot.on(\"message\", async (message) =\u003e {\r\n    if (message.content === \"meme\") {\r\n\r\n        let meme = Memer.meme()\r\n\r\n        let embed = new Discord.MessageEmbed()\r\n        .setTitle(meme.title)\r\n        .setImage(meme.url)\r\n        .setFooter(`Categroy: ${meme.category}`)\r\n\r\n        message.channel.send(embed)\r\n    }\r\n})\r\n\r\n````\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbecoditive%2Frandom-jokes-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbecoditive%2Frandom-jokes-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbecoditive%2Frandom-jokes-api/lists"}