{"id":16310200,"url":"https://github.com/mataku/discord_slash_command_sample","last_synced_at":"2026-05-17T17:36:42.668Z","repository":{"id":88144261,"uuid":"381402407","full_name":"mataku/discord_slash_command_sample","owner":"mataku","description":"Discord slash command handler sample with Ruby and sinatra","archived":false,"fork":false,"pushed_at":"2021-06-30T09:18:58.000Z","size":541,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-07-20T17:04:13.281Z","etag":null,"topics":["discord","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/mataku.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-06-29T14:54:36.000Z","updated_at":"2021-06-30T09:19:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffc325da-9551-4967-ae94-50ff26844045","html_url":"https://github.com/mataku/discord_slash_command_sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mataku/discord_slash_command_sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mataku%2Fdiscord_slash_command_sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mataku%2Fdiscord_slash_command_sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mataku%2Fdiscord_slash_command_sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mataku%2Fdiscord_slash_command_sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mataku","download_url":"https://codeload.github.com/mataku/discord_slash_command_sample/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mataku%2Fdiscord_slash_command_sample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268326739,"owners_count":24232496,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["discord","ruby"],"created_at":"2024-10-10T21:25:24.720Z","updated_at":"2026-05-17T17:36:37.626Z","avatar_url":"https://github.com/mataku.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord slash command handler sample\n\nwith Ruby and sinatra\n\n## Command registration\n\n[Guild command registration sample](/scripts/register_command.rb)\n\n```shell\nDISCORD_APPLICATION_ID=\"123\" DISCORD_GUILD_ID=\"123\" DISCORD_BOT_TOKEN=\"bot_token\" bundle exec ruby script/register_command.rb\n```\n\n## Startup\n\nSet up a server to handle events from Discord. [bot.rb](/bot.rb) is handling the `POST /discord/events` endpoint, returning a response to the command `/echo`.\n\n```shell\nbundle exec rackup config.ru -p PORT_NUMBER\n```\n\n## Register your endpoint to app\n\nGo to https://discord.com/developers/applications/{your_app_id}/information\n\n![](/static/interactions_endpoint_url.png)\n\n### Demo\n\nHere is `/echo` outputs.\n\n![](/static/command_sample.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmataku%2Fdiscord_slash_command_sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmataku%2Fdiscord_slash_command_sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmataku%2Fdiscord_slash_command_sample/lists"}