Wolfcount description and readme update

This commit is contained in:
ultimateplayer1999 2023-05-25 11:02:23 +00:00
parent aea2009d93
commit 5df766eafc
2 changed files with 43 additions and 2 deletions

View File

@ -34,7 +34,7 @@ mongoose.connect(uri, {
module.exports = { module.exports = {
name: "wolfcount", name: "wolfcount",
private: false, private: false,
description: "Returns the amount of times the letters wolf were said by users.", description: "Shows the wolfcount.",
run: async (client, interaction) => { run: async (client, interaction) => {

View File

@ -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 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. "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=<bottoken>
#Mongodb
MONGODBUSER=<Username>
MONGODBPASS=<Pass>
MONGODBCLUSTER=<cluster>
DATABASE=<dbname>
#Webstuff
PORT=<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!