Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

dep: bump quick.db from 7.1.3 to 9.0.3 #45

Merged
merged 3 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ const { REST } = require("@discordjs/rest");
const { Routes } = require("discord-api-types/v9");
const config = require("./config.json");
const { paste } = require("ubuntu-pastebin");
const db = require("quick.db");
const { QuickDB } = require("quick.db");
const db = new QuickDB();
// If you store your db somewhere else:
// const db = new QuickDB({ filePath: "/source/to/path/db.sqlite" })

client.once('ready', async () => {
console.log(`Logged in as ${client.user.tag}`);
Expand All @@ -28,7 +31,7 @@ client.on("messageCreate", async message => {
if(message.guild.member(message.author).pending) return message.author.send("Hey!\nYou still have to pass the guild's membership gate to use the modmail.")
if(message.content.includes("@everyone") || message.content.includes("@here")) return message.author.send("You're not allowed to use those mentions.");
// Used a new table so it doesn't get messed up with the old one
const table = new db.table("Support13");
const table = db.table("Support13");
if(message.channel.type === "DM"){
let active = await table.get(`support_${message.author.id}`);
let block = await table.get(`blocked_${message.author.id}`);
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "discord-modmail",
"version": "1.1.6",
"description": "JavaScript modmail bot with rich features. (using quick.db)",
"version": "1.1.7",
"description": "JavaScript modmail bot with rich features. (using quick.db & mongo)",
"main": "bot.js",
"scripts": {
"start": "node bot.js"
},
"dependencies": {
"express": "^4.18.1",
"discord.js": "^13.7.0",
"quick.db": "^7.1.3",
"discord.js": "^13.8.0",
"quick.db": "^9.0.3",
"ubuntu-pastebin": "^1.0.1"
},
"engines": {
Expand Down