{"id":21934077,"url":"https://github.com/clxrityy/ai-discord-bot","last_synced_at":"2026-02-02T11:02:10.258Z","repository":{"id":223192897,"uuid":"759540999","full_name":"clxrityy/ai-discord-bot","owner":"clxrityy","description":"A template for an AI discord bot that is configurable through each guild","archived":false,"fork":false,"pushed_at":"2024-09-14T20:55:37.000Z","size":173,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-15T05:32:23.543Z","etag":null,"topics":["ai","aws","bot","discord","pm2","typescript"],"latest_commit_sha":null,"homepage":"https://dev.to/clxrityy/how-to-create-a-dynamic-ai-discord-bot-with-typescript-3gjn","language":"TypeScript","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/clxrityy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-02-18T21:31:25.000Z","updated_at":"2024-09-14T20:54:09.000Z","dependencies_parsed_at":"2024-02-26T17:29:25.122Z","dependency_job_id":"02f62351-9ea3-4cc9-b3cf-6383396153e5","html_url":"https://github.com/clxrityy/ai-discord-bot","commit_stats":null,"previous_names":["clxrityy/ai-discord-bot"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fai-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fai-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fai-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fai-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clxrityy","download_url":"https://codeload.github.com/clxrityy/ai-discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227010962,"owners_count":17716674,"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":["ai","aws","bot","discord","pm2","typescript"],"created_at":"2024-11-29T00:14:29.902Z","updated_at":"2026-02-02T11:02:05.221Z","avatar_url":"https://github.com/clxrityy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-discord-bot template\n\n### 🔗 [Invite](https://discord.com/api/oauth2/authorize?client_id=1207469340149026837\u0026permissions=2147483648\u0026scope=bot)\n\n### 📖 [Read the guide](https://dev.to/clxrityy/how-to-create-a-dynamic-ai-discord-bot-with-typescript-3gjn)\n\n---\n\n## configuration\n\n#### [`config.ts`](/src/config.ts)\n\n```ts\n/*\n    Your default AI settings\n*/\n    openai: {\n        model: /** \n            https://platform.openai.com/docs/models\n        */ ,\n        systemRoleContent: /**\n            https://platform.openai.com/docs/guides/text-generation/chat-completions-api\n        */,\n        temperature: /**\n            https://platform.openai.com/docs/guides/text-generation/how-should-i-set-the-temperature-parameter\n        */,\n        presence_penalty: /** \n            https://platform.openai.com/docs/guides/text-generation/parameter-details\n        */,\n    }\n```\n\n#### [`.env`](/.env.example)\n```env\n# DISCORD\nBOT_TOKEN=\n\n# OPENAI\nOPENAI_API_KEY=\nOPENAI_ORGANIZATION_ID=\n\n# MONOGDB\nMONGO_URI=\n```\n\n---\n\n## commands\n\n- `/ai` **`[prompt]`**\n- `/settings`\n    - `config`\n        -  [model](https://platform.openai.com/docs/models)\n        -  [precense_penalty](https://platform.openai.com/docs/guides/text-generation/parameter-details)\n        -  [role](https://platform.openai.com/docs/guides/text-generation/chat-completions-api)\n        -  [temperature](https://platform.openai.com/docs/guides/text-generation/how-should-i-set-the-temperature-parameter)\n    - `view`\n    - `reset`\n    - `help`\n\n---\n\n## deployment\n\n- create and connect to an [AWS instance](https://ca-central-1.console.aws.amazon.com/ec2/home?c=ec2\u0026p=pm\u0026region=ca-central-1\u0026z=1#Home:)\n\n#### environment set up\n\n```ubuntu\nsudo apt update\n```\n\n- install node \u0026 npm \n\n```ubuntu\nsudo apt install nodejs\n```\n```\nsudo apt install npm\n```\n\n- set to the latest node version\n\n```\nsudo n 21.6.2\n```\n\n- check for the latest node version\n\n```ubuntu\nnode --version\n```\n\n- if you're stealing an earlier version, run\n\n```ubuntu\nhash -r\n```\n\n#### bot set up\n\n- make a directory for the bot\n\n```ubuntu\nmkdir bot\n```\n```ubuntu\ncd bot\n```\n\n- clone the repo into the bot folder\n\n```ubuntu\ngit clone https://github.com/clxrityy/ai-discord-bot.git .\n```\n\n- input your environment variables\n\n```ubuntu\ncat \u003e .env \u003e\u003e # your variables\n```\n\n#### deploy\n\n- install `pm2`\n\n```ubuntu\nsudo npm i pm2 -g\n```\n\n- build and then deploy from `/dist`\n\n```ubuntu\nnpm run build\n```\n```ubuntu\npm2 start ./dist/index.js --name bot-name\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclxrityy%2Fai-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclxrityy%2Fai-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclxrityy%2Fai-discord-bot/lists"}