From 5df766eafc6852e5468f7cf54125ab5dabebca95 Mon Sep 17 00:00:00 2001 From: ultimateplayer1999 Date: Thu, 25 May 2023 11:02:23 +0000 Subject: [PATCH] Wolfcount description and readme update --- commands/Info/wolfcount.js | 2 +- readme.md | 43 +++++++++++++++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/commands/Info/wolfcount.js b/commands/Info/wolfcount.js index a07c03a..0066eb5 100644 --- a/commands/Info/wolfcount.js +++ b/commands/Info/wolfcount.js @@ -34,7 +34,7 @@ mongoose.connect(uri, { module.exports = { name: "wolfcount", private: false, - description: "Returns the amount of times the letters wolf were said by users.", + description: "Shows the wolfcount.", run: async (client, interaction) => { diff --git a/readme.md b/readme.md index 1ee2087..6372d1b 100644 --- a/readme.md +++ b/readme.md @@ -11,4 +11,45 @@ It will create the needed collection and document and return it in the console o If you want to run it yourself, use the output of _id for the search and update operation. The following part is needed for this "6448db015eed6ed191ef61a1" (This is offcourse an example, yours will be different. -On the cloud hosted version of mongodb, this will be located in `_id: new ObjectId("6448db015eed6ed191ef61a1")` via shell output or `_id: ObjectId("6448db015eed6ed191ef61a1")` on the dashboard) + +Structure: + +**commands** - This folder contains commands + +**event** - This folder contains files related to discord.js events. (Like "ready", "interactionCreate") + +**handler** - This folder contains files that read the commands folders contents. + +**models** - This folder contains files related to the database models. (Like "wolfcount") + +**index.js** - This is the main file to run the bot. + + + +1) Use ```npm i ``` + +2) Create a .env file ``` touch .env``` or ``` cp example.env .env ``` + +3) Edit .env +``` +# BASIC BOT INFO +TOKEN= + +#Mongodb +MONGODBUSER= +MONGODBPASS= +MONGODBCLUSTER= +DATABASE= + +#Webstuff +PORT= +``` + +4) Go to Handler -- > index.js and change "GUIDIDHERE" to your Discord Server's Guild ID for guild only commands. + +5) Go into https://discord.com/developers/applications and enable Privileged Message Intent (If your bot is in more that 100 guilds this requires verification and approval of Discord.). + +6) Run the bot ```node index.js``` + + +Want to make this better? Issue a pull request!