#development
1 messages · Page 1722 of 1
i did this in my ts code and it worked, thanks
unless you have bandwidth issues
Used to be slower, but I managed to speed it up a bit
the time it takes to compress is bigger than the time you save on uploading
at least it was for me
Can't send the full img below 8mb
would be fun if you could use LZMA2 for compressing images and sending them around, sadly its not really supported widely
Well, I mean
I could try using jpeg compression
But that'd mean saving the file locally then uploading it
Instead of directly sending the bytes
cant you just edit it in the buffer?
👀 actually. I have a image host, is there an easy way to compress images server side?
its just me uploading, so time isnt an issue, but saving even 10-20% storage would be nice.
I do
The issue isn't manipulating it
It's sending
are these good enough?
Currently I compress it then send
cloud hosting
How's that 0 bucks
Free = bad
3 cores free pog lol
it looks good though
How in the name of phuq is that possible
Are you going to trust a text?
i dunno i just found it on internet
Lmao... dm me link... I'll verify
Rule of thumb is: if a product is free then you are the product
I mean if they were lying then they would've probably been sued numerous times already
They don't really gain anything other than maybe free advertising from you, or do they
the reviews are good on other sites
Maybe
well, depends if they are less known is possible that only a few people got scammed and they are still not flagged or on the court
hello
Also oversold servers are a thing
You'd be amazed on how much users you can fit in a single server
oof!
yea if you overprovision hardware it starts to get funny.
what is the best language for a bot?
well then i'll try test bot first
there is no best
which language u see as best
for some it Js, Py, Java
That question again
the language you're the most familiar with is the best one
I just noticed that they are different in functionality
here can u guys check it?
The language that fills your need is the best one
i mean not sure if it is oke
nodejs?
Node isn't a lang
here is the link of that cloud hosting provider
Like, you're going for heavy processing? Use js and you're up to a bad time
For web? Use js and you're walking in heavens
I'd say programming languages are like a carpenter's tools
You'd not use a chisel to tighten a screw
Nor use a philips to cut wood
Either on invite creation page or through server's role config
like i can check if a user has kick members permission to kick a member
Yes
but how do i know if the bot has permissions to kick the member
Most libs have some kind of member.hasPermission(permission)
and there are you wrong, have seen it more than once happening.
I mean, if you're into it...
looks like a loop with no break condition
I've seem people twist PS/2 connectors
Hey guys
JS image editing just sucks lol
its ok, just a bit weird
when i was checking out for VPS it asked me this but not for cloud hosting
any reason behind it?
yes. its required for some stuff you probably dont know about
can someone help me out with dealing with Missing Permissions error - it's not the source of the error that confuses me (like ik the bot needs to have permissions and be above any role it wants to manage) but rather how we deal with it. I searched it up and it said to use try catch (I'm using nodejs btw) but it doesn't seem to do anything
the only other way i can think of is just manually check permissions and the position of bot's role in comparison to the ones it wants to manage every time a function is called, but that's a ridiculous amount of editing on my end so just wondering if there's a better way to do it
try catch only works for synchronous code or awaited promises
if youre not awaiting your promises, you have to use .catch() instead
ah ok that makes more sense - right now I'm using .then().catch() so I probably missed something somewhere - otherwise i'll try using async/await instead - thanks
yep i got it i think - thanks a lot man
;nitro
```const Topgg = require(@top-gg/sdk`)
const api = new Topgg.Api("Your Top.gg TOKEN Here ")
setInterval(() => {
api.postStats({
serverCount: client.guilds.cache.size
})
}, 1800000)
(edited)
[20:06]```
I have add this into my code and then save restart my bot and it won't show many sever is in but it keep saying n?A
await api.getStats('461521980492087297') do i need repalce with bot client id
ping me
So i my bot cant use the message.auther.send('test'); and is giving the error ```C:\Users\wyatt\OneDrive\Desktop\IDK bot\index.js:76
message.auther.send('test')
^
TypeError: Cannot read property 'send' of undefined
at Client.<anonymous> (C:\Users\wyatt\OneDrive\Desktop\IDK bot\index.js:76:16)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (C:\Users\wyatt\OneDrive\Desktop\IDK bot\node_modules\ws\lib\websocket.js:835:20)``` Thanks, Gimmy!
It's author not auther
oh
good evening, is it normal that my discord bot does not display its status 1 out of 3 times?
i have this board but when it sends it on discord it only has
☁️☁️☁️☁️
☁️☁️☁️☁️☁️
☁️☁️☁️☁️☁️
@craggy root good night for us
how can i fix it?
Well it sends correctly from what I see
Hello all, trying to delete the embed posted, but it wont find it.
client.channels.cache.get(`828812500039761930`).messages.fetch(db.get(message.id).then(msg => {
msg.delete(10000)```
How its being saved
```js
db.set(message.id, embed.description)```
ah okkie thanks
any error?
I don't have an error message
@craggy root try to put the name in options
client.user.setActivity({ name: 'Nom', type: 'LISTENING' })
Do anyone get problems with api
No everything work fine
To list all guilds, it's
client.broadcastEval('this.guild.cache')
?
I have problems
Ok thx Lemaa
@craggy root come dm if you want I'm French
Ah ok t fr?
Hello, did someone know how can i get something like that with sharding
Expected Outpout with Client#users.cache.array()
[
'825191974767820801' => User {
id: '825191974767820801',
},
'242233306488373249' => User {
id: '242233306488373249',
}
]
Actual Result with Shard#broadcastEval("this.users.cache.array()")
[
{
id: '829304099921068043',
},
{
id: '830961807296430120',
}
]
How do you guys access v9 api
Is it some kind of opt-in thing
I know it's not for production yet
is there a good way to detect DM'd messages/reactions in discord.py? Also is there a way to block commands coming from DM's
If there is no guild linked with the reaction its a dm reaction
ah ok
Ah... maybe they are not cached?
I think you have to fetch them...
when I do it I get the expected result
Maybe because I cache all users
how
how would i fix this to make it work? any ideas?
// broken guess command
client.on('message', message => {
if (message.author.bot) return false
if (!message.content.startsWith(`${prefix}`))
return;
if (message.content.startsWith(`${prefix}guess`)) {
var guesses = ['1', '2', '3', '4']
var guess = Math.floor(Math.random() * guesses.length)
message.channel.send("Guess a number 1-4")
if (message.content.startsWith(guesses[guess]))
message.channel.send('nice');
} else {
message.channel.send('no')
}});```
What's the problem with it though
I just ask one question how start bot and stop bot is visual studio
the second if statement is completely ignored
Let's lint this and see why: ```js
client.on("message", (message) => {
if (message.author.bot) return false;
if (!message.content.startsWith(${prefix})) return;
if (message.content.startsWith(${prefix}guess)) {
var guesses = ["1", "2", "3", "4"];
var guess = Math.floor(Math.random() * guesses.length);
message.channel.send("Guess a number 1-4");
if (message.content.startsWith(guesses[guess]))
message.channel.send("nice");
} else {
message.channel.send("no");
}
});
Dead pls say na
Are you... expecting someone to send another message after the first one? Because that's not how you get a second message after the first one.
your editor has nothing to do with how you start the bot. you start the bot from a terminal or command prompt, usually
yeah, i have no clue how to do that (yes it is what im trying to do)
ਤੁਸੀਂ ਨਾ ਜਾਣਦੇ ਹੋ। ਅੰਗਰੇਜ਼ੀ ਚੰਗੀ ਨਹੀਂ ਹੈ ਇਸ ਲਈ
Soory but
I don't speak squiggly lines
If you want to speak in your native language ask in #general-int
thank you
we literally don't know what you're writing your bot in, or why you don't know how to start your own bot
But I Feel like you need to read this: #development message
I use replit
So I cnt know about visual studio
if oyu're using repl.it you're not using vscode
if you're using vscode, learn the language you want to use before programming bots.
the way you start your bot has nothing to do with your editor, usually
If you don't know how to start a program in this language, you don't know enough to be self-sufficient
@earnest phoenix https://code.visualstudio.com/docs/editor/debugging
And do host in replit
learn the basics at least
told you, you have 2 ways
integrated terminal or debugger
those are the only ways you can run ur bot with vsc
I know but is show error
then fix it
WHAT error?
Not found node. J. s
then install node
I do but my pc cnt support today I install
also what command did you run?
Index.js
In terminal
so you just typed index.js in the terminal?
I give you screen record
the only thing it might ask you is to download something to open the file for you based on the extension
At last it host 24/7

dude you arent making sense, your english is barely enough to get you by a normal conversation
you better off asking in #general-int in your native language
Yup i cnt know English
I try to say
most people use VSC either way, chances are quite high
if(message.content.members.first()) {
if(db.has(`afk-${message.mentions.members.first().id}+${message.guild.id}`)) {
message.channel.send(message.mentiones.members.first().user.tag + " : " + db.get(`afk-${message.mentions.members.first().id}+${message.guild.id}`))}
}
})
how can i define first
?
The error is cannot find first of undefined?
is message.content.members.first even a thing
there is so much wrong with that code
mentiones
Looks like a few things copy pasted together
it seems like it
while its not related to your problem, i'd highly recommend assigning a variable to something you use often, like first() in ur case
oh
Definitely because that is some horrible code duplication right there
Is This Type Of Bot Description Okay?
ban <@user> Bans a member from the server. help Displays all the commands of the server. mute <@user> Mutes a user in the server. unmute <@user> Unmutes a user in the server. afk Set's an AFK message for a user. warn <@user> Warns a user. warnings <@user> Displays all the past warnings of a user. clearwarnings <@user> Clears all the warnings of a user. status Changes the status of the bot. report <@user>Reports a user. suggest Logs a suggestion to the server. invite Generates the invite link for the bot. kick <@user> Kicks a user from the server. say Broadcasts a message in the channel. addrole <@user> Adds a role to a User. removerole <@user> Removes a role from a User softban <@user> Soft bans a user from the server. purge <no. of messages> Deletes a number of messages in a channel. ping Gets the ping of the server and bot. Levels Commands level Displays your current level, rank and experience. level Your servers level leaderboard. Meme Commands memes Returns a list of meme templates. create_meme <#id> <quote1, quote2,> Creates a meme from a supplied template ID Custom Commands support Links For The Support Server name Creates A Random Name (Has A Little Chance To Get Name: Random Name) owner Owner Of The Bot xp Tells You About How Fast Chat XP Is dashboard Sorry No Dashboard For Now bot Describe The Bot premium Gives You The Information Of Premium Features
Allowed? Yes
Readable? Absolutely no
Honestly, I'd quit the page the second I glanced at the description
That's late af
But anyway, try to navigate through that object
The headers should be somewhere
Which is better node fetch or request
node fetch tbh
what's a message nonce?
nonce just means once.
so for example if you have an id system, once an ID is made it cant be used again.
is it possible to edit an embed with a new embed? message.edit({embed:{...}})
Yeah
Hey guys, I'm trying to set up my event handler. Is this right?
module.exports = (Client, Discord) => {
const load_dir = dirs => {
const event_files = fs.readdirSync(`./events/${dirs}`).filter(file => file.endsWith('.js') );
for (const file of event_files) {
const event = require(`../events/${dirs}/${file}`);
const event_name = file.split('.')[0];
Client.on(event_name, event.bind(null, Client, Discord))
}
}
["client", "guild"].forEach(e => load_dir(e))
}```
I've gotten no errors, but when I run it, it doesn't to my ready.js event file.
Did you changed your main file?
what is the problem?
do other events get triggered?
try logging the commands in the console and see where it breaks
also are you executing this code in the main file or in the ready event?
Would i have to have something like this?
execute(client, message, args)
@old cliff
Sorry, I'm new.
show your event files
oof
remove the module.exports = (Client...... {
and replace Client with client
in the module exports
you only need that if your exporting something.
you dont seem to be exporting anything, so no need for it.
I see, other than that. Did I do it correctly?
Anyone pinged
How would I create a uuid system?
i use crypto to generate unique ids

did you use js?
Yah.
would be better if you ACTUALLY said what errors u getting

yea i was waiting
for someone
to reply
dont, just post ur errors
u using v11 syntax
How would I use it?
its guilds.cache now
np
const crypto = require("crypto")
const id = crypto.randomBytes(8).toString("hex");
``` i use it this way in one of my bots, but its not a pure number id it also contains letters
creates a id with 8 digits
Thats fine.
you could also use timestamp to create an id
that would remove the very little chance of duplicates
its insanely improbable though
yea unix timestamps also work
though that also has caveats
code runs extremely fast, microseconds
theres a chance you can generate the same timestamp twice
so make sure you wait at least a single ms
or do what discord does, have a process count and timestamp.
use a timestamp and a random number generator and add the random number to the timestamp
that would be preferred, yes
that would completely rid of duplicates
do i have it still?
1 sec
I wonder, when does their increment reset. When it reaches the end? Or every minute or something.
no clue
multiple objects?
yes
like
res.render('index.ejs', { data: JSONdata })
I want to render 2 objects
or you can say JSON data
but I think I found a way
res.render('index.ejs', JSON.stringify({data2: arrayData, data1: JSONdata}))
or
res.render('index.ejs', {"data": arrayData, "data2": JSONdata})
how can i add hyper link at this code ?
[Your Text](Your link)
@earnest phoenix console log your error in a catch block instead of not handling your promises
also
it says the channelid right there
I mean Guild
Do I can tell them
you have the channel id
are you even listening?
I need the guild ID, to inform them
and you gonna do what with a guildId?
Trace it
But, how I stop that errror
as i was trying to say before you cut me
It ain’t my server, it has admin in my server
with the channelid you can get the guildid
fetch the channel from your cache
and check which guild is its parent
How?
also check for permissions BEFORE you run stuff
idk what library you are using, nor what code you using
It’s js
Well that the fuck is that
discord.js!
okay, now which command do you have deleting reactions?
where did you copy this from?
No where
you would've known theres nothing here deleting reactions if you did
the only d.js function you using here is .send()
Okay
i ask once again, where are you DELETING REACTIONS?
you're the one who wrote the code, i assume you at least know your own code, and not blidnly copy pasting stuff without knowing what it does
thats the minimum i expect
I did it many years ago, then gave up on it
either way, look in your code for something like .clear() or .delete()
yup
Think I may have found it, give me some time please
ok
how can i remove all the roles from a person when a particular role is triggered
any bot
where doo i paste ?
So I need to check the chache
I hate auto correct
plss tl
yeah
I forgot where that stores? Is it not a hidden file?
huh?
Where you want hyper link (╯°□°)╯︵ ┻━┻
The. Catch
i usually have a role update listener to check for a specific role and then run some code
It’s my auto s
check BEFORE you run that
Cache
Run what?
but by using any bot
which will remove all the roles from a person when a particular role is assigned
?
It’s the invite url oauth perms isn’t it?
i thought you were asking how to code it
no, check it from member
YOUR member
not whoever used it
I don’t understand
man
i really want to write my bot in c#
Oh9
https://discord.com/developers/docs/resources/guild#guild-member-object
https://discordjs.guide/popular-topics/permissions.html
read those
It’s seems that the bot does not have permission to do the deletion/ removing all f emoji
thats literally what i've been saying
i give up
That’s obviously not the problem
I give up is my solution too
I will remove console.error
well, if you know everything, fix it yourself
least you could do when asking for help is listen


Yo hello there,im getting this error on Android studio:
MainActivity.java (at line 937)
public static double eval(final String str) {
^
Syntax error on token ")", ; expected
its on class btw
final String str 
Wait wait i fixed it
https://srcb.in/WEJxYUX5K2
TypeError: Cannot read property 'userID' of undefined
You've spelled length wrong multiple times
me?
It would appear so
does guild.fetchBans() throw error when no permissions or does it return null|undefined?
why do they require IDs
It throws an error if it doesn't have Ban Members permission
okay thanks
how can i invite the bot in my server
please do not message to several channels
Does mongoose by any way prevent NoSQL injections? Lets say i have a string from user input. I save it to the database. Can mongodb potentially execute that? Or does the mongoose driver prevent such things?
you have to wait, your limit got rised to 200 or so
Pretty sure that means that you created a bunch of servers to get your bot to reach 75 servers. I could be wrong though, although that's what I've read on this reddit post:
https://www.reddit.com/r/discordapp/comments/gphnl0/discord_application_verification/
happens also if you add the bot to Bot lists and gets quite popular really fast
Oh, didn't know that - good to know 👍
was that after you apply the verification form?
because i thought my bot was also rose kinda fast tho
but i apply the form without bump
when I want to save an emoji to mySQL i get this error.
[emoji is a MEDIUMTEXT in mysql]
https://stackoverflow.com/questions/39463134/how-to-store-emoji-character-in-mysql-database use a different charset
thank you 😄
Help meee
bro it means that there is no existing file with that name or either the path specified is wrong
on the picture you have everything. I don’t see what the path would be then?
bro its js const EModule = require('../models/embeding.js')
Its In the models folder
right??
its not in models
bro send a big screenshot
. mean going forward
./ means the current directory, ../ means jumping a directory back
ok i try
mh
folder in folder mh
../../embeding.js
oh yes
maybe
Also wrong name embedding not embeding
thx
Show code or the full error
You have all these files and you're stuck on an error like this :/
guess who copied most of their code? 
just reversed two letters
doesnt work for me
Get it already compiled
to make sure you are you
also if someone get banned for abusing bots it'll be impossible to verify with another account
I want to check if the bot can use an emoji (if he is on the server where the emoji is or if its a standart emoji, anyway he can use it)
but ```js
var searchEmoji = msg.guild.emojis.cache.find(emoji => emoji == args[1])
doesnt work. ' arg[1] = 👍 '
You're comparing an emoji object with a string
Compare the emoji name with the string
technicaclly args[1] will be <:something:id>
yes or \👍
so you should compare that with the emote's mention not the name
if js has something like that
also don't use var
ah, and btw
it'll NEVER match an unicode emoji
msg.guild.emojis.cache only contains emotes not emojis
does it match with :thumpsup:
no
how tf can I check if the bot can use an emoji?
so for e.g my command:
!check 👍
The bot has to check then if the bot can use this emoji
if you make
!check 
it should return: I cant use this emoji
👍 is not :thumbsup:, it's actually \uD83D\uDC4D
...
thumbsup is just a discord alias
Download https://static.emzi0767.com/misc/discordEmojiMap.json and try to find the emoji in one of the properties
is it emoji.id
?
that'll work since it's an emote
for emojis do what flaz said
the one that you know how to use
many are, there are no "best" database
depends on your specific use-case
and how proficient you are with them
im noob ngl
what will you be storing?
like money
yes, that's what I meant here
so you should compare that with the emote's mention not the name
i tried mongoDB its hard to use
But I am saving the unicode character to mySQL
it's not hard, it's just that you tried to use without knowing how it works
wait
you're using mysql?
just use <Name:Id> format
what are the length of your VARCHAR fields?
he's storing emjis in a db wot?
@orchid cave
Mongo tutorial
https://www.mongodb.com/blog/post/quick-start-nodejs-mongodb--how-to-get-connected-to-your-database
SQlite tutorial
https://www.sqlitetutorial.net/sqlite-nodejs/
both are relatively easy
expected
do note, one is the complete opposite of the other
for mongo you treat data as individual entities, without necessarily having relation with other data
for sql you group data in tables, meaning data is related with eachother in the same table or with other tables
also in mongo you get, in sql you SELECT
Hi
i am trying to make it so my bot status states the number of server it is in but it gives me a TypeError cannot read property cache of undefined
gonna send the line in a hastebin
hastebin not working so
client.user.setActivity(`watching ${client.guilds.cache.size} servers`, { type : 'WATCHING'});
so should i remove cache
i have a painful confession to make
hmmm
i've never used a logger module before 
how do i do to display the guild number then
what is wrong in it
reset your token
i deleted it
Still reset it. People could have screen shotted
get the whole guild collection's size
what i tried
well how do i do then
Also the error is about client.guilds being undefined
not exactly what you want, just as a reference
I don't get it why djs uses a cache for guilds but whatever
@pulsar void do a console.log(client)
clients.guilds.cac ???
he was probably re-typing it
show us the output?
There is no universe in which this code can possibly give you the error you're currently saying it gives you.
Ok and can you show the actual exact error you get with the setActivity line
Sure
I'd also point out on the other hand that the rest of your code will probably need updating, seeing as it's discord.js v11 code (as made evident by the fact that you have Discord.RichEmbed in there, which is v11 only)
Ah I see
that's a different error
So right now the version of discord.js you have installed is v11. That's no longer a valid version. you need to update discord.js and update your code
And now https://discordjs.guide/additional-info/changes-in-v12.html for code updates
your changelog command won't though
did u fix the rest of the code?
i removed the command with rich embed
whats the prob here
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I want to react with an emoji I meantioned with my second argument. But if the bot cant use the emoji it throws an error. So i did it in a try catch block. But instead doing the thing in the catch block it just throws the same error:
try {
var embed = new Discord.MessageEmbed()
.setTitle('React with ' + emoji)
.setDescription(description);
var message = await msg.channel.send(embed)
var emoji = args[1];
message.react(emoji)
} catch {
msg.channel.send("``❌ Cant react with this emoji``")
return
}
ERROR:
DiscordAPIError: Unknown Emoji
at RequestHandler.execute (C:\Users\Flo\Desktop\Discord_Bot\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async RequestHandler.push (C:\Users\Flo\Desktop\Discord_Bot\node_modules\discord.js\src\rest\RequestHandler.js:39:14) {
method: 'put',
path: '/channels/808771611070038049/messages/836217616871718932/reactions/hAA%3A745313572271161365/@me',
code: 10014,
httpStatus: 400
}
HIDE IT
fuck
const args = message.content.slice(prefix.length).trim().split(/ +/g);;
const command = args.shift().toLocaleLowerCase();
why using toLocaleLowerCase()
use toLowerCase()
reseted the token
nice
but in set Activity the server number won't show up
latest
yep
stop using var godammit
message.react(emoji).catch((err) => {
msg.channel.send("``❌ Cant react with that emoji. Maybe it is an external emoji``")
return
})
SOLVED IT
...
i dont have a major issue
you have
let me use vars like i want
use let/const instead of var
i don't understand i did a message channel send and it did fine with the same thing
ok i will use lets
you don't know the issue regarding vars do you?
no, I dont
an example:
tell me
but in set activity it dont work
let a = 10;
console.log(a); //Outputs 10 normally
var b = 5;
console.log(b); //Outputs 20, which it shouldnt
b = 20;
it outputs 20 even if b isnt defined yet?
var is archaic and by any logical definition, broken.
like, var is hoisted
please read: https://madhatted.com/2016/1/25/let-it-be
Ah thank you. Leart sth new again
help my set activity still not working
guys i mistakely turned off intents and now i cant turn it on what can i do?
To not break existing websites which haven't been updated
backward compatibility sucks
If they were to remove var completely I'm sure at least 50% of all websites are gonna stop working
but is understandable
please someone
.anyone?
they should give some deadline tho, can't count how many people are going to find future issues because of that keyword
you barely showed anything
intents on developer page?
someone please help
yes
What?
are you sure you're not getting any error?
Im Rushe
like we do
you're not verified are you?
Я не онимаю
means?
I is Rushe
no i am not
Does anyone know how to do dm, If so can you send me the code?
you're royally f****d then
Lol
means? gone?
I what
you can't turn it on again without verification AND intent whitelisting
RIP? i cant turn it on again
i can verify its above 75 servers
Fuck
Loch You
but what is the age limit someone told me 16 is
@wraith falcon can you don't?
it's 13 (14 in some countries)
nvm i changed it to presence and it works thanks still
although if you're minor you need your parents
in India? i am almost 14
k thanks
Stripe can’t verify people under 16 anymore. You need help from parents or a trusted adult.
what are you talking about
I'm from Russia, I don't understand you
ohk
age limit on discord?
if you don't understand then could you stop sending random stuff?
no verifying bots
13/14
og
for verifying is 16
to verify
if you don't understand then could you stop sending random stuff?I'm from Russia, I don't understand you
I'm from Russia, I don't understand you
I'm from Russia, I don't understand you
I'm from Russia, I don't understand you
so if you are under 13 you need a parent permission to join discord?
@scenic kelp please
pain
𝚡𝚘𝚣𝚊𝚞𝚗
ummmmm
no, if you're under 13 you can't have discord
@wraith falcon this is an english server, if you want to speak russian go to #general-int
it's for verifying bots that you need ur parents if ur under 16?
yes
ohhhhhh
no, for verifying bots you can just get someone else to verify the bot for you, not just your parents.
@lyric mountain so as u said this will require 1 month or so?
^ although parents are more trustable
i think they should allow underaged on discord but add a filter(but they're too lazy to do it)
btw tysm for your help
but also have no idea what Discord is and how it works usually.
around that, discord is reeeeeally slow for that
sed np thanks bye
they shouldn't
They legally CANNOT do that. it's not laziness. It's literally illegal for them to do this.
Go research COPPA for more info
oh
members have nothing to do for verification dude
its 75 servers, and idk if anyone mentioned, you can get your guardians ID for verification
you dont need to use urs
You actually have to have them create an account and apply
wait rlly?
yep
I remember reading that somewhere
hmmm interesting
they gotta create an account, get the ownership of the bot and apply
or be the owner of the team
I'm making an economy bot, and I wanna ask you guys for your input on my currency system.
The way I see it, I have three options:
Option 1: All servers share the same currency (makes it easier for leaderboards and the rest of the backend structure, but gives less per-server customization)
Option 2: All servers have their own balance, but there is also a separate global balance that does basically the same thing (same games, etc.) for leaderboards since it is not guild-specific (might make people not want to use the guild-specific balance, which could be bad)
Option 3: Have separate balances for each guild and then a bank/wallet system where users can deposit to the bank from any server and then withdraw from the bank to use in 1v1 multiplayer games on a different server, or maybe just ignore the withdraw/deposit altogether and just use the same balance per server.
Im thinking I should go with option 3, but if you guys were using a bot like this, what would you want?
hey i am trying to set up my bot on my vps
however it is saying: fields.flat is not a function?
is that maybe because i am using discordjs v12 and node-js v10?
update node.js to the latest LTS.
12 or 14 is what you should use
aha thanks evie
can someone help me with my python bot ?
I'd go with each server being individual and separate. Global leaderboards are weird because people can make servers just to get fake internet points on their accounts, so I'd not even do any cross-server stuff.
Go ahead and ask your question, someone will be able to help you (I can't, I don't know python, but someone else might as long as you actually ask a question)
Yeah the way I would get around that is to have no way to transfer points between accounts, and then have any way of getting coins (daily or hourly commands) have a cooldown for all guilds, not just one
I know some stuff but I can't necessarily help what's up @autumn rivet
But I guess they could make fake accounts and then purposefully lose games to transfer
yeah, that`d be a way they do it
i want to add a command so my bot dm the user
honestly I've seen some pretty weird shit going on with global point systems and people just obsessed with fake numbers
I assume you're using discord.py? @autumn rivet
yes
Ive seen people do like a 10% tax on games to make it slightly more annoying to do that, or just have no multiplayer games so you only play against the bot and then you can't transfer coins, but yeah that makes it impossible to have multiplayer games
Honestly, it's sort of really up to you, in the end? Like, probably all these systems exist in some bot or another, and they're all successful to a point
whatever you think would work for people
ok yeah, thanks for your help

ok
yo what i would use for making images with custom text like dank memer does?
canvas / canvas-constructor for nodejs. For other languages I have no idea
kk ty

so how does it work?
do i need to download canvas package or something?

canvacord doc i found hope it helps
That's sus
bots scrape the npm search for new packages iirc and bot downloads
hmm
20 million times in a week though...
ye
I doubt that
its not uncommon
20 million...
Yeah my new module was scraped. That was 10k downloads. Not 20 million.
can someone join my server i want to see if my bot Dm you you can leave after that
ok
Repository name?
canvacord
what do u need help with??
Daily reminder to scroll down to the last message before hitting "reply" to someone
As this person has already been helped.
hm alr
is someone good with python ?
i am
sure
I am also
how would i make it so if someone provides ha it changes to Ha
aka just the first letter being capital
In what language?
js
hello
and editing a user-provided msg, yea
do you know when my bot is going to be inv to severs?
??
bots cant edit a users message i dont believe
idk what ur talkingabout
not to edit
say i run
;test ha
it would log in the console
Ha
but i figured it out
i try put up my bot on top.gg idk when ppl can inv it
only after it has been approved by a reviewer
please dont ping me, i have no clue what you're talking about
nor am i able to help because i dont use top.gg's website
oh ok
like 100000000000000000000000000 years right
up to 2 weeks or more
Now go re-do your bot description so it's not just character spam. 
Waiting time may actually increase if you're not being nice 😢
2 weeks is a short time in the world of applications
.
I've had api access requests take months.
who wants to help me test out my anti nuke
🥺
Is mongodb a good database?
I'm switching from Sqlite to mongodb
So any advice or smth?
indeed
how can i fix these 2 errors
Any examples....? For each
Would be helpful
please?
There's not enough info, you haven't posted the code that throws the error
Abort error mostly related to your connection
bruh
it's an api request
how could it take months
They meant the request to get access to the API in the first place
oh lmao
^
lol
@long crow have u used the buttons feature yet?
it crashes when ever someone is voting
Not a discord tester, so nope
hmm i see
i dunno why but i cant get this to work... (It has responses but removed em as not all of em are PG clean) i get no errors, and it refusing to listen for any message sent in the dedicated channel
client.on('message', async message =>{
if (message.channel.id === '828315972972707851') {
let webhookClient = new Discord.WebhookClient(webhookid, webhooktoken);
if (message.author.bot){
let args = message.content.trim().split(' ');
const responses = ["test", "test"]
const pepereply = responses[Math.floor(Math.random() * responses.length)];
channel.setTopic(`Speak to pepe. (He can be mean.) | Responses: **${responses.length}** | Last Loser: **${message.author.tag}**`)
webhookClient.send(`**[${message.author.tag}]** ${pepereply}`)
}}});
well it certainly wouldn't respond to you.
it only responds on the specified channel, and only to bots
and since you're not a bot...
actually it did error i was scrolled up, i couldnt get responses before initialization
it*
the code above should not produce that error message.
now i want to ask you how
oh
lang.js file :
const data = require("../data/database.js");
const sql = require("mysql2");
const db = sql.createConnection({
host: data.host,
user: data.user,
password: data.password,
database: data.database
});
module.exports = async (client, message) => {
db.query(`SELECT * FROM lang WHERE guild_id = '${message.guild.id}'`, function (err, result){
let lang;
if(!result[0]) lang = "fr";
else if(result[0] && result[0].lang) lang = result[0].lang;
const getLangue = require(`./${lang}.js`);
const language = getLangue;
});
};```
when i get x (lang.js file) in my message event, and i console lang x.language, he returned undefined, but why
Do we need to get 2 vps (instances/droplets) for database and hosting or can we host bot as well as database on just one instance
hey
just one vps is fine for many things.
realistically you can have as many things as the vps can handle.
I'm trying to host mongodb in there as well
yep no issue.
my vps has mongo, 3 bots, 5 or so websites currently on it.
oh it has mysql too.
Oh ok thanks
who can help me #development message
what is that
i need suggestions on stuff i should add to my economy bot's shop
Could someone help me with this please? I checked everywhere but couldn't find anything
It literally says in which file, which line the error is at
how do i make it so in my status it show the number of members the bot watchs from all servers
show help.js
I can help you with that
how do i do it and also you should show help.js
My help.js is abit big https://starb.in/2RS24Z.js
first of all u forgot the semicolon at the end of the line 408
i'm on python 3.9 having this exact issue https://github.com/top-gg/python-sdk/issues/35. It says it was fixed
yeah
and there is no name property in the line 408 so you must have changed something
-b 689802542850506775
Banned MDZ#1691 (@fathom wadi)
fuck you telekom
It logged me out of discord when i clicked on his pfp
Who could help me I would like to do the same on my bot.
For me it gives that, the positions are strange 
If there is a person who can speak French speak French preferably please
Does anyone know of any python modules or ways to make sure a link (generated via wikipedia scraping) is appropriate?
O raises a error and X doesn't
Same exact thing 2 different if statements
The data deletes but is throwing a error when doing so

@slim heart any idea?
delete by x and y
kk
/home/runner/botlistgithubio/node_modules/express/lib/router/index.js:458
throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
^
TypeError: Router.use() requires a middleware function but got a Object
at Function.use (/home/runner/botlistgithubio/node_modules/express/lib/router/index.js:458:13)
at Object.<anonymous> (/home/runner/botlistgithubio/routes/index.js:19:7)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at /home/runner/botlistgithubio/structures/app.js:35:21
at Array.forEach (<anonymous>)
at App.loadRoutes (/home/runner/botlistgithubio/structures/app.js:34:12)
at new App (/home/runner/botlistgithubio/structures/app.js:19:8)
at Object.<anonymous> (/home/runner/botlistgithubio/index.js:28:6)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
exit status 1
this error is coming
code?
const http = require('http');
require('dotenv').config();
//require("module-alias/register");
const config = require('./config');
var fs = require('fs');
const mongoose = require('mongoose');
var express = require('express');
var createError = require('http-error');
var app = express();
const colors = require('colors');
const App = require('./structures/app.js');
const bot = require('./client/bot');
const {MONGO_DB_URL} = process.env;
let botname = "";
//CONNECT TO THE DATABASE
mongoose.connect(`${config.database.MONGO_DB_URL}`, {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true
});
console.log(colors.yellow(`Connected to the database on `) + colors.underline.green(MONGO_DB_URL));
//Logged In The Bot
let client = bot.init(config.discord.token);
console.log(colors.yellow(`Logged in as `) + colors.underline.green(botname));
//Listen To The Server Port
new App(client).listen(config.port 8080);
console.log(colors.yellow(Running on port ) + colors.underline.green(config.port 8080));
this
Where do you do anything with routers there?
const { Router } = require("express");
var express = require('express');
const bots = require("./bots/index");
const api = require("./api/index");
const theme = require("./theme");
const join = require("./join");
const login = require("./login");
const logout = require("./logout");
const user = require("./user");
const me = require("./me");
const route = Router();
const app = express();
route.use("/bots", bots);
route.use("/api", api);
route.use("/theme", theme);
route.use("/join", join);
route.use("/logout", logout);
route.use("/login", login);
route.use("/user", user);
route.use("/me", me);
route.get('/', (req, res) => {
if (!req.query.q) res.render('index');
else res.redirect(`/bots/search?q=${encodeURIComponent(req.query.q)}`)
});
module.exports = route;
this
anyone have any issues with any rpi cluster using a dongle refusing to reconnect? i thought i configured the interface correctly but from time to time it still kicks it off 
not suprised tbh, wonder if it would be worth just getting an ethernet hub for it





