Skip to content

Commit

Permalink
Update db.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Oct 6, 2023
1 parent 9f1f9ee commit 22ecd80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot/discord/commands/staff/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ exports.run = async (client, message, args) => {

try {
const db = require("quick.db");
db.fetchAll().then((data) => { console.log(data) });
db.all().forEach((x) => {
console.log(x.ID + " | " + x.data);
});
message.reply("Check console for data.");
} catch(err) {
message.reply("Error: " + err.message);
Expand Down

0 comments on commit 22ecd80

Please sign in to comment.