Skip to content

Commit

Permalink
Bot is back open to the public
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Oct 22, 2023
1 parent 8620775 commit a2fb61e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion MigrateDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const newDBUrl = process.env.NEWMONGO_DB;

async function migrateUsers() {
try {
await mongoose.connect(oldDBUrl, { useNewUrlParser: true });
await mongoose.connect(oldDBUrl, { useNewUrlParser: true, useUnifiedTopology: true, });
console.log('Connected to old MongoDB');

const usersToMigrate = await UserOld.find({}).exec();
Expand Down
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,7 @@ client.on(Events.InteractionCreate, async (interaction) => {
);
return;
}
if (!await staff.findOne({ _id: interaction.user.id })
) {
await interaction.reply({
content: "You are not authorized to use this command!",
ephemeral: true,
});
return;
}




Expand Down

0 comments on commit a2fb61e

Please sign in to comment.