#development
1 messages · Page 1453 of 1
that makes sense
IT WORKEd

TYSM @quartz kindle
LMAO
so hes the person who dosent care my annoying thingy
tin spent 2 hrs to help me
BUT still

Bro someone dm me if your good at coding moderation on repl.it and using python
@umbral zealot ty
me dont know py ser
What kind of sorry excuse did I just read
this isnt the place to be looking for devs
Who in their right mind goes further than 4 spaces as indents
I need help
but im good though
Don't waste my time asking me to spoonfeed you code.
@opal plank is it posiiable if someone vootes my bot it sends a msg
of course
LMFAO
Lol
just test the webhook
Pls guys
you already got your webhook, just do a function once it triggers
Your'e
just mute @earnest phoenix
you'*
-m 489487560276443136
🤐 Muted Alf#0266 (@pure chasm)
thank you
@oak cliff good gurl
im not a boy.
@sick fable since I cba to scroll up and around, what is your code and what's your error
on 'webhookTrigger' => client.channels.get(yourchannel).send(user voted!)
and cant send empty message
o
shiv
My new code:-
msg = None
athr = None
dsc = None
snipe = None
@client.event
async def on_message_delete(message):
guild = ctx.guild.id
global msg
global athr
global msg_id
msg = message.content
athr = message.author.id
msg_id = message.id
if message.id != guild:
msg = None
athr = None
msg_id = None
@client.command()
async def sn(ctx):
snipe = msg
author = athr
snmsg = snipe
id = msg_id
if snipe is None:
await ctx.send("There's nothing to snipe!")
else:
embed = discord.Embed(title = "Last Deleted Message" , colour = ctx.author.colour , timestamp = ctx.message.created_at)
embed.add_field(name = "**•Message Content**" , value = f"{snipe}")
embed.add_field(name = "**•Author of that message:**" , value = f'{author}')
embed.set_footer(text = f"Requested by {ctx.author.name}" , icon_url = ctx.author.avatar_url)
await ctx.send(embed=embed)```
Error - **Cannot send an empty message**
remember that client must be accessible from the webhook
Dear God help my soul why am I still here
if it isnt,. you'll need IPC or some sort of inter process network
stop minimodding
Please format your code properly.
im aware of how to do my job
ok srry
this is the second time ive seen you tell mods to put reasons
we know
we are going to
so let us alone
what is the name for the group over cluster?
like a group of clusters
what would that be called
isn't minimodding mutable?
i installed MySQL, but when im trying to connect, i get this error#
xiuh imma name one of my clusters after you
why would you need a group ofclusters?
clustername xiuh
if message.id != ctx.guild.id:
How does this make sense?
Hey, i'm using pymongo. I have a problem here, it's always returning None. :?
https://cdn.discordapp.com/attachments/272764566411149314/788075028594819122/unknown.png
https://cdn.discordapp.com/attachments/272764566411149314/788075049755869234/unknown.png
https://cdn.discordapp.com/attachments/272764566411149314/788075082743676998/unknown.png
shard names: dada lol, sylvia, and babi
@opal plank
shards man
dont copy paste, im giving you a framework on how to do it 
That's everything related to the command.
shards -> clusters -> bot
thats not even valid js syntax
clusters > shards > bot
a cluster is many shards
its the opposite direction
i need a group of clusters
I would call that a bot
i installed MySQL, but when im trying to connect, i get this error#
like
what to do about it
1 bigasscluster = 3 clusters
upgrade mySQL client
idk maybe you're explaining it wrong or im confused
1 cluster = 3 shards
but ive installed mysql today
0exe
Ok
where do i get the mysql client from
what would it be called?
dev chat too fast 😭(pain.)
Hi
hello
what programming language are you using?
Hi @quartz kindle
prob gonna call it supercluster
node js
please say hi back
and you did npm install mysql?
yes
did you install mysql?
ight, i will wait until chat calms down because nobody saw.
yes
so you installed mysql and npm mysql
@sick fable could you please send screenshot of your code
and you also have mysql installed in your system?
yes
does it have a password?
ok
Codeblocks on phone are a disaster
this
hi
yes
ty
yes
whats autopost do
auto-post
o
mysql does not yet support mysql 8 authentication
This is OurSQL now
^
you can either remove the password, or try using the mysql2 package instead.
alternatively You can keep using mysql though without getting that error if you just switch the default authentication method to mysql_native_password.
Ight now chat calmed down: Hey, i'm using pymongo. I have a problem here, it's always returning None. :?
https://cdn.discordapp.com/attachments/272764566411149314/788074973524525102/unknown.png
https://cdn.discordapp.com/attachments/272764566411149314/788075028594819122/unknown.png
https://cdn.discordapp.com/attachments/272764566411149314/788075049755869234/unknown.png
https://cdn.discordapp.com/attachments/272764566411149314/788075082743676998/unknown.png
Jesus lord have you heard of dicts
idk py but aren't you just returning None if doc[prop] fails
why not just .get()
does find_one have an iterator available
Oh god we are starting to learn XAMPP in school 🤮
I'm not sure 
Ah yes php
Eww
you should learn about webhooks and come back
Is it MySQL or MariaDB?
Yes, but it should not fail?
MariaDB
I hope it's at least MariaDB
im not sure idk py
in where
Maria
Pog
just online, learn about webhooks
how do you get a bot verified?
flaze did you take classes for programing or just search shit up?
yell discord to verified ur bot..
Reach 75+ servers then open a support ticket
nice
Then just do return find_one
It returns a single document in a dictionary
yes it does
inside the app.get("/dblwebhook") code block, thats where you receive the vote webhooks. The vote information is contained in the req variable, therefore inside that code block, you can get the user id from req, like the example shows, then you can call your bot variable that you already have, get a channel from it, and send whatever information you want to that channel
hm
how can i convert a,a,a,a to a, a, a, a in js?
essentially just .split(' ')
'webhookTrigger' => client.channels.get(yourchannel).send(user voted!)
})
app.listen(process.env.PORT)```@quartz kindle
is this okay
emo
no
dont copy and paste code you dont understand
.-.
still the same
yee'
"webhookTrigger" was not meant for you to copy and paste, it was just an idea
(req, res) => is your trigger
essentially could .replace(',', ', ') also
that replaces only one
bot.channels.get(yourchannel).send(user voted!)
})
app.listen(process.env.PORT```
yes
YEY
user voted is a string
how do i get username from GuildMemberRemove event? Using Discord.js
otherwise you get "user is not defined"
that only replaces the 1st ,
any fun commands to add to a bot?
try this
whatever you think is a fun command ig
rolling dice, 8ball, random thot, etc.
"a,a,a,a".split(",").join(", ") @jovial nexus
you can also use regex or replaceAll in node 14+
tnaks
You can use replace(/,/g, ", ") but replace() is just slower in general
Thanks!
'user voted' or "user voted" or `user voted`
am I doing this correctly
wdym
i just told you wtf
wdym
you need to use a string not an undefined variable
Nice Windows version
OHH
tim what do you use for screenshots
lightshot
I learned that the hard way
277183033344524200 go brrrrr
@quartz kindle so "user voted"
this
oh god again
:5)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
at internal/main/run_main_module.js:17:11
Emitted 'error' event at:
at emitErrorNT (net.js:1253:8)
at processTicksAndRejections (internal/process/task_queues.js:83:17)
at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:58:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:828:11)
at internal/main/run_main_module.js:17:11```
whats the error?
that
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (net.js:1226:14)
at listenInCluster (net.js:1274:12)
at Server.listen (net.js:1362:7)
at Function.listen (/rbd/pnpm-volume/57da1742-766d-42fd-b42e-3318170a4f7e/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (
:5)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
at internal/main/run_main_module.js:17:11
Emitted 'error' event at:
at emitErrorNT (net.js:1253:8)
at processTicksAndRejections (internal/process/task_queues.js:83:17)
at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:58:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:828:11)
at internal/main/run_main_module.js:17:11```
did you stop the other bot 
no
thats why
because your bot is using a port, if you host it 2 times the second one will error
no you don't have to remove a log
hm
i dont relly understand
lemme sho u my code
const Topgg = require('@top-gg/sdk')
const app = express()
const webhook = new Topgg.Webhook('my thingy')
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
console.log(req.vote.user)
})
app.listen(process.env.PORT)
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
bot.channels.get(788074887125401610).send("user voted")
})
app.listen(process.env.PORT)
@crimson vapor
oh well thats your issue
Hey guys, I've got a question. Is there a way to dynamically add properties to classes in Java with a static constructor? I don't want to do it with a map, is there a way to do this?
could you give an example of what you mean?
like what would change
ik you can't show the code because you wouldn't be asking
Imagine you have the class Person with two properties: name and age
And when you create an object from it, there are more added, by using the static constructor, for example the property size. So those properties are not defined as properties, they get created dynamically.
const Topgg = require('@top-gg/sdk')
const app = express()
const webhook = new Topgg.Webhook('my thingy')
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
console.log(req.vote.user)
bot.channels.get(788074887125401610).send("user voted")
})
oh my god
umm
kk
987598345 // this is a number
"9847938" // this is a string
abc // this is a variable
"abc" // this is a string
sorry im a bit confused, I don't know much java.
@quartz kindle bro so it will give ids of the user voted or mention?
IDs are in strings in js
Since they can exceed the maximum safe integer
You have to add quotes
k no problem
ok webhooks hard af
Webhooks are irrelevant in this
do you mean like getters and setters? im not quite sure how you would get the value for size without some way to define it
Are you using discord.js? If so, it's bot.channels.cache.get()
tell him to fetch not cache.get
good nes
You tell him, I don't want to explain promises to him
@earnest phoenix go to discord.js docs and learn how to fetch a channel, then await it and send a message to the channel
OH wait a min
You can basically get and set properties with getters and setters, that are created before. But I want to create those properties dynamically (add them at any time with code) instead of pre-defining them. Node, for example, has it dynamically. You can add as many properties as you want, without pre-defining them
im not quite sure the syntax of defining it but isnt it just int variable; to leave a variable undefined?
Then I would have to pre-define them. But I want to add them dynamically
Will i get some type of error if i try to findOneAndUpdate on a not existing doc? I'm using mongoose
whats the error?
Yeah, I need this because I want to add quite a lot of properties, and I don't want to pre-define them all, because then I would have 50 lines of code just for creating them.
Sorry, I meant "Will"
@jagged sun https://stackoverflow.com/questions/42598635/dynamically-add-properties-to-a-class this may help
you use mongoose?
Yeah I do
poggers
Alright thanks flazepe
same
As I mentioned before, I don't want to use maps.
oh I didn't see that my bad
no problem
yeah I don't think its possible
It is
oh
But I don't know how, that's why I ask
const Topgg = require('@top#2386-gg/sdk')
const app = express()
const webhook = new Topgg.Webhook('my top.gg token')
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
console.log(req.vote.user)
bot.channels.get("788074887125401610").send("user voted")
}) ```
@crimson vapor
like in js I can set a object.property as object["property"]
whats the error
stopped working
no error?
im not quite sure
hm
Your top.gg token? It's supposed to be what you defined under webhook authentication
Here?
I'm asking
i put token there
in the auth
@pale vessel
its saids token is not defined
lemme try with api
define token to the auth
i did
then token wouldnt be undefined 
yh confusions
smh @pale vessel help
is that a glitch in a glitch
Dude nice token
its only like half tho
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:703:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
at internal/main/run_main_module.js:17:11```
its much longer so kek
are you using a code editor?
They're using glitch no?
glitch should highlight errors
might I suggest getting windows 10?
MILLION
flaze
7 is too old
y u bulli me'
well windows 7 has no more support
thats tru..
imo its a matter of preference until support is lost
then viruses will have no fixes and you will be vulnerable
e.e
its still fuked up
STILL
SyntaxError: missing ) after argument list
at Module._compile (internal/modules/cjs/loader.js:703:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
at internal/main/run_main_module.js:17:11
@crimson vapor
doesn't glitch give a red underline where there will be an error?
theres nothing
hmmm
Show code?
check for a function missing a ) or with 2 args without a command ex function(a b)
const Topgg = require('@top-gg/sdk')
const app = express()
const webhook = new Topgg.Webhook(`api key`)
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
console.log(req.vote.user)
bot.channels.get("788074887125401610").send("user voted")
}) ```
@pale vessel
That's the full file?
Well then
By the way it's bot.channels.cache.get()/bot.channels.fetch()
wdym
ic
let channel = bot.channels.fetch("788074887125401610").then(c => { return c })
``` probably better if that code works
OMG
im not quite sure if you can use .then(e => ) and return e
(node:4439) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'end' of null
at module.exports (/rbd/pnpm-volume/57da1742-766d-42fd-b42e-3318170a4f7e/node_modules/.registry.npmjs.org/dbd.js/1.0.1/node_modules/dbd.js/package/functions/funcs/skipSong.js:6:34)
at interpreter (/rbd/pnpm-volume/57da1742-766d-42fd-b42e-3318170a4f7e/node_modules/.registry.npmjs.org/dbd.js/1.0.1/node_modules/dbd.js/package/interpreter.js:45:101)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
at async CommandHandler (/rbd/pnpm-volume/57da1742-766d-42fd-b42e-3318170a4f7e/node_modules/.registry.npmjs.org/dbd.js/1.0.1/node_modules/dbd.js/package/handlers/commands.js:39:5)
(node:4439) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:4439) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
an eeror
well thats a good error
error
Is this a channel where I can hire developers? 
it means you did something wrong
no
not really but if you need help with something we can help
You can just use fetch
were just helping each other
Where can I do this?
Since fetch searches in cache first
its not an async function
Im too untalented for creating my own bot I think. It's complicated without any knowledge I think
Is it possible to hire a developer on this server? Haven't found it on the rules
if it's not an async function, make it async or use bot.channels.fetch("788074887125401610").then(c => c.send("a"))
you can't define it like that for promises
ah I see
Is it possible to make a command handler in py? I just started to learn and my bot.py file is very messy
i already know js but i want to learn py
anything is possible, im not sure how in py
most languages are similar so you should be able to figure it out
I just started using py and this does not look similar at all
another error
if i have a var that is html syntax, how can i just show it in html?
rn it just shows<b style="color: #2dce89"> UP</b>
Use JavaScript
oh right you're using some weird shit
im passing in the var using flask
is flask syntax {{ }}?
yes
i just did markup
worked
how do i refresh the page? like u press button and page refreshes?
just a empty href?
Yeah
i think its a #
go to termintal and type refresh
Nah those are for sections
Like <h1 id="hello">test</h1>
Where you use <a href="#hello">Hello</a>
o ok ty
You can use the built-in commands extension
Does anyone know where I can find guide / tututorial on doing migration in Sequelize?
How can i use that ? And this works like a js handler? Like with folders and everything ?
Cocks
Cogs
which is like multiple commands in one file (like a category)
and you have multiple files for multiple categories?
not sure but it's something like that
you called?
maybe
hi i write my bot with bot extension on python how i can write inlie with codeas a object and call it to update or it can auutpost itself
alr, so- i'm using discord.js. i'm trying to make a hug command. here's my code:
number = 15;
imageNumber = Math.floor (Math.random() + number (number - 1 + 1)) + 1;
client.on('message', message => {
if (message.content.startsWith('p;hug')) {
let targetMember = message.mentions.members.first();
if(!targetMember) return message.reply('you need to tag a user in order to hug them!!');
// message goes below!
message.channel.send(`<@${targetMember.user.id}> you just got a hug from ${message.author}`);
}
}); ``` and this is the error message:
```ReferenceError: message is not defined
at Object.<anonymous> (C:\Users\ali\Desktop\pikuubot\index.js:24:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47```
lol
use a message from a listener inside the
what
this is why i stress that people should learn JS
before making a bot
yeah don't mind me not knowing anything about coding, i only started like 4 days ago.
It applies to any language i guess
any idea why i got these errors on every file that use :import discord / from discord.ext import commands"?
yes
it is a virtula enviroment?
wdym ?
import discord
import random
import time
import os
import asyncio
from discord.ext import commands
client = commands.Bot(command_prefix = "/")
token = '******'
Is there a bot that I can add xp on my own like if do !add xp 5
i dont think so but you can code one
yo, if i regenerate my token it doesnt change the client id does it
anyone know how to do this in python?
Find out the latest foreign exchange rates for GBP to USD, Euro, Yuan and Yen.
Write a function that takes two parameters. Pounds and name of currency. The function should convert money based on the current values. The main program should output the result. E.g. 100 GBP = 111.15 Euro.
have a look at that
idk if it will work cause i dont use python but its worth a read
Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io - MicroPyramid/forex-python
ok thanks
no worries
Did you pip install discord
When I use the command math 1:99999999999999999999999999999999999999999999999999 the bot crashes. how do i fix (mathjs)
yes, i solved this error by updating phython, ty
async def ping(self, ctx):
pembed = discord.Embed(title = "🏓 Ping 🏓", description = f"**__Informatii__**\n**Latency:** {round(client.latency *1000)} ms!", color = 0x0FDCC9)
pembed.set_footer(text = "Made By Rookie")
await ctx.send(embed = embed)
unindent does not match any outer indentation level
help please?
from the looks of it on my side you indented that first line way too many times
I would like to see that code snippet from your editor @edgy tapir
@pure lion did ya fix it?
I think we did
lemme pull the latest pr and see
I did an autopoll command with mongoDB but i got an error:
(node:12576) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'updateOne' of null
ah, i dropped my crystal ball in the car park yesterday, just let me order one on next day delivery so i can see your code and i can deliver your help tomorrow
This is the code of command to update Guild Schema
in typescript can you create an object with predefined key value types?
mongoDB
oh i do nvm
what's it?
is model a schema?
no
@earnest phoenix nope
oh rip
This is the Schema
<findOne>.updateOne() doesnt work?
what you can do is
model.AutoPollChannel = channel.id
model.save();```
@humble rock you don't need to set the _id as objectId, you can make it the guild ID if you like
^ also that
good idea
thanks
(node:24288) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'AutoPollChannel' of null
nope
0exe has a smallus dickus 
@humble rock there obviously wasn't any guild object found then
if im only running a 2/5 shards, will the server count command show all the guilds, or only the ones the shard is responsible for
py
Hello Matthew
@humble rock await the save and autopollchannel assignment
let money = db.all().filter(data => data.ID.startsWith(`money`)).sort((a, b) => b.data - a.data)
money.length = 10;
let finallb = "";
for (var i in money) {
finallb += `**${money.indexOf(money[i])+1}.** <@${money[i].ID.slice(6)}> - \`${money[i].data}\`\n`;
}
if (finallb.length < 1) finallb = "Aw man.... no balances yet.."```
rn this gets the top 10 users. if a user were to do ;lb 2, how would it get the next 10 users in order?
can you screenshot the code so I can see the highlighting on phone?
if i did money.length 20
o
ok
one sec
if i did money.length = 20 then it would show 20 users
but i want the next 10 users after the first top 10
@earnest phoenix hello,what was your issue again?
Yes money.length = Number(args[0]) * 10 || 10
and then .slice(args[0] * 10 - 10)
one min still in school can i dm u instead?
Sorry but no.
i want it 10 users per page
ok give me a few then ill tell
i don't help people on dms beacuse its unarchived.
okay,ping me whenever you need my help :p
how do i make my bot say only one custom command bc when i say the trigger line, it says all the commands that i put in. they are all the same commands but i have a friend that made a bot that when u say the line, it only says one command.
can you send your code (if your token is visible please remove it and replace it with "TOKEN")
the trigger line?
new little k8 server https://i-love.helper.wtf/2YGfRKy.png
whats that? and where? just making sure
bruh
I apologize,i don't help with botghost since:
a)i cant see the code,
b)i generally think its bad,
c) you cant modify the code..
..
what sir/ma'am?
nice processor
well its gonna handle alot of load
oh
so we need lots of cpu
yea
whats the server count of it?
bot is fairly large so big server is kinda needed
360k or sm last i checked
reactionroles
thats not alot for a 3900x 3.9ghz
my bot has 180smth k users handling reaction roles etc and i was hosting on heroku
oh wait i asked about servers
oh okay
yeah lol
i got it confused
xd
im not caching all users
oh oof
like bruh
yeah i can guess why
if i run my bot with py shard_id=shardid will it only run those shards? dpy, i tried it, and it ran all shards
i dont know much about sharding but yes i think
because discord has like a limit per shard
its 2000 guilds i think
2.5k guilds is the max per shard
oh ok
like its showing undefined, even if i definde it
i dont know much about mySQL or db at all
p
im tryingh to learn it
oops
i dont know sql but i think its supposed to be:
const warapper = reqire("package")
const model = require('somedir')
model.whatever```
thats mongodb tho
to be exact mongoose
sorry i dont know much about sql
if i run my bot with py shard_id=shardid will it only run those shards? dpy, i tried it, and it ran all shards
no
I don't know what it represents considering the docs only specify the ID range, but not what it is, but shard_count can be used to set the amount of shards to spawn. It doesn't set what shards to use (leaving some on/offline)
(node:460) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added. Use emitter.setMaxListeners() to increase limit
Uncaught Promise Error: TypeError: The header content contains invalid characters
at validateHeader (_http_outgoing.js:494:11)
at ClientRequest.setHeader (_http_outgoing.js:498:3)
at Snekfetch.set (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:75:20)
at APIRequest.gen (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/rest/APIRequest.js:39:28)
at resolve (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:59:20)
at new Promise (<anonymous>)
at SequentialRequestHandler.execute (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:58:12)
at SequentialRequestHandler.handle (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:125:10)
at SequentialRequestHandler.push (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:48:10)
at Promise (/rbd/pnpm-volume/9c1d40a0-90dd-4aac-9137-ecb321cc910b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/rest/RESTManager.js:27:15)```
Can a yarn lock replace a package-lock?
@pure lion turkish pls
They weren't even talking to you
check your header
english
lol
idk why i am getting this error
`C:\Users\Nitro\Desktop\Nitro Music Beta Code>node index.js
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'quick.db'
Require stack:
- C:\Users\Nitro\Desktop\Nitro Music Beta Code\index.js
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)[39m
[90m at Module.require (internal/modules/cjs/loader.js:952:19)[39m
[90m at require (internal/modules/cjs/helpers.js:88:18)[39m
at Object.<anonymous> (C:\Users\Nitro\Desktop\Nitro Music Beta Code\index.js:5:12)
[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)[39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)[39m
[90m at Module.load (internal/modules/cjs/loader.js:928:32)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)[39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: [ [32m'C:\Users\Nitro\Desktop\Nitro Music Beta Code\index.js'[39m ]
}`
hlmmm
my code is ok
quick.db is not installed
How can I get the url of the image a user sent and put it in a embed (.setImage(message.ImageUrl))
im using java
@quartz kindle speaking of js, did u try runnung ts?
How to make my bot say only one command? I have commands set to same trigger lines and when I say the trigger line, it says all commands
hey, how do i add the colour bot to my server?
not yet
How to make my bot say only one command? I have commands set to same trigger lines and when I say the trigger line, it says all commands
or if else
chained if-elses
I’m using bot ghost

And I’m not changing
thank
I'm so sorry for that
im sorry for that
best regards for your bot
anyway, idk how botghost does stuff, but what you want is basically breaking after each command
hello Tim
but its much more limited
and because of that, most people opt to code it themselves, which gives them much more power and flexibility
and also because of that, very little people actually know how to work with botghost or bdfd decently
Ok can u give me a list of sites to make bots? And i don’t know how to code sorry
Oh ok
because like
imagine you want to write a book
programming gives you characters, you can build whatever sentences you want
botghost and similar apps give you full words instead of characters
so its easy to make sentences
but they dont have ALL words
and dont allow you to build your own words
coding is not hard at all, like, once you understand what you're looking at it becomes quite easy to keep goin
What I’m asking is how to break the commands
well i dont know, because i dont use botghost
you can try asking them in their support server
or reading their documentation if they have a decent one
there's probably some break segment/node/block/idk
botghost
if you one day decide to try coding, I'd suggest either javascript, java or python
Ok thanks
or lua
these are all beginner friendly programming languages
although some are friendlier than others
c# is beginner friendly?
C# is like c++ and js had a kid
i tried to learn C# but i was too difficult for me
i would learn C#
i'll continue my course
If Java had a baby but thought C sounded cooler than a coffee pot
lmao
Exception has occurred: ConnectionClosed
Shard ID 5 WebSocket closed with 4010``` dpy
got it
4010 is invalid shard
fun fact, the first intent to make c# was because java was such a clusterfuck and it lacked features
"got it"
yes i know
so when it finally released it was introduced as "the better java"
f boost
and which one is better now?
c# by miles
so they actually lived up to their promise?
nice
you can compile apps to native bytecode on any platform for any platform with .net 5
granted a base hello world app ends up at around 26mb trimmed but it scales really well after that
better than having to install a whole ass environment
and struggling to find that environment
yup, just contained compilation and you're ready to go
finally
sick and tired of those big ass software and games that auto install net frameworks even though they are already installed
lmao
you end up with 3 different versions for the same framework
this
same thing for cpp redist
i have so many different versions on my machine
yeah
what allows it to be so good is that microsoft simply made everything open source about it
id say it's worth it
with the rise of blazor and proper WASM
there's going to be something
i doubt we will ever need desktop apps again
everything will be a web app
want to run js? do it
native code? do it
let result;
if (n === 1,2,3,4,5,6) result = 'heads';
else result = 'tails';``` how do i make the odds 60/40?
wtf is that
just do random() * 100 and check if the number returned is bigger than/equal to the chance you want for it to succeed
Does it work
yes
thanks
Whats the point in using a db if you're just going to store json in it
idk what im doing ok
no ur doing alright
json is just a way to represent data, it's best to store it in something like sqlite vs some json file
👍
I never said it was a file
I just said what's the point
there is already a better way of storing data
Why not use it
json is just a way to represent data, it's best to store it in something like sqlite vs some json file
that's a dumb statement
why use a sql database and then just straight up not use sql features lol
if you store json text in a sql database, pull it and parse it, that's so slow and such stupid design
well yeah you're correct that sure it would be way better to take advantage of the sqltable schema
I'm not trying to say that storing json is the best way to store it, I was just chiming in on how between json files and a sqlite database to store json, I would prefer the sqlite database
might as well use .json 
how can i do that if no member specified then member = message author?
Sqlite is probably faster but yeah you aren't really using it if you just store JSON there
in which language
js
wqith quick.db too
if(!args[number]) member = message.author
It's not really about speed but safety and persistence
ok thanks i'll try
docs for null coalescing: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
thats cool
I didn't know that was a thing
might be easier to return null instead of undefined for packages
this is ES2020 iirc
Hello, how can I solve this problem?
...is that the full stacktrace?
I do not understand.
I was able to solve the problem, thanks anyway.
aight
ok
how long usually does this take?
however long it takes
Well how long it takes is usually dynamic, there are many amount of bots to review for the discord staff so it's pretty much unknown
okay, meanwhile I can't invite my own bot because of that ._.
heyo, anyone here hosting their bot with a raspberry pi?
whats your issue?
is it worth getting another pi for performance boosting?
the background tho
when i run a python script with python3 filename it works but with pm2 it errors out
Technically not a background
any ideas?
what would you call that if it isnt a background
It's transparent

lmao
i'm using glasscord
it injects into any electron app and calls the acrylic api on windows
+1
OH LOL
wait what most pi's don't have ethernet
yeah, a fair number dont.
hmm
looks like people are getting the wrong ones
imo a pi should be something you use for small projects as kinda a blank slate. If you want to host a discord bot you can, but you can also host a dns adblock or a website or literally anything because it doesn't matter
Is is possible for a bot to reply via the new reply feature, the one without mentioning you in the reply?
it should be
well there's this thing about message type reply
yea the api has a way to reply to messages
now if your library supports it yet is another thing tho
discord js doesnt but I hear jda does
from djs server:
✨ Discord.js will support inline replies in v13, replacing Message#reply with the new functionality.
If you'd like to try out the feature ahead of time (in a server with it enabled), please install and test this PR: https://github.com/discordjs/discord.js/pull/4874
You can e.g. use NPM to do this: npm i monbrey/discord.js#inline-replies (this requires git to be added to PATH)
Message #bot-commands
oh boy
imagine the number of messages starting with lowercase that will be caused by this
shudders
I don't understand, why lowercase?
Almost every message my bot sends besides embeds are replies
i guess most people would make replies with lowercase
oh
since they're sent as "@user, [some message]"
because "@south sinew , whats up" looks better than "@south sinew , Whats up"
essentially
perhaps
yea
True
LOL
pingery intensifies
yep
gah
halo combat evolved
lemme find some virus's rq. /s
how bout memz
bonzi buddy
wallpaper engine
my first bot's name was bonzi buddy bot lol
running linux cuz cpu go brrrrrrrrr
what distro?
kubuntu atm
lol
I would use arch but I cba to fuck with drives partitions on a terminal
dang
yeah arch installations are hard, formatting is the biggie
i wanna switch to linux
that and if you want to connect to wifi
but once you have xorg and a desktop (i normally use kde) its pretty easy to do the rest
my alt tabbing isnt working :sad:
if you dont want the hassle of installation but still want to use arch you can use manjaro, its essentially the ubuntu of arch
ye ive heard
except with kde instead of gnome because gnome 🤮
maybe if this corrupts somehow ill move to manjaro
but facecam won't work at all
cuz mac
how can i call a async func in python?
nitro gone sad
Anyone code in java script?
dont ask to ask
whats ur question
yea
and yea
Trying to figure out how to write a code for osrs trying to make ot where people can type a command and it send a list of items that are available to high alch for profit
what is osrs? and alch?
well it depends a lot on what exactly you're tryna do
Example: -profit
Return: rune dagger
Buy:2,000gp
High alch:2,005gp
Profit:5gp
Badges are sick
speaking in the proper channel too
bruh yes
agreed tho
hello Erwin
hello
@mellow kelp unfortunately not, but there is a site that has them listed
uuuugh i hate classes
why?
well you can make an api request or something
cuz once you start them you wanna keep them clean
do you mean classes as in uni or classes as in oop?
lmfao
ok good
i was about to agree on that one
class extensions


