Skip to content

Commit

Permalink
removed mongoose auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol528 committed Apr 11, 2021
1 parent 48a948a commit 8052630
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 6 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,34 @@ A multifunctional [discord.js](https://discord.js.org/#/) v12 BOT🤖!

- put your BOT's token

#### `commands/covid.js`:

- in line `11` put your MongoDB auth

#### `commands/help.js`:

- in line `11` put your MongoDB auth

#### `commands/settings.js`:

- in line `9` put your MongoDB auth

#### `commands/w-filters.js`:

- in line `13` put your MongoDB auth

#### `commands/warn.js`:

- in line `30` put your MongoDB auth

#### `commands/warnings.js`:

- in line `14` put your MongoDB auth

## 🌟Starting your BOT:

- in line `21` put your MongoDB auth

- open a terminal and type:

```cmd
Expand Down
2 changes: 1 addition & 1 deletion commands/covid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
name: 'covid',
description: 'Covid-19 stats',
async execute(client, message, args) {
mongoose.connect('mongodb+srv://Pol:[email protected]/test', {
mongoose.connect('YOUR MONGODB CONNECTION HERE', {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Expand Down
2 changes: 1 addition & 1 deletion commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
name: 'help',
description: 'show help',
async execute(client, message, args) {
mongoose.connect('mongodb+srv://Pol:[email protected]/test', {
mongoose.connect('YOUR MONGODB CONNECTION HERE', {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Expand Down
2 changes: 1 addition & 1 deletion commands/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
name: 'settings',
description: 'settings menu',
async execute(client, message, args) {
mongoose.connect('mongodb+srv://Pol:[email protected]/test', {
mongoose.connect('YOUR MONGODB CONNECTION HERE', {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Expand Down
2 changes: 1 addition & 1 deletion commands/w-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {

async execute(client, message) {

mongoose.connect('mongodb+srv://Pol:[email protected]/test', {
mongoose.connect('YOUR MONGODB CONNECTION HERE', {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Expand Down
2 changes: 1 addition & 1 deletion commands/warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
timestamp: new Date().getTime(),
reason
}
mongoose.connect('mongodb+srv://Pol:[email protected]/test', {
mongoose.connect('YOUR MONGODB CONNECTION HERE', {
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: true
Expand Down
2 changes: 1 addition & 1 deletion commands/warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
//var guildID = message.guild.id
const userId = target.id

mongoose.connect('mongodb+srv://Pol:[email protected]/test', {
mongoose.connect('YOUR MONGODB CONNECTION HERE', {
useNewUrlParser: true,
useUnifiedTopology: true,
});
Expand Down

0 comments on commit 8052630

Please sign in to comment.