{"id":19940700,"url":"https://github.com/dante4rt/discord-chat-bot","last_synced_at":"2025-05-03T15:31:26.014Z","repository":{"id":215441364,"uuid":"738950411","full_name":"dante4rt/Discord-Chat-Bot","owner":"dante4rt","description":"Versatile Discord bot with quoting, random quotes, and reposting functionalities. Easy to set up and customize for your server. ","archived":false,"fork":false,"pushed_at":"2024-01-13T07:02:49.000Z","size":139,"stargazers_count":11,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T00:29:47.042Z","etag":null,"topics":["automated","bot","chat","discord"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dante4rt.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}},"created_at":"2024-01-04T12:28:16.000Z","updated_at":"2024-09-14T04:02:38.000Z","dependencies_parsed_at":"2024-01-13T10:05:47.381Z","dependency_job_id":"aa92d5df-0842-45c7-a456-bd9435f88b10","html_url":"https://github.com/dante4rt/Discord-Chat-Bot","commit_stats":null,"previous_names":["dante4rt/discord-chat-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FDiscord-Chat-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FDiscord-Chat-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FDiscord-Chat-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FDiscord-Chat-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dante4rt","download_url":"https://codeload.github.com/dante4rt/Discord-Chat-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224365490,"owners_count":17299156,"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":["automated","bot","chat","discord"],"created_at":"2024-11-13T00:06:30.949Z","updated_at":"2024-11-13T00:06:31.723Z","avatar_url":"https://github.com/dante4rt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord-Chat-Bot\nA versatile Discord bot that sends random quotes and reposts messages in a channel. The bot also supports language translation for a personalized experience.\n\n## Screenshot\n![Proof](https://i.ibb.co/3YFDYVx/Screenshot-at-Jan-11-00-08-44.png)\n\n## Features\n- Sends random quotes in the specified channel based on the chosen mode.\n- Reposts a specified number of last chat messages in the channel at a given interval.\n- Supports language translation for a dynamic and personalized touch.\n- Configurable settings for bot token, channel ID, mode, delay, and more.\n- Backup and history functionalities for ease of use.\n\n## Prerequisites\nMake sure you have [Node.JS](https://nodejs.org/) installed on your machine.\n\n## Installation\n1. Clone the repository.\n2. Install dependencies using `npm install`.\n3. Run the bot using `node index.js`.\n4. If an error occurs, you can delete the `.env` file and attempt the process again.\n\n## Usage\nTo obtain your Discord token, follow these steps:\n1. Open Discord Web.\n2. Copy and paste the following code into your browser's URL bar:\n   ```javascript\n   javascript:var i = document.createElement('iframe');i.onload = function(){var localStorage = i.contentWindow.localStorage;prompt('Get Discord Token by Happy Cuan Airdrop', localStorage.getItem('token').replace(/[\"]+/g, ''));};document.body.appendChild(i);\n   ```\n   Note: The word 'javascript' may be removed by the browser; you can type it manually.\n   Alternatively, you can create a bookmark and paste this JavaScript code into the bookmark's URL, then click it when opening Discord Web.\n3. Run the script again using `node index.js` or paste your Discord token into `.env`, just like this:\n```env\nBOT_TOKEN= // Your Discord token (example: xxx.xxx.xxx)\nCHANNEL_ID= // Your targeted channel (example: 123124123145xxx)\nMODE=quote // You can choose 'quote' or 'repost' (default is 'quote')\nDELAY=60000 // Delay per message\nDEL_AFTER= // This is used to delete the chat after several seconds\nREPOST_LAST_CHAT=10 // This will repost the last 10 messages from the targeted channel\nTRANSLATE_TO=en // Fill with a language provided in LANGUAGE.md\n```\n\n## Configuration\nThe bot can be configured via the `.env` file or by providing environment variables.\n\n### Supported Languages\nCheck the [LANGUAGE.md](LANGUAGE.md) file for a list of supported languages.\n\n## Dependencies\n- [discord.js](https://discord.js.org/) - Discord API library.\n- [colors](https://www.npmjs.com/package/colors) - Adds colors to console.log.\n- [readline-sync](https://www.npmjs.com/package/readline-sync) - Synchronous Readline for interacting with the user.\n- [translate-google](https://www.npmjs.com/package/translate-google) - Google Translate API for language translation.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdante4rt%2Fdiscord-chat-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdante4rt%2Fdiscord-chat-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdante4rt%2Fdiscord-chat-bot/lists"}