Questions tagged [quick.db]

Quick.db is an easy to use database wrapper for better-sqlite3. Use this tag for questions about the usage of quick.db.

Quick.db is an easy to use database wrapper for better-sqlite3, it was designed to be simple to let new users who are just getting into development and don't want to worry about learning SQL just quite yet.

better-sqlite3 is a Node.js library for SQLite3.

129 questions
0
votes
0 answers

How to require in quick.db

I need to require data from economy.js to coinflip.js what would the command !coinflip give the player money I use quick db for economy coinflip: if(message.content.startsWith(`!coinflip`)) { const randomFlipResult = [ "Выпал Орел", …
0
votes
1 answer

Discord.js Quick.db filter

Hi ive been trying to make a filter for my Discord.js bot that you can do .add (word) and it will start filtering that specific word but when i try it only does 1 word not multiple if(command === "filteradd"){ …
LinusDropTips
  • 71
  • 1
  • 1
  • 4
0
votes
0 answers

QuickDB + Discordjs 'Gameboard' Pinned Messages System Not Working (Similar To Carl-Bot's 'Starboard')

I was programming a discordjs bot with my friends, when we decided to make a gameboard. Basically, its a channel in which every message that gets 2 :video_game: reactions gets put there (Like 'best messages'). However, there is a problem and I can't…
0
votes
1 answer

How to get text from individual users

I'm trying to make a notes command for specific users, but my Discord bot makes the notes any note that a user public has said. How do I fix this? I already know the problem with my code, but I don't know how to fix it. if (command == "Note") { …
0
votes
1 answer

Discord.js V12 blacklist command using quick.db isn't working

I'm trying to make a blacklist command that won't allow anyone who uses command to use them and sends "you are blacklisted" but when someone uses the command and blacklists someone it doesn't log any error and they would still be able to use the…
Memeloren
  • 29
  • 1
  • 7
0
votes
1 answer

Quick.db unwarn command unwarns all the warns in a member

I am coding my own discord bot, and making warn system with quick.db package, and having a problem. If I warn a person 2 times, and unwarn him, It removes all the warns of the user. The code is: //I have imported discord.js and others. This is only…
0
votes
1 answer

delete all the data that start with the same key from the database "quick.db"

Hello guys i'm trying to delete all the data that start with modapp_${message.guild.id} i try to use : let money = db.all().filter(a => a.ID.startsWith(`modapp_${message.guild.id}`)) db.delete(money) but it's give me this error SQLite3 can only…
ii_MaRTin
  • 1
  • 3
0
votes
1 answer

npm install quick.db takes forever

I am trying to install quick.db, and I keep getting stuck on the line below. I have tried npm rebuild, I have tried reinstalling node, but nothing is working. I have waited for about 3 hours. I am using a Linux server from the free tier on Google…
qwikz
  • 1
  • 1
0
votes
1 answer

Undefined username in leaderboard command [ quick.db / discord.js ]

I've tried making a leaderboard command with quick.db for my Discord.js bot but it isnt working. It replies with undefined users and stuff like that! var money = await db.all(`money_${message.guild.id}`, { sort: ".data" }); let resp = ""; for…
mage3339
  • 11
  • 3
0
votes
0 answers

Warning system, getting the reason(includes discord.js, quick.db)

I want to know how I can get the reason and when I do .warnings @user it says the amount of warnings and reason. I have the amount of warnings clear, but not the reason. When I run this code it says "Foot has 4 warning the reasons is [object…
0
votes
2 answers

Quick.db discord.js

I'm making a userinfo command that returns items from a .db file but it returns as [object Object]. How do i make it so it returns the names? heres my code: const { MessageEmbed } = require(`discord.js`) const db =…
Hyphon
  • 9
  • 2
0
votes
1 answer

TypeError: 'x' s not iterable

Got an error with quick.db I tried to make a view-case command to view details of user's punishments and all that. But i got an error saying warnInfo is not iterable can someone help me const Discord = require("discord.js"); const database =…
0
votes
1 answer

How do i loop through for each guild member in database (quick.db)

Im trying to make a leaderboard command, i figured out how to do it for all of my bots users, but i cant figure out how to do it for just one guild i keep getting this error: TypeError: message.guild.members.forEach is not a function Code: const db…
ronan
  • 11
  • 2
0
votes
1 answer

How do I get reference the items so I can delete them in a clearinventory command

I'm trying to make a clearinventory command so it deletes a players inventory via mention or if there is no mention it deletes your own inventory but I keep getting an error called RangeError: Too many parameter values were provided this is the code…
0
votes
3 answers

How do I make sure that the person has a certain item from the shop?

I've had this problem for hours where I can't make sure that people have bought a pet before doing activities with it. It doesn't show an error but it doesn't work properly and I don't know how to reference a certain item in a player's inventory…
1 2 3
8 9