{"id":16373921,"url":"https://github.com/minidigger/thelounge-plugin-giphy","last_synced_at":"2025-03-16T15:33:38.398Z","repository":{"id":35174876,"uuid":"216509744","full_name":"MiniDigger/thelounge-plugin-giphy","owner":"MiniDigger","description":"Simple plugin for the irc client thelounge that allows you to quickly look up giphy-gifs","archived":false,"fork":false,"pushed_at":"2024-08-06T10:08:05.000Z","size":139,"stargazers_count":5,"open_issues_count":11,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T03:15:36.497Z","etag":null,"topics":["thelounge","thelounge-plugin"],"latest_commit_sha":null,"homepage":"https://minidigger.github.io/thelounge-plugin-giphy/","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/MiniDigger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-10-21T07:56:50.000Z","updated_at":"2022-05-20T11:40:47.000Z","dependencies_parsed_at":"2024-01-28T14:28:35.942Z","dependency_job_id":"149fc562-ace8-4b48-9a23-73833df27960","html_url":"https://github.com/MiniDigger/thelounge-plugin-giphy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniDigger%2Fthelounge-plugin-giphy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniDigger%2Fthelounge-plugin-giphy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniDigger%2Fthelounge-plugin-giphy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiniDigger%2Fthelounge-plugin-giphy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiniDigger","download_url":"https://codeload.github.com/MiniDigger/thelounge-plugin-giphy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221665617,"owners_count":16860290,"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":["thelounge","thelounge-plugin"],"created_at":"2024-10-11T03:15:37.233Z","updated_at":"2024-10-27T10:52:08.158Z","avatar_url":"https://github.com/MiniDigger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thelounge-plugin-giphy [![build status](https://github.com/MiniDigger/thelounge-plugin-giphy/workflows/Build/badge.svg)](https://github.com/MiniDigger/thelounge-plugin-giphy/workflows/build) [![npm downloads](https://img.shields.io/npm/dt/thelounge-plugin-giphy.svg)](https://www.npmjs.com/package/thelounge-plugin-giphy) [![npm versions](https://img.shields.io/npm/v/thelounge-plugin-giphy.svg)](https://www.npmjs.com/package/thelounge-plugin-giphy) [![licence mit](https://img.shields.io/github/license/MiniDigger/thelounge-plugin-giphy.svg)](https://github.com/MiniDigger/thelounge-plugin-giphy/blob/master/LICENSE)\n\nSimple plugin for the irc client [thelounge](https://thelounge.chat) that allows you to quickly look up giphy-gifs\n\n# Installation\n\n- If you have installed thelounge via NPM/Yarn:\n\n   `thelounge install thelounge-plugin-giphy`\n- If you have installed thelounge via source:\n\n   `node index.js install thelounge-plugin-giphy`\n\n# Usage\n\n`/giphy search \u003cterm\u003e` -\u003e Search a gif  \n`/giphy random` -\u003e Get a random gif\n\n# Setup\n\nYou will need an API key to interact with giphy. You can create an app and obtain an api key [here](https://developers.giphy.com/dashboard/?create=true)\n(select I only want to use the GIPHY API, the name and description don't matter).\n\nOnce you got the key, enter it via `/giphy key \u003cyour-api-key\u003e`.  \nThen you are all set.\n\n# Content Rating\n\nYou can disallow gifs with certain content ratings using the `/giphy rating` command.\nSee [this page](https://developers.giphy.com/docs/optional-settings#rating) for more info\n\n# Development\n\nCurrently thelounge doesn't offer a way to install packages from source without npm, \nthats why you have to do it manually.\n\nThe easiest way is installing thelounge locally and adding this plugin as a new package in the THELOUNGE_HOME/packages dir.\nFor that you need to have a package.json in that packages dir that looks kinda like this:\n```json\n{\n    \"private\": true,\n    \"description\": \"Packages for The Lounge. All packages in node_modules directory will be automatically loaded.\",\n    \"dependencies\": {\n        \"thelounge-theme-mininapse\": \"2.0.15\",\n        \"thelounge-plugin-shortcuts\": \"1.0.1\",\n        \"thelounge-plugin-giphy\": \"1.0.1\"\n     }\n}\n```\nthe important thing in the name here.\n\nYou then need to create a folder with that name in the node_modules sub dir.\nWe then need to place our index.js and package.json in that dir. \nYou can either do that manually by just copy pasting it, but that would involve copy pasting it for every change.\nI would recommend symlinking the files from the project into the packages folder, kinda like this:\n```\nln package.json ../thelounge-home/packages/node_modules/thelounge-plugin-giphy/package.json\nln index.js ../thelounge-home/packages/node_modules/thelounge-plugin-giphy/index.js\n```\nYou can then just edit and commit the files in the project dir and restart thelounge\n on every change you do and the changes will be picked up.\n \n# Attribution\n\n![https://giphy.com](img/giphy.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminidigger%2Fthelounge-plugin-giphy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminidigger%2Fthelounge-plugin-giphy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminidigger%2Fthelounge-plugin-giphy/lists"}