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
1 answer

TypeError: Function.prototype.apply was called on #, which is a object and not a function
I was working on a heist command for my bot but wehn i try it i get this error (node:2253) UnhandledPromiseRejectionWarning: TypeError: Function.prototype.apply was called on #, which is a object and not a function My code is this and I dont…
0
votes
2 answers

How to check if a user is in a guild

Guys I am currently working on a quick.db leaderboard command but it returns the global leaderboard but I want it to return only the Names Of The User Which are in the message.guild. My current lb code is this const Discord =…
0
votes
1 answer

Commands not running with no error message

im trying to run multiple commands for my discord bot, bot for some reason one singular command is not running. This is the code in my main.js file: client.on('message', message => { if(!message.content.startsWith(prefix) || message.author.bot)…
Devalina
  • 11
  • 2
0
votes
0 answers

quick.db inventory system

This might be a pretty simple solution but I am really lost with it. In my discord economy bot, I have fully developed an inventory system - where user can buy items from the shop, store them in their inventory and use them at will. The simple…
Ren
  • 27
  • 5
0
votes
1 answer

Setting a description with quick.db

In my discord bot , I want all users to have a customizable profile. Whenever they run a command !profile or !p , the bot will display an embed with bio (which is like an introduction like "Hello World" or something) , custom embed color of their…
Ren
  • 27
  • 5
0
votes
1 answer

Discord.js v12 Ban Command - UnhandledPromiseRejectionWarning: RangeError [EMBED_FIELD_VALUE]: MessageEmbed field values may not be empty

I'm having some issues with a ban command I made, and I'm not quite sure why. Everything here looks like it works but I'm getting a lot of errors in the console every time I try to run the ban command. When you run the command it should both ban the…
0
votes
1 answer

Discord.js putting space between inventory items

I'm using quick.db I want to have a little space between each item because if a user bought two items the items would view like "item1,item2" next to each other Is there a way to put space between them? Inventory command's code let hats =…
Meme Loke
  • 97
  • 1
  • 9
0
votes
0 answers

Update background variables for all users

I’m using discord.js and quick.db and was trying to figure out if there was a way to update a variable for each person every 5 minutes. For example, if someone had three workers they would earn 15 dollars every 5 minutes. At the same time if someone…
Devalina
  • 11
  • 2
0
votes
1 answer

Mute Role Saves To The Muted User When They Leave From The Server

This is my code but when someone i gave Mute role if he leave the server and re join it the role disappear, When I am using quick.db it is not working what should I do to make it work const ms = require('ms') const timer = new…
K2LD
  • 1
0
votes
2 answers

Economy leaderboard command: undefined

I am making a discord economy/currency bot, and this is the leaderboard command. It works, but whenever I run the command !leaderboard, I don't get any of the user's tags, I just get the undefined#0000. I would like my leaderboard command to show…
kate
  • 11
  • 2
0
votes
1 answer

Discord.js Get Status from Message

Hi I'm trying to make my Bot change its status from a message, and also set it with quick.db so if it restarts it changes back to the sotd. For example the message would be something like : Song of the day: "Wild Reputation" from the Album(s) PWR UP…
LinusDropTips
  • 71
  • 1
  • 1
  • 4
0
votes
0 answers

I have a problem with npm, more precisely with quick.db

npm i quick.db better-sqlite3@7.1.2 install C:\Users\Łukasz\Desktop\Clays v2.0\node_modules\better-sqlite3 prebuild-install || npm run build-release prebuild-install WARN install No prebuilt binaries found (target=14.15.1 runtime=node arch=x64…
YEYE
  • 1
0
votes
1 answer

NPM throws error while installing quick.db

I am trying to install quick.db to get started with databases and SQLite3 specifically, but when I try installing it, it always throws an error. The NPM version I have is 6.14.11 and Node version is v14.16.0. > better-sqlite3@7.1.2 install…
0
votes
0 answers

Discord.js sell command won't work, stops running after certain line

I am trying to make a discord bot with an economy, everything was going well until I got to the sell command. When I try to sell, the bot just doesn't respond. It only responds on the lines where it will return message.channel.send Can anyone help…
0
votes
1 answer

I can't seem to figure out quick.db

So I'm trying to make a marry command with discord.js-commando and quick.db, but it doesn't seem to work and I can't figure out why. Even if the id exists in the database, it still returns code that is called if it doesn't exist. Here is my code,…
1 2 3
8 9