{"id":15213055,"url":"https://github.com/darkopendragon/discord.js-chatbot","last_synced_at":"2025-10-03T04:31:02.470Z","repository":{"id":57212692,"uuid":"165027043","full_name":"DarkoPendragon/discord.js-chatbot","owner":"DarkoPendragon","description":"A simple chat bot for Discord.js clients, using the cleverbot.io api.","archived":true,"fork":false,"pushed_at":"2019-01-10T21:16:11.000Z","size":13,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-29T09:20:29.010Z","etag":null,"topics":["bot","chat","chatbot","discord","discord-js"],"latest_commit_sha":null,"homepage":"https://discord.gg/bXvgdjV","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/DarkoPendragon.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}},"created_at":"2019-01-10T09:06:06.000Z","updated_at":"2023-01-28T17:10:02.000Z","dependencies_parsed_at":"2022-09-07T14:31:45.143Z","dependency_job_id":null,"html_url":"https://github.com/DarkoPendragon/discord.js-chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkoPendragon%2Fdiscord.js-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkoPendragon%2Fdiscord.js-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkoPendragon%2Fdiscord.js-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DarkoPendragon%2Fdiscord.js-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DarkoPendragon","download_url":"https://codeload.github.com/DarkoPendragon/discord.js-chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235072930,"owners_count":18931580,"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":["bot","chat","chatbot","discord","discord-js"],"created_at":"2024-09-28T09:20:30.392Z","updated_at":"2025-10-03T04:31:02.151Z","avatar_url":"https://github.com/DarkoPendragon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://nodei.co/npm/discord.js-chatbot\n/\"\u003e\u003cimg src=\"https://nodei.co/npm/discord.js-chatbot.png?downloads=true\u0026stars=true\" alt=\"NPM info\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n# A Discord.js Chat Bot  \nThis is a simple chatbot for Discord.js clients using the [cleverbot.io API](https://cleverbot.io/). If you need help or just want to chat, feel free to [join the discord server](https://discordapp.com/invite/FKYrX4X).    \n\n# Installation  \n1. Get your API User and Key from https://cleverbot.io/keys\n2. Have a [Discord app](https://discordapp.com/developers/applications/) setup and a bot token\n2. In your working directory: `npm i discord.js-chatbot --save`\n\n# Basic Usage\n```js\n// First we require the Discord.js library.\nconst Discord = require(\"discord.js\");\n\n// Now we make a new Discord.js Client.\nconst client = new Discord.Client();\n\n// Lets put the chat bot data in the client for easier usage.\nclient.chat = require(\"./index.js\");\n\n// Now, we start the chatbot!\n// Make sure your credentials are correct.\n// cleverUser, cleverKey and cleverNick are all required options.\nclient.chat.ChatBot(client, {\n  cleverUser: \"cleverbot.io/keys user\",\n  cleverKey: \"cleverbot.io/keys key\",\n  // cleverNick will be the session the bot uses from cleverbot.io.\n  // This can be whatever you like.\n  cleverNick: \"session name\"\n});\n\n// Now we login with the actual bot!\nclient.login(\"\u003csuper secret bot token here\u003e\")\n\n```\n\n# Options\nThere are a few other options you can pass as well. However, these are not needed.  \n\n| Option | Type | Default | Description |  \n| --- | --- | --- | --- |\n| watchMention | Boolean | true | Whether or not to watch for messages starting with the clients mention. |\n| watchName | Boolean | true | Whether or not to watch for messages starting with the clients username. |\n| enableTyping | Boolean | true | Whether or not to send typing requests while fetching a response from cleverbot. |\n| ignoredServers | Array | [ ] | An Array of sever ID's to ignore from the chat bot. |\n| ignoredChannels | Array | [ ] | An array of channel ID's to ignore from the chat bot. |\n\n\n# Custom Options Example\n```js\nconst Discord = require(\"discord.js\");\nconst client = new Discord.Client();\nclient.chat = require(\"./index.js\");\n\nclient.chat.ChatBot(client, {\n  cleverUser: \"cleverbot.io/keys user\",\n  cleverKey: \"cleverbot.io/keys key\",\n  cleverNick: \"session name\",\n  enableTyping: false,\n  ignoredServers: [\"427239929924288532\"],\n  ignoredChannels: [\"441425044351090689\", \"441393041824022528\"],\n  watchName: false,\n  watchMention: false\n  // I put those both to false for show, actually doing this will result in an error.\n});\n\nclient.login(\"\u003csuper secret bot token here\u003e\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkopendragon%2Fdiscord.js-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkopendragon%2Fdiscord.js-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkopendragon%2Fdiscord.js-chatbot/lists"}