{"id":28851597,"url":"https://github.com/3kh0/stacked","last_synced_at":"2025-07-01T14:06:18.374Z","repository":{"id":294915182,"uuid":"986590059","full_name":"3kh0/stacked","owner":"3kh0","description":"Stacked is a economy game about collecting items, gambling, and using them to fight other players, all within Slack","archived":false,"fork":false,"pushed_at":"2025-06-27T14:12:26.000Z","size":288,"stargazers_count":8,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T10:59:35.304Z","etag":null,"topics":["slack","slack-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/3kh0.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,"zenodo":null}},"created_at":"2025-05-19T20:51:01.000Z","updated_at":"2025-06-17T23:54:51.000Z","dependencies_parsed_at":"2025-05-22T18:06:32.158Z","dependency_job_id":null,"html_url":"https://github.com/3kh0/stacked","commit_stats":null,"previous_names":["3kh0/stacked"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/3kh0/stacked","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kh0%2Fstacked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kh0%2Fstacked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kh0%2Fstacked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kh0%2Fstacked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3kh0","download_url":"https://codeload.github.com/3kh0/stacked/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3kh0%2Fstacked/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262978563,"owners_count":23394008,"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":["slack","slack-bot"],"created_at":"2025-06-19T21:05:56.957Z","updated_at":"2025-07-01T14:06:18.355Z","avatar_url":"https://github.com/3kh0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stacked [![Lint](https://github.com/3kh0/stacked/actions/workflows/lint.yml/badge.svg)](https://github.com/3kh0/stacked/actions/workflows/lint.yml)\n\nStacked is an economy game about collecting items, gambling, and using them to fight other players, all within Slack (Slack, where the work happens), powered by Supabase.\n\n## Getting Started\n\n- Node (duh)\n- [pnpm](https://pnpm.io/)\n- A [Slack App](https://api.slack.com/apps) with a token and signing secret\n- A [Supabase](https://supabase.com/) project\n\n1. Clone the repository\n2. Install dependencies:\n\n   ```sh\n   pnpm install\n   ```\n\n3. Create a .env file in the project root:\n\n   ```env\n   SLACK_BOT_TOKEN=xoxb-abcdefghijklmnopqrstuvwxyz123456\n   SLACK_SIGNING_SECRET=abcdefghijklmnopqrstuvwxyz123456\n   SUPABASE_URL=https://abcdefghijklmnopqrstuvwxyz123456.supabase.co\n   SUPABASE_SERVICE_ROLE_KEY=abcdefghijklmnopqrstuvwxyz123456\n   SUPABASE_USERS_TABLE=users\n   ```\n\n4. Setup the database, here is a oneliner that will get you up and running. You can paste it into your Supabase SQL editor.\n\n   ```sql\n   CREATE TABLE public.users (\n      slack_uid text NOT NULL,\n      inventory jsonb NULL DEFAULT '[]'::jsonb,\n      balance numeric NOT NULL DEFAULT '0'::numeric,\n      hp numeric NOT NULL DEFAULT '100'::numeric,\n      opt_status boolean NOT NULL DEFAULT false,\n      attack_cooldown numeric NULL,\n      daily_cooldown numeric NULL,\n      weekly_cooldown numeric NULL,\n      hourly_cooldown numeric NULL,\n      CONSTRAINT users_pkey PRIMARY KEY (slack_uid),\n      CONSTRAINT users_slack_uid_key UNIQUE (slack_uid)\n   );\n   ```\n\n5. Nab all the emojis, they will be added to the repo in due time™ If you are already in the Hack Club Slack, the emojis are already there and no further action is needed from you.\n6. Make sure you add a slash command to your Slack bot. Here is the recommended configuration. Make sure you have escape names and channels selected.\n\n   ![image](https://github.com/user-attachments/assets/49d5963b-225c-47cc-8e9d-0dd9392ff6e4)\n\n7. Start the bot:\n\n   ```sh\n   pnpm start\n   ```\n\n   Or if you would like it to auto-reload on changes:\n\n   ```sh\n   pnpm dev\n   ```\n\n## Contributions\n\nYes please! Keep in mind where functions go and what not. Aka just don't mess things up too much.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3kh0%2Fstacked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3kh0%2Fstacked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3kh0%2Fstacked/lists"}