{"id":26382659,"url":"https://github.com/compsigh/bot","last_synced_at":"2025-03-17T06:18:00.669Z","repository":{"id":263560857,"uuid":"890232399","full_name":"compsigh/bot","owner":"compsigh","description":"Discord bot for compsigh, the social computer science club at the University of San Francisco","archived":false,"fork":false,"pushed_at":"2025-03-16T02:01:05.000Z","size":596,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T02:28:36.104Z","etag":null,"topics":["discordjs"],"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/compsigh.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":"2024-11-18T08:13:39.000Z","updated_at":"2025-03-16T02:01:08.000Z","dependencies_parsed_at":"2024-11-19T08:23:10.245Z","dependency_job_id":"ec68eb68-6a42-484e-bce4-37cca1dc55ae","html_url":"https://github.com/compsigh/bot","commit_stats":null,"previous_names":["nishoof/compsigh-bot","compsigh/bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compsigh%2Fbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compsigh%2Fbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compsigh%2Fbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compsigh%2Fbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compsigh","download_url":"https://codeload.github.com/compsigh/bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982293,"owners_count":20378607,"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":["discordjs"],"created_at":"2025-03-17T06:18:00.205Z","updated_at":"2025-03-17T06:18:00.662Z","avatar_url":"https://github.com/compsigh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compsigh Bot\n\nCompsigh Bot is a Discord bot for the [compsigh](https://compsigh.club/) discord server. This bot is built using Discord.js and TypeScript.\n\n## Table of Contents\n\n- [Compsigh Bot](#compsigh-bot)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Contributing](#contributing)\n    - [Getting Setup](#getting-setup)\n    - [Adding Commands](#adding-commands)\n\n## Features\n\n- **/ping**: Replies with \"Pong!\".\n- **/petfaadil**: Pets Faadil and returns a random image of him.\n- **/workingon**: Sets the project that you are working on to be displayed on the compsigh website's community page.\n\n## Contributing\n\nContributions welcome! Feel free to make issues or pull requests. If you want to make your own feature, I would recommending messaging a leadership member first to make sure it's something that could get merged.\n\n### Getting Setup\n\n1. Fork the repo and clone.\n\n2. Install dependencies:\n    ```sh\n    npm install\n    ```\n\n3. Create a `.env` file in the root directory with your own variables:\n    ```env\n    DISCORD_TOKEN=\"\"\n    MONGO_URI=\"\"\n    MARQUEE_API_KEY=\"\"\n    ```\n\n4. Make a testing server with your version of the bot.\n\n5. In `src/index.ts`, update the applicationId and add your server to the whitelist.\n\n6. Run the bot\n    ```sh\n    npm run dev\n    ```\n\n### Adding Commands\n\nTo add more commands, follow these steps:\n\n1. Create a new file in the `src/commands` directory, e.g., `newcommand.ts`.\n2. Define your command using the [`SlashCommandBuilder`](https://discord.js.org/docs/packages/discord.js/14.18.0/SlashCommandBuilder:Class) and implement the `execute` function. The ping is a good example to get started.\u003cbr\u003e\nSee also: https://discordjs.guide/creating-your-bot/slash-commands.html#individual-command-files\n3. Import and add your command to the `commands` array in `src/commands.ts`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompsigh%2Fbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompsigh%2Fbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompsigh%2Fbot/lists"}