{"id":23771608,"url":"https://github.com/warsam-e/echo","last_synced_at":"2025-09-21T14:33:53.023Z","repository":{"id":44665576,"uuid":"400299627","full_name":"itss0n1c/Meinu","owner":"itss0n1c","description":"A discord.js wrapper, with a focus on slash commands.","archived":false,"fork":false,"pushed_at":"2024-12-30T20:16:12.000Z","size":4739,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T20:54:04.777Z","etag":null,"topics":["bot","commando","discord","discord-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itss0n1c.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-26T20:37:24.000Z","updated_at":"2024-12-30T20:16:16.000Z","dependencies_parsed_at":"2023-12-22T16:05:33.692Z","dependency_job_id":"cfec766f-5373-462f-81c1-e9f82d359ad9","html_url":"https://github.com/itss0n1c/Meinu","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"108b297df47c61c5807ac01a297323808b563c53"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itss0n1c%2FMeinu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itss0n1c%2FMeinu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itss0n1c%2FMeinu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itss0n1c%2FMeinu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itss0n1c","download_url":"https://codeload.github.com/itss0n1c/Meinu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232047357,"owners_count":18464997,"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":["bot","commando","discord","discord-js"],"created_at":"2025-01-01T04:19:03.154Z","updated_at":"2025-09-21T14:33:47.693Z","avatar_url":"https://github.com/itss0n1c.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @warsam-e/echo\n\n\u003ca href=\"https://www.npmjs.com/package/@warsam-e/echo\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@warsam-e/echo?maxAge=300\" alt=\"npm version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@warsam-e/echo\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/@warsam-e/echo.svg?maxAge=300\" alt=\"npm downloads\" /\u003e\u003c/a\u003e\n\n### Simplifies the creation and handling of slash commands in Discord bots.\n\n## Installation\n\n```zsh\n% bun i @warsam-e/echo\n```\n\n## Basic Usage\n\n```ts\nimport Echo, { Command } from '@warsam-e/echo';\n\nlet commands = [\n\tnew Command\u003cEcho\u003e({\n\t\tname: 'ping',\n\t\tdescription: 'Pong!',\n\t\towners_only: true, // default: false\n\t\tnsfw: true, // default: false\n\t}).addHandler('chat_input', async (bot, int) =\u003e {\n\t\tconst sent = await int.deferReply({ withResponse: true });\n\t\tif (!sent.resource?.message?.createdTimestamp)\n\t\t\treturn int.editReply('An error occured while executing the command.');\n\t\tconst diff = sent.resource?.message?.createdTimestamp - int.createdTimestamp;\n\n\t\tconst content = [\n\t\t\t'### 🏓 Pong!',\n\t\t\t`## ${diff}ms`,\n\t\t\t...(bot.isSharding ? [`-# via shard #${bot.shardId}`] : []),\n\t\t].join('\\n');\n\n\t\treturn int.editReply(content);\n\t})\n];\n\nnew Echo({\n\tname: 'MyBot',\n\tcolor: 'LuminousVividPink',\n})\n\t.register_commands(commands)\n\t.init(); // starts the bot, .init(TOKEN) if `TOKEN` env is not set\n```\n\n## Scrollable\nEcho includes a class called `Scrollable` which can be used to create scrollable content.\n\nTo initate this class, you can use the `create_scrollable` function.\n\n```ts\nimport { Command, create_scrollable } from '@warsam-e/echo';\n\nnew Command({})\n.addHandler(\"chat_input\", (bot, int) =\u003e create_scrollable({\n\tint,\n\tdata: () =\u003e [{ title: \"foo\" }, { title: \"bar\" }],\n\tmatch: (v) =\u003e ({\n    \tcontent: `## ${v.title}`\n  \t})\n}));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarsam-e%2Fecho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarsam-e%2Fecho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarsam-e%2Fecho/lists"}