#development
1 messages · Page 848 of 1
look for hwere you opened the db file
it depends on which version of sqlite you're using
who here can help me with ejs?
or what wrapper
It's been awhile, but I may be able to help @pallid marsh
whats ejs?
ah
It is used to code express in websites
Embedded JavaScript
Basically it's used to render webpages server side
@digital ibex
ok
ok im building a leaderboard page and im using ejs to parse the data to the html.
thats my code:
<%= data.forEach(user=>{ %>
<%= if(user.type == "gold"){ %>
<img src="gold.png" width="30"><span class="lead"> 1. <img src="<%= user.pfp %>" style="border-radius: 20px; width: 30px;"> <%= username %></span>
<%= } %>
<%= if(user.type == "silver"){ %>
<img src="silver.png" width="30"><span class="lead" style="margin-top: 15px;"> 2. <img src="<%= user.pfp %>" style="border-radius: 20px; width: 30px;"> <%= username %></span>
<%= } %>
<%= if(user.type == "bronze"){ %>
<img src="bronze.png" width="30"><span class="lead">3. <img src="<%= user.pfp %>" style="border-radius: 20px; width: 30px;"> <%= username %></span>
<%= } %>
<%= if(user.type == "else"){ %>
<p class="lead">4. <img src="<%= user.pfp %>" style="border-radius: 20px; width: 30px;"> <%= username %> </p>
<%= } %>
<hr>
<%= }) %>
``` im getting the error: `SyntaxError: Unexpected token ')' in /root/views/leaderboard.ejs while compiling ejs`
Any idea why?
u missing something then
It's a syntax error
<% }) %>
<%= is only used for when you display something with the code
<% 'Scriptlet' tag, for control-flow, no output
<%_ ‘Whitespace Slurping’ Scriptlet tag, strips all whitespace before it
<%= Outputs the value into the template (HTML escaped)
<%- Outputs the unescaped value into the template
<%# Comment tag, no execution, no output
<%% Outputs a literal '<%'
%> Plain ending tag
-%> Trim-mode ('newline slurp') tag, trims following newline
_%> ‘Whitespace Slurping’ ending tag, removes all whitespace after it
Same goes for all other lines, except: your <%= username & <%= user.pfp
worked ty
No problem.
for c# what's the best way to get a user response?
is using multiple tables in one sql file better than having multiple files but one table per file?
Can someone help me with using my code so my bot can answer a certain word in a sentence? Kinda like this:
use regex or something
if message.content.includes()?
UnhandledPromiseRejectionWarning: FetchError: request to [URL] failed, reason: Client network socket disconnected before secure TLS connection was established
I get that error after I spam some requests
any ideas?
dont spam requests
why do you have to
if its ratelimited you cant do anything about it
try to limit the amount of requests your bot sends
i dont know what youre doing
how much per minute
if you're getting rate limitied then you can't do anything about it
well I mean
lower the number of requests per minute
uh about 10,000 requests in a ten second span
LOL
its ok ill just lower it
or use the proxy api
what the fuck
holy cow
that's a humungus number of requests
yep
thats basically DOSing
Was gonna mention api abuse
what are you even trying to do?
it was scraping stats
but ill just like
not do it every 24 hours for every one at once
from where?
some minecraft api
for a server
lol
i know how to fix it
rn it updates em all at once
every 24 hours
now ill just change it to do it in batches
throughout the day
with nodecron
or whatever
Ok I managed to do something
why does the command include the prefix
Oh
follow your command handler
else if (command === 'hug') {
^
ReferenceError: command is not defined
...
if(message.content.includes('Replaced')){'please do not say that'}
what where you even trying to do
and ofc you didn't define command

I was trying to get him to reply to that certain word in the sentence
I've been working on that all day
well that's not how it works
I recommend you learn the language first
and then you make a bot
I am learning the language
But there's no way I can't find a certain area on discord.js
for this:
Like this: ```js
bot.on('message', message => {
if (message.content.startsWith("!command")) {
//do stuff here
}
});
How to User join position ?
You could use a database and store joins.
return message.channel.send(`${message.author.displayAvatarURL({ format: "png", dynamic: true })}`); How do i change the size of the image let's say i want it 2048 px
Can't we do without using the database?
return message.channel.send(`${message.author.displayAvatarURL({ size: 2048 format: "png", dynamic: true })}`);
thank you!
Thank
Good.
Minimun size 8 or 16
Where do I find the code to get my bot to detect a word in a setence? i searched everywhere in discord.js
regex
regex got it
Ok where's the regex at?
LOL
Damn
let fstr = std::str::from_utf8(&bytes[0..length])?.to_owned();
how I can convert this rust line to node.js?
you mean to js
anyone else who uses discord.net having an issue where your bot's process just stops?
like without an error or exit reason?
I'm having that issue and I'm wondering if it's related to discord.net or Discord's API
i use jda and don't have that problem with sharding
dunno about discord.net
it might be the library incorrectly handling close codes or something
yeah but I wanted to know here first
since this server actually has like, all the devs who actually put effort into their bots and everything :p
well yes, but actually no
btw I already started to plan the 30000 line bot that only bans
alright
@wheat jolt https://stackoverflow.com/questions/20174280/nodejs-convert-string-into-utf-8
Seems like it converts a string containing utf8 encoded characters to a plain string
that's just addressing every element in the bytes arr
Has anyone noticed inconsistencies when awaitingMessages last week or two? Issue I'm running into is the bot no longer waiting for a response from a specific user (which has worked up until recently) with no code changes. Regardless of who sends a message, it just presses forward (using Discord.js)
you have to use maxMatches instead max
at the options
I had the same problem
that's just addressing every element in the bytes arr
@copper cradle i still don't understand
0..length is from 0 to the length of the array
it returns an iterator over the values
Seems like bytes[0..length] is slicing the array
idk much about rust
it's a pretty toxic game
What line
let output = "";
for (const b of bytes){
//convert each byte into utf8 encoding and then append the output to output
converted = //the conversion shit
output += convertet
}
@wheat jolt
that's what I'd do
if js had list comprehensions it'd be easier
I swear to god, if you copy that and hope it works as it is then you're not even an amateur dev
Rainbow bot with delay 8 seconds is Accepted?
nope
What is the reason that the number of servers in the bot is not visible on the site?
N/A
You haven't used the API to post the stats
const members = message.guild.members.filter(member => member.user.presence.game && /(discord|http|.com|.net|.org|invite|İnstagram|Facebook|watch|Youtube|youtube|facebook|instagram)/g.test(member.user.presence.game.name));
const memberss = message.guild.members.filter(member => member.user.username && /(discord|http|.com|.net|.org|invite|İnstagram|Facebook|watch|Youtube|youtube|facebook|instagram)/g.test(member.user.username));
How can I do this according to discord.js v12
message.guild.members.cache.filter() I believe @earnest phoenix
You can view what has changed here: https://discordjs.guide/additional-info/changes-in-v12.html#managers-cache
Anyone know why this is happening
execute(msg, args) {
var api_ping = Math.round(bot.ws.ping);
var bot_ping = Date.now();
msg.channel.send('Checking ping...').then(m => {
m.edit(`Pong! 🏓\nBot Ping: **${(Date.now() - bot_ping)}** ms\nAPI ping: **${api_ping}** ms`);
});
},```
Try just bot.ws.ping
without Math.round?
console.log(bot.ws.ping) and see what you get
Yes And ^
I get the same thing removing Math.round and in the log
Um
The results are js WebSocketManager { _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, gateway: undefined, totalShards: 1, shards: Collection [Map] {}, status: 3, destroyed: false, reconnecting: false, sessionStartLimit: undefined, [Symbol(kCapture)]: false
12.0.2
well then as you can see it has no ping property
Updated and still same thing
read
12.1.1
gateway undefined 
is that normal?
idk what that means lol
here is all the code in my ping script
const Discord = require("discord.js");
const bot = new Discord.Client();
module.exports = {
name: 'ping',
description: "Says Pong 🏓 and gives the latency in ms ",
execute(msg, args) {
var api_ping = (bot.ws.ping);
var bot_ping = Date.now();
msg.channel.send('Checking ping...').then(m => {
m.edit(`Pong! 🏓\nBot Ping: **${(Date.now() - bot_ping)}** ms\nAPI ping: **${api_ping}** ms`);
});
},
};```
wait is msg.client == client?
yes
ima brb
I dont think so
yea
it would be msg.client I think
well he should http://tryitands.ee
so should I
FUCK
its true
what else has a .client that I didnt know of?
does guild?
No its just message
ok good
ive been passing client through every function
guess I am just low IQ sometimes
guild too yes
so it dose not make sense to me y bit it works when i put
var api_ping = (msg.client.ws.ping);```
I need help for bot. When bot is started, 1 hour later commands is working. Why?
client wasn't ready?
No, I can send my events/message etc.
@heavy anchor this is a new disconnected client, not the client your bot is running on, thats why
all objects in discord.js can access the client where they are running from
thats why message.client works
await fs.readdir("./commands/", (err, files) => {
if (err) console.log(err)
console.log(`${moment().format("ss:mm:HH DD/MM/YYYY")} | ${files.length} komut yükleniyor...`)
files.forEach((f, i) => {
let pull = require(`./commands/${f}`);
console.log(`${moment().format("ss:mm:HH DD/MM/YYYY")} | ${pull.config.name.toUpperCase()} adlı komut yüklendi!`)
client.commands.set(pull.config.name, pull);
pull.config.aliases.forEach(alias => {
client.aliases.set(alias, pull.config.name)
});
});
});
await fs.readdir('./events/', (err, files) => {
if (err) console.error(err);
console.log(`${moment().format("ss:mm:HH DD/MM/YYYY")} |`)
console.log(`${moment().format("ss:mm:HH DD/MM/YYYY")} | ${files.length} olay yükleniyor...`);
files.forEach(f => {
const eventName = f.split(".")[0];
const event = require(`./events/${f}`);
client.on(eventName, event.bind(null, client));
console.log(`${moment().format("ss:mm:HH DD/MM/YYYY")} | ${eventName.toUpperCase()} adlı olay yüklendi!`);
});
});
client.login(ayarlar.token);
}
init()```
Here is the event & command loader
const ayarlar = require('../ayarlar.json');
const db = require('quick.db')
module.exports = async (client, message) => {
if (!message.guild) return;
if (message.author.bot) return;
var ayar = ayarlar.Setting
let prefix = db.fetch(`${message.guild.id}.Ayarlar.Prefix`) || ayarlar.prefix
const embed = new Discord.RichEmbed()
.setTitle(`${ayar} Invite System`)
.setDescription(`**Prefix:** ${prefix}`)
.setFooter(message.author.tag, message.author.avatarURL)
.setTimestamp()
if (message.content.includes(`<@${client.user.id}>`)) return message.channel.send(embed)
if (message.content.includes(`<@!${client.user.id}>`)) return message.channel.send(embed)
if (!message.content.startsWith(prefix)) return;
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
const cmd = client.commands.get(command) || client.commands.get(client.aliases.get(command));
if (cmd) cmd.run(client, message, args);
};```
Here is the events/message.js
Maybe command loading is so slow?
But bot is starting after loading events & commands
commands only work 1 hour later?
how long is it actually? one hour?
@quartz kindle ok thanks for explaining that to me that makes sense
any errors?
no need for await on the fs.readdir, its not a promise. but thats not the cause of the problem
is this the first time you started the bot on this computer? or what CPU do you have?
How can I compare JSONs?
if (JSON.stringify(json.listOfSaves[json.listOfSaves.length - 1][1]) == JSON.stringify(jsonData)) { doesn't seem to work.
Hey
I'm making this db coins system
I tried to make an addcoins command and it wont work
Error: add is not a number
Line: coins.add(`${message.guild.id}.${pUser.id}`, parseInt(args[1]))
add coins to the user (not pay command, adding)
do you need to see the code?
@crimson vapor
I think so
dming
that is not the code I need
for coins, do you use someone's module or did you create a function?
im sorry, I dont know what you are doing, I always just did it a bit differently
so I cant really help
That's ok, thanks for trying!
np
my bot can send a image without link/embed?
yes
how?
you can create a new MessageAttachment and send it
ok
Hey
I'm making this db coins system
I tried to make an addcoins command and it wont work
Error:add is not a number
Line:coins.add(`${message.guild.id}.${pUser.id}`, parseInt(args[1]))
@earnest phoenix so which package are you using for database
@twilit rapids thoughts?
@cinder geode how about we don't
o
how about you fix it?
@cinder geode talking to me ?
no
ok
@cinder geode It's not that we set all the pages, we do correct mistakes which I'm gonna do now.
ok thats why i wanted to let you know
that bot was banned wasnt it
anyone know anything about adding to database with quick.db?
I just misunderstood your report @cinder geode, sorry for that
the problem is how to use the coins.add
so tell me how did u import quick.db
like the variable name
well you tried to add coins to a guild id
each guild with its own system yeah
the problem is about coins.add
coins.add(`${message.guild.id}.${pUser.id}`, parseInt(args[1]))```
i'd recommed trying js db.add(`money_${message.guild.id}_${pUser.id}`, args[1])
you need to type money infront of other stuff
to define the table you want to add stuff to
i dont have to use it like that
i can use coins.add
const coins = new db.table("coins")```
do you know how to fix it maybe?
he just did i think
why time tho
23:57:30 my time
is it april 1 for you?
21 minute
yes
I can't use commands, no respond.
any errors?
No
Eval command is working but not responding
When I try to change activity with eval
Help with the coins problem?
coins.add(`${message.guild.id}.${pUser.id}`, parseInt(args[1]))```
is your bot allowed to respond in the channel you are talking in?
Yes %10000
ok
Because I always using my bot in this channel
@earnest phoenix do you know how to use the db you are using?
not too much but kinda
you should learn
@low bolt r u using glitch
no glitch
im not sure how SQL databases work
How can I host the bot on heroku?
how - yes
@crimson vapor I am blind
coins.add(`${message.guild.id}.${pUser.id}`, parseInt(args[1]))```
@earnest phoenix
dude add coins infront of the guild id
you need to do that
No help? :/
What do you need help with
@low bolt do u get any errors
didnt work
I git cloned my python file but idk what to do next
Any errors?
No error
coins.add(`coins_${message.guild.id}.${pUser.id}`, parseInt(args[1]))```
@hallow sandal cloned to where
not a number
just args[1]
alrighty
no
Ye

Error: .add() data is not a number.
coins.add(`coins_${message.guild.id}.${pUser.id}`, (args[1]))```
then use db.add
alrigt
@earnest phoenix can u log out the data
would it matter tbh?
^
¯\_(ツ)_/¯
What is issue? @low bolt
Bot commands is working after 1 hour
Error: .add() data is not a number.
What?
Ready event is loading correctly
db.add(`coins_${message.guild.id}.${pUser.id}`, args[1])```
r u command files loading correctly
Error: .add() data is not a number.
@earnest phoenix tell me how you write the command
How many guilds is your bot in?
@finite bough To my downloads
like how you're supposed to use it
@earnest phoenix are you checking to make sure that the args[1] is a number?
1100
I only have 1 shard
Why shard then?
can i send the command or ?
Because I need
yes
yes
Bot is laggy
shard doesnt help
is it suppose to be in Desktop?
how much ram u using?
130mb
and send the message you sent to cause the error
can i send the command or ?
@earnest phoenix send how you typed the command
@earnest phoenix can u console log the data
No, there is some laggy events
@elder vine nah
Shiemi, is it suppose to be in Desktop or-
oh come on
this channel is a mess rn
Why do you fetch all guilds?
Because my bot is invite manager bot
its on hastebin now
Oh, high cpu bot
console.log(the stuff u adding)
You should use database and store
(I'm not using some shitty free codes)
@finite bough whats wrong with putting in the downloads?
I don't know how to save Map datas
client.invites = {}
invites[guildid] = fetch invites
im doing like that
sharding is not a good way to decrease lagg that way
how I will save this data ?
Depends what db
@hallow sandal it's ok but why did u
@agile orchid seeing any problem?
I mean. u have to push them to heroku master
sry for tag
I'm using quick.db data module
you didn't change anything in the code
um
How do I do that then?
But I don't know how to save this data to db
https://anidiots.guide/other-guides/heroku @hallow sandal
Im pretty ne to heroku,my apologies
maybe same 🤔
Idk about quick.db
@earnest phoenix the hex code vs whatever code that is: #b22222 = 11674146
new*
Glitch > Heroku
I use mongodb
so u telling me just to change it all to db and coins_guildid
mongodb is better
I will write when commands is loaded
try it
Bot opened @ 23:36
the hex code vs whatever code that is: #b22222 = 11674146
@distant sky.setColor('#hexcode')
if you're using discord.js
@agile orchid this is the only thing i need to change
coins.add(`${message.guild.id}.${pUser.id}`, parseInt(args[1]))```
https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812 or just be lazy and use some of these
what else
That's not what I meant, I just want to know what type of color code that is and if there is a translator for it online
@distant sky hex color ?
I wish
@cosmic anvil wrong Discord Server lol
Hmm
Have you read up on docs?
db.add(`coins_${message.guild.id}_${pUser.id}`, args[1])```
try that @earnest phoenix
its what i just tried
Thx hope, I'll look into that page
oh wait actually there is a change i will try
well show the code where you create the db table and where you import quick.db if it won't work
nothing else
just quickdb stuff
it wont work
const coins = new db.table("coins")
if(message.author.bot) return;
let usercoins = await coins.fetch(`${message.guild.id}.${message.author.id}`)
if(!usercoins) usercoins = 0```
@agile orchid
saying "It wont work" and pasting code will get us no where
the thing he gave me before wont work, i posted what he asked
Please show either an error or why you think it wont work
showed error
@earnest phoenix Try to change the db.fetch stuff
like how you did on the db.add one
I dont use quickdb but why are you using new db.table? wouldnt it be db.table.find()?
no?
ok
i asked someone for help with this one, he helped me start the code, he is responding
findOne
i will try to get it to work
@crimson vapor well same
mongo uses a find function
ye you are doing it wrong
i never used mongo
yes
so why would you want to create a new table for an addmoney command?
xd
may I see your code for initializing the user's coins @earnest phoenix
const coins = new db.table("coins")
if(message.author.bot) return;
let usercoins = await coins.fetch(`${message.guild.id}.${message.author.id}`)
if(!usercoins) usercoins = 0```
.
that's his code
what db do you use?
he uses quickdb
I use better sqlite3 and mongodb
Im asking you JDev
i also use quickdb
Is it good if i can see my bots name in #logs now? Because I wasnt able to see the name of it yesterday... it was invalid user
@clear wraith it's normal
ok
how is that related to development
after reading a little
OK
I have not learned if that is correct (I assume it is) but I see that they problem other than bad formatting is that the args[1] is not a number so that is the problem
well how about
Error: .add() data is not a number. i cant fix it
so a simple if(isNaN(args[1]) return message.channel.send(isntNumberEmbed) would fix it
can I see a screenshot of the code now
can i send it here and not use hastebin
?
yes here
if(command === "addcoins") {
let nopermissionembed = new Discord.RichEmbed()
.setDescription("You don't have the permission.")
.setColor(config.Red)
if(!message.member.hasPermission("MANAGE_GUILD")) return message.channel.send(nopermissionembed)
let setlogschannelembed = new Discord.RichEmbed()
.setDescription("Please set logs channel !setlogs #channel")
.setColor(config.Red)
const db = require("quick.db")
var logs = await db.fetch(`logs_${message.guild.id}`)
var Channel = message.guild.channels.find(c=> c.id === logs)
if(!Channel) return message.channel.send(setlogschannelembed);
let pUser = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]);
let nousermentionedembed = new Discord.RichEmbed()
.setDescription("Please mention the user you want to add coins to.")
.setColor(config.Red)
if(!pUser) return message.channel.send(nousermentionedembed)
let usercoins = await coins.fetch(`${message.guild.id}.${message.author.id}`)
let noaddamountembed = new Discord.RichEmbed()
.setDescription("Please specify the amount of money to add to the user.")
.setColor(config.Red)
if(!args[1]) return message.channel.send(noaddamountembed)
let onlynumbersembed = new Discord.RichEmbed()
.setDescription("Please only use numbers to add.")
.setColor(config.Red)
if(isNaN(args[1])) return message.channel.send(onlynumbersembed)
coins.add(`${message.guild.id}.${pUser.id}`, args[1])
///coins[pUser.id] = {
/// coins: usercoins + parseInt(args[1])
///};
let addedcoinsembed = new Discord.RichEmbed()
.setDescription(`${message.author} has added ${pUser} ${args[1]} coins.`)
.setColor(config.Green)
message.channel.send(addedcoinsembed).then(msg =>
Channel.send(addedcoinsembed) )
}```
well i use
db.add(`money_${user.id}`, args[1])```
and it works just fine
i'd recommend to put js const db = require('quick.db') at the beginning of your code
I can see idf(!args[1])
not in the event
oh nvm
@earnest phoenix can u show where u have defined args
arg define?
mhm
yes.
yes
const args = message.content.slice(prefix.length).trim().split(/ +/g);
Shiemi is also a potato i assume
imagine not using an actual ast for commands /s
yes I am a potato
umm anyone know how to fix my thing lmao
imagine not using an actual ast for commands /s
@warped ruin ?
nothing
imagine not getting its a joke
yeah
restart and it should work?
send the error text here
and did u console log args 1?
um no
try it
doing it rn
and see if it sends 1
:/
what do i need to do D:D:D:D:
try adding the coins to your id
wdym
i did it at first so the thing will give u 5 coins
i tried adding more removing or paying but it will stay the same
so the problem is at coins.add
for example: instead of @agile orchid send 544580475952431104
someone was called me potato
@finite bough because you are
it will say in console my id + serverid so there is no reason on why to
^
im doing the add thing wrong i think
well then
.add is the problem not the id
idk 
lol
lol
coins.add(THE REST PROBLEM)
the rest there is the problem
how do i even use it
i tried but it didnt work
this is from their package site
db.add('userInfo.balance', 500)```
any ideas?
just try to add 500 instead of a custom number
will try
im using the thing itself wrong then
when i do !coins
i have zero
even tho i just added
so im or doing the coins.add wrong or taking info wrong
have u created a table with ur I'd and stuff? more than 2 times?
coz
quickdb uses sqlite
i didnt there is 1 table
so im probably adding the coins wrong
ANYONE PLEASE
how to add using quick.bd
db
can u see the table?
no
no one uses quickdb here
i do use it
so its or im adding it wrong or im getting the info wrong
ok u help then
i am trying to
i think i just didnt do the coins.add right
yes
wth
.,.
itay
How can I contact to Discord or smh? About this problem
ha
u just broke the record of highest ping in the entire history
how do you define args again
lemme get it
discord is dying
wanna compare it to mine
const args = message.content.slice(prefix.length).trim().split(/ +/g);```
lmao discord is actually shi* this time
same as mine
@twilit rapids how can I fix this error? Can you try to help?
My bot's commands is loading 1 hour later, why?
I opened my bot @ 23:36
Commands respond to my message @ 00:36
6.3.2
change it to "7.0.0-b22"
all of that?
yes
sry for pinging
ok now what
reinstall packages
@low bolt can you not ping a moderator for that? Just ask your question, provide the information they need to help you solve it and people will
wdymmmm
I know so sry.
npm install
no
?
just npm install
yes
doing it rn
ok
Error: .add() data is not a number.
still?
hm weird
if that helpes somehow
how did u use your quick.db money ?
u told me somthing about it
@agile orchid ?
D:
else if(cmd === "balance" || cmd === "bal" || cmd === "money") {
let user = message.author;
let subcmd = args[0];
let money = await db.fetch(`money_${user.id}`)
if(!subcmd) {
if(money === null) {
db.set(`money_${user.id}`, 0)
money = 0;
}
message.channel.send(`${user} has got **${money}$**`)
}
else if(subcmd === "add") {
let author = message.author;
if(author.id == ownerid || author.id == config.bot.ownerid2) {
var userid = args[1];
var addmoney = args[2];
if(addmoney < 0) {
return message.reply('please provide a number bigger than 0')
}
else if(isNaN(addmoney)) {
message.reply('please provide a valid number')
} else {
db.add(`money_${userid}`, addmoney)
message.reply(`added **${addmoney}$** to UserID **${userid}**`)
}
} else {
return;
}
}
}```
that's how mine works
and it has no errors or stuff
ok so
i mean like don't use it like that
try to compare
and maybe find some problem
because i can't really see a problem in your code
db.add(`coins_${message.guild.id}_${pUser.id}`, args[1])```
trying this
same thing
ERROR
how do you define pUser
message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]);
hmm
IDK
wtf
wa
thats meant to be a user resolver?
to get a user
yes
message.mentions.users.first() || message.guild.members.get(args[0]);

try that
wait
you don't need message.guild.member infront of the mention
"get"
Didn't work
it would be message.guild.members.cache.get
yes
@earnest phoenix ur discord js version
are you on 11 or 12?
which discord.js version do you use
11.6.3
oh god
then ignore him
no cache
what
quick.db is literal shit
lmao
^
LOL
I would rather stab my eyes than use it
give a reason for it being trash
it's literally just a wrapper around sqlite
LMFAO fr wtf
he just went
turtle uses json db
0 - 100% in a sec
I use mongodb
mongodb ftw
mango
lies
well i'll get going now
technically I use no db since my bot doesn't even work
NO
@earnest phoenix go mongodb
and keep the caps use low
D:D:D:D::D:D:
ok now literally
wa
WHAT
bruh
wdym
itay
WA
tf
itay cant
tftftftftf
they would have to change so much
12.0 ?
wtf
yes
bro
bruh
did it
i had to do that aswell
wtf is going on
installing now
but i got used to it
npm install
K
quick.db is even less reliable in 12v
what
yes
will it change my code somehow
npm install discord.js
or do anything
no
when you really want a star...
no
I only have 2 stars
no
I got like 20
@earnest phoenix dude
installing
this is getting out of topic
lmao @earnest phoenix
if you wanna talk about stars go to #general or #memes-and-media
cannot find moudle quick db
install it sir
can u like
quickdb
not ping me all the time
SRY
oof
yes
this guy is so smart damn
thay shit goes #memes-and-media
i didn't insult anyone lmao
Error: Cannot find module '../build/better_sqlite3.node'
idk
what line?
dat error doesn't mean install it?
/rbd/pnpm-volume/416fed7e-523f-432b-b564-8e522bc050ea/node_modules/discord.js/src/client/Client.js:41
} catch {
UM
this channel is a literal meme at this point
}catch (e) {
^
are you using commando or regular?
bruh moment
o
regular
loc?
mhm
what is that
library of code
11.6.4
the fuck is library of code
^
^
The only loc I know is lines of code
^
its not that big doe
do you mean package repository
no
that happens when
im reinstalling the discord and quick back
u use old node version
i will check it tommorow
filled with big 🧠 people
i believe v12+ might have issues with glitch
didn't experience any yet
i am using glitch for 1 year
old nodr
and everything works fine




