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

I tried finding answers to this question but I didn't find any. I have an issue installing quick.db on Visual Studio Code v1.50.1

I'm creating a Discord Bot with discord.js v12 and I wanted to use quick.db for a DataBase but It keeps saying there was a problem installing better-sqlite3@7.1.1 script. I tried doing npm i better-sqlite3@7.1.1 and npm i better-sqlite3 but it keeps…
0
votes
1 answer

Is there a way to check if user has a specific item in quick.db

I use db.push(message.author.id), "item" for doing this. This is for making a game but I want it to not running the code if the user does not own that specific item.
cinoez
  • 33
  • 1
  • 5
0
votes
1 answer

How do I install quick.db? (again)

I tried installing quick.db but it doesn't work, I've added Python to the path but all I get is this error. I've tried npm i -g windows-build-tools and installed it but it still doesn't seem to work. I've tried this as well: npm i --global…
ZED
  • 11
  • 3
0
votes
1 answer

Iam getting error when trying to install 'npm quick.db'

I want to install quick.db to work with discord.js,but get error when install npm i quick.db on Windows > npm i quick.db integer@3.0.1 install C:\Users\User\server\node_modules\integer prebuild-install || npm run build-release prebuild-install WARN…
aWaPeR
  • 3
  • 2
0
votes
1 answer

How do I install quick.db?

I tried installing quick.db in my discord.js bot Example: "npm i quick.db", I've tried installing it but instead all I get is this error: https://hastebin.com/puwisugivu.sql How do I fix this?
ZED
  • 11
  • 3
0
votes
1 answer

elem.startsWith Is Not A Function Discord.js

I am trying to make a leaderboard with quick.db and I want it to go through all the variables its golding and grab all the variables starting with money_${message.guild.id}_ and give back the rest of the var name and it's amount let list =…
shawn
  • 42
  • 8
0
votes
1 answer

discord.js - leaderboard undefined user name

I am using quick.db for a Leaderboard command. It can show clearly the statistics ( you can see from the image that there are someone with 5 wins, etc). However, it cannot show the correct name-tag of that user. It is undefined. const resp = await…
zzz
  • 71
  • 1
  • 1
  • 6
0
votes
2 answers

How do i make my command return if a bot is mentioned?

This is the start of my command. I tried if(member === bot) return message.channel.send("You can't rob bots") But it didnt work, any help would be appreciated client.on('message', async message => { if(message.content.startsWith("$$rob")) { const…
ronan
  • 11
  • 2
0
votes
1 answer

npm can't install quick.db even it's dependencies are present

I have quick.db's dependencies and I can't still install it. I got Python 2.x and Microsoft Visual C++ Build Tools. I don't know why it won't let me install quick.db... Can anybody help me to fix it? Here's the log: PS…
sccooottttie
  • 27
  • 1
  • 1
  • 9
0
votes
1 answer

How to store reactions into quick.db

So I want to store user reactions into quick.db let wembed = new Discord.MessageEmbed() .setAuthor("Armagedon RolePlay | Verify System") .setColor("PURPLE") .setThumbnail(message.author.displayAvatarURL()) .setDescription(arg1)…
rez
  • 311
  • 2
  • 17
0
votes
1 answer

Storing information in quick.db then sending it

I' am using quick.db to store objects in the database using db.set('object', 'A random text') So how would I store an argument db.set('argument', args.slice(1).join(" ")) // This won't work I guess After storing an argument into the database I…
rez
  • 311
  • 2
  • 17
0
votes
2 answers

discord.js | Putting a role in quick.db

basically I tried making a command to set a muterole, which is using quick.db. Basically using o.set muterole @role should put the role into the db and show in the settings panel. Instead of showing in the settings panel when doing: let muterole =…
kodiak
  • 21
  • 1
  • 6
0
votes
1 answer

How i can find a role with space?

So I'm trying to create a bot, which will give a role users that bought it in a store !buy On the Internet, I found 2 ways to search for a role, and they do not help me, i have a role with a space, and the bot does not want to look for it let…
te1m0z
  • 11
  • 2
  • 3
0
votes
1 answer

The bot is not sharing server with the user anymore

I have a leaderboard command which displays who has the highest balance in the guild. However, a user's account was deleted yesterday and now I'm having problems with my code; as he used to execute the work command and earn money. Now that he's gone…
Jhay
  • 83
  • 1
  • 7
0
votes
1 answer

Discord.js - filter who has specific role in object

I have an object. I want to make this object to show only those who have the role I have specified. The object gets the data from the "quick.db" module. for exp my object like this = var users = [ { ID: 747374763, data: 45600}, { ID: 1111.....,…
1 2 3
8 9