Skip to content

Commit

Permalink
Create db.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Oct 6, 2023
1 parent 9a4e053 commit 9f1f9ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bot/discord/commands/staff/db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
exports.run = async (client, message, args) => {
if(message.author.id !== "853158265466257448") return;

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

0 comments on commit 9f1f9ee

Please sign in to comment.