#development
1 messages ยท Page 1014 of 1
@cobalt spruce define args
Well learn how to code before asking questions here
Well this is a bully
its nothing against you, but it helps both sides
we could show you how it works but you will not understand it and maybe get a similar question in the future
making bots is an intermediate level project, you are trying to bite more than you can munch
i learned most coding while writing a bot, but i usually lurked around github and stackoverflow
let args = message.content.substring(prefix.length).split(" ");
Do i define args like this?
its the same as wanting to write an essay in russian without knowing russian
yeah, that'd work
math is part of javascript
^^
@pure lion now?
you overcomplicated your code
if(args[1])
works just the same in this case
if (!args[1]) {
return message.channel.send("something here");
.toString is a bit excessive, you know all your strings are already strings
@restive pebble can u help with volume in YT_Search
eightball[Math.floor(Math.random() * eightball.length)]
because in that vol 5 is normal
pong
if we do 100 it's earrape
then whats the issue
that 5 is normal
how it works
if we do 10 it's earrape
dont let users put it on 10
.play(lol,{
volume:50})
if above 5, put at 5
and if larger than 5 return some'
i suggest setting it at 5, and not letting users change it.
just like most music bots do
volume setLogarithmic
and then let users change it via their settings
if(command === "volume"){
const bruhggg = Args[1]
.setvolume to Argas 1
}
@delicate shore @delicate shore
@pure lion wot
K so how would i like get the latency of the client on discord.js
client.ws.ping
thanks
@delicate shore .setVolume
Ok
in decibals
function
()()()()
()()()()
@pure lion
DMS pls ๐ข
TEST_ARRAY = PgArray(VARCHAR.with_constraints(limit=5), array_depth=2)
print(TEST_ARRAY.produce_table_query(name="bob"))```
not so stinky Postgres datatypes ๐ซ
So uhh im looking for some yt tutorials for discord.js bots but i always end up seeing something outdated/unfinished, is there any documentation for discord.js or such?
So uhh im looking for some yt tutorials for discord.js bots but i always end up seeing something outdated/unfinished, is there any documentation for discord.js or such?
@potent dust https://discord.js.org/
how do async functions work?
asynchronously
ok
will this work?
Nice
nope
it doesnt
const Discord = require('discord.js')
module.exports = {
name: 'kick',
description: "this is a kick command!",
execute(Discord, bot, message, args){
async function f() {
if (message.member.hasPermission("KICK_MEMBERS")) {
if (message.mentions.members.first()) {
try {
await message.mentions.members.first().kick().then(message.channel.send("I just Kicked his" ));
} catch {
await message.reply("I do not have permissions to kick " + message.mentions.members.first());
}
}else {
await message.reply("You do not have permissions to kick " + message.mentions.members.first());
}
}
}}}
await is only valid in an async functions
yes
does it work?
no
yes
thats the error
async execute
execute is already a function
uhhh
async execute
so his works
๐
try
use an alternative account to test kick ban features
^
fully testing those commands can take hours, no one really wants to sit through that
yes I have an alt...
but it kinda crashes my laptop
backup laptop
fkn intel core i3
@Justii#3473, I do not have permissions to kick 632266069146468384
I get this response :/ how can I make it:
@Justii#3473, I do not have permissions to kick USER not userid
how did you get the userid?
message.mentions.members.first());
he is just logging the member object
which logs the id
<member>.user.id
Actually the object works fine too
ur choice lol
i suggest looking at the docs for those kinds of questions
@spare mirage what is
name needs to be lowercase
phew almost got my bot ratelimited (again)
i use this as defualt
if you spam the Discord API your bot will get ratelimited and locked out of the api, depending on the endpoint for 24 hours
@spare mirage should i change it
lul don't tell me you're putting all your commands inside a single file
that's insane
cuz it broked my last bot
how do i initiate an auto poster?
uhh
add the client on the dlb client
TypeError: Cannot read property 'position' of undefined
const dbl = new DBL(process.env.API_TOKEN, { webhookPort: 5000, webhookAuth: process.env.WEBHOOK_AUTH},client); @earnest phoenix
replace the process envs with your credentials
cuz it broked my last bot
@cobalt spruce you can only put a handful of commands inside a single file before it becomes barely readable
and that pushes everything automatically?
yes
How often?
idk
how do i get the first 10 values of an array?
maintenance will become a hell, and don't get me started on "adding new features"
can someone help me with my error?
<array>.slice(0, 10);
ty
you don't need to use a third-party command manager, the logic behind it is quite simple
let authorHighestRole = message.member.highestRole.position;
TypeError: Cannot read property 'position' of undefined
but using none is simply a no no
wait for some reason my bot wont post to dbl anymore
ain't it ratelimited?
Please help me
highestRole is undefined
if you don't give us more code to look at we can't help u
i havent spammed the DBL API for now
and the current Guild count on the Webpage is 3 days old
@spare mirage maybe one of the two members don't have roles at all
no roles = no highestRole = undefined
use an if-else clause
then check if server doesnt have roles
if (member.roles) //execute if there's at least one role
else //else do this
doesn't it give false if empty?
then if(member.roles) will always be truthy
js is weird
Doesn't
You check it's size
just check if highestRole is defined before using it
@spare mirage ```js
if (member.roles.highestRole) //execute if there's at least one role
else //else do this
all servers are supposed to have at least 1 role
everyone right?
but no member is supposed to have a role assigned to them
everyone is kinda excluded in some libs
hey i'm having an issue with a yt search command
I really dont know what to do
line 491:
let VIDEOS = VIDEO10.videos.slice(0, 9)
line 637:
msg.channel.send(`Please choose a song (1-10)\n\n${VIDEOS.map(v => ++index + v.title).join('\n')}`)
err:
(node:30472) UnhandledPromiseRejectionWarning: ReferenceError: Cannot access 'VIDEOS' before initialization
...
indent that thing smh
you haven't said what's your issue
ok
you didn't define channel anywhere
client.channels.cache.get
@magic jackal that is a id formate?
no its noooooooooot
it is
IT IS HARD AF
slowmode is literally 2 lines
no u
bruh moderation commands are so fricken annoying to make
website
smeh
like wtf its not even fun
u need only to add perms
coding is always fun
YES
i hate coding moderation commands
when u kill ur pc
if it makes you feel any better heres how to kick people
@pure lion bro how i make my bot globaly?
globally?
like logs could be seen in only one server
uh you dfo the exact same thing
you make a command so the owner can set values themselvesx
...
@spare mirage NAH
kinda is
Nope
it is
haha sike
gotta work for it jajajajaj
each server has their own data stored inside their locker
that's basically a database
they call it cache because it explodes when you stop looking at it
actually, just put the strings inside brackets
and handle it like a normal string
\n
Okay thanks
help me pls im using the dbl vote stuff to send a embed to a channel and i get error
.addField(`Voter`, vote.user)
^
ReferenceError: vote is not defined```
<h1>{"text\n"}</h1>
<button onClick={continueButton}>Continue</button>```
it doesnt work
What are clusters and shards?
@still merlin #topgg-api
Any link an to explanation would also be appreciated
shards are self explanatory, they split a big bot into smaller parts hence "shards"
Oooh
clusters are mostly used in huge bots where each shard has its own machine but they're interconnected
so they can communicate with each other
does anyone know a good way to store message embeds
elaborate
does anyone know a good way to store message embeds
@torn ravine store the values then put it into an embed
I cant even read that
@earnest phoenix I want to store this
db
of course not
SyntaxError: Invalid or unexpected tokenv
you have a syntax error, you can identify and fix it yourself
stop copypasting your code here expecting that people will fix your code for you
that's not an excuse
Suggestion: Learn js before you make a bot, that helped me out a lot-
@spare mirage there's something in your code that shouldn't be there
the stacktrace tells you at which exact line it identified a syntax error
learn to work with your environment
@spare mirage first step: INDENT UR CODE
finding the issue will be 10x harder if the code isn't properly indented
spaces/tabs before the actual code
if (something) {
somefunction(aa, bb);
if (anotherthing) {
//stuff
}
}
compare to this:
if (something) {
somefunction(aa, bb);
if (anotherthing) {
//stuff
}
}
Hey, i'm trying to make a role reaction system, with the event messageReactionAdd, but when i set the reaction it just doesn't work. I tryed to add a console.log at the forst line of the event block, but it doesn't log. Does messageReactionAdd event only work with messages sent after the process start ?
ahh ok
yes unless you have partials on
yes
@smoky spire yes who ?
you
makes it so the event just emits an object with the id so you can fetch it instead of not emitting the event
Partials are basically barebones objects that might not have some properties
it's in the clientoptions
IM about to smash my pc
IM about to smash my pc
@spare mirage why ? ๐คจ
whats this React Hook "useState" is called in function "titlePage" which is neither a React function component or a custom React Hook function
https://hasteb.in/iweqabod.js
its still returning this error:
(node:30472) UnhandledPromiseRejectionWarning: ReferenceError: Cannot access 'VIDEOS' before initialization
but i declared VIDEOS above already
this shit is so fkn dumb
@pure lion what line ?
wait brb
should work
the error is on line 14 ?
whats this React Hook "useState" is called in function "titlePage" which is neither a React function component or a custom React Hook function
@celest schooner
since react hooks are functions and not actual classes, they can't have fields, so to have a variable that's tracked by a state you useuseStatewhich returns the variable and the function to update the variable
updating the variable triggers a re-render
line 14 is the let declaration line
the error is on line 14 ?
@hasty lotus no the error is on line 160 sorry
what should be wrong
@earnest phoenix const [continued, setContinue] = useState(false)
read your error @spare mirage
isnt that what im doing
I did :/
...yeah InternetRamen?
guys how do i use and enable "partials" ?
...
djs docs ?
yes
uh
no
no
try searching partial in the search bar, it might show
Am I right that the bot needs manage messages permissions to remove a userโs reaction, even on the botโs own message?
unfortunate
Guess I can just delete the message and resend it with updated content/reactions
Thatโs no fun tho
bruhhhhh
ban commands are weird
How do i make the bot reply when a user dms him? And can i use bot.once inside of bot.on
why ?
Im having this the whole time
If i have
<h1> </h1>
<button> </button>
in jsx how do I make it so the button is under the heading and is in the center?
been trying for 30 mins
This is probably not the question you'll ask here @celest schooner
{"\n"} doesnt work
How do i make the bot reply when a user dms him? And can i use bot.once inside of bot.on
@earnest phoenix
client.on("message", async (msg) => {
if(msg.channel.type == "dm") {
msg.channel.send("Dm message recieved")
}
})```
I have this error ;-;
Cannot read property 'execute' of undefined
This is the line that gives me the error
client.commands.get('status').execute(message, args);
@earnest phoenix
client.on("message", async (msg) => { if(msg.channel.type == "dm") { msg.channel.send("Dm message recieved") } })```
@hasty lotus what's async
@potent dust show the content of your external command file
async is for await, but nvm i haven't used await here
just i always use it
^^
u dont need asyncc
does message.channel.send in the above dm the user?
yep
it checks if the type of the channel is dm
if it is, then sending a message in the dm type channel will send a dm
๐
also can i use bot.once Inside bot.on
can I make the bot copy the messages the ppl send to my bot and let my bot send them to me?
no
bot.once will execute when the bot will recieve the event
but only once
bot.on will execute every time the bot recieves the event
i want that exactly
can I make the bot copy the messages the ppl send to my bot and let my bot send them to me?
@spare mirage well, technically yes, but idk i might be forbidden by the ToS
and it's just spying
๐
but i want bot.once INSIDE bot.on so it sends a DM to the user when he types !smth and waits for another message in the dm but only once
but i want bot.once INSIDE bot.on so it sends a DM to the user when he types !smth and waits for another message in the dm but only once
@earnest phoenix well an event inside another event isn't possible
f
but you can make a variable
like a Set()
and add every users to this set
and if the set has the user you return
can i make it so when someone types !smth it dms ghe user with "type smth" and when thw user types "smth" the bot excecites smth but only once can the command smth be dmed to the bot if the user has ran !smth and this is getting confusing
https://hastebin.com/osubepikeb.cs
ive been searching for 40 mins now please help
A while ago my bot showed
1400 members in 15 servers and now it shows 8800 members in 195 servers i think there is a problem is there?
Did my bot get verified and a lot of people added my bot?
Your bot should have the tag verified
By getting length of server list and adding the length of member list from each server
It worked perfectly
got eval command?
https://hastebin.com/osubepikeb.cs
ive been searching for 40 mins now please help
@spare mirage sorry, i don't see any errors there, try to remove the const banReason line
var mcount = bot.users.cache.size
var scount = bot.guilds.cache.size
var tcount = bot.channels.cache.filter(c => c.type === 'text').size
var vcount = bot.channels.cache.filter(c => c.type === 'voice').size
this always works
By getting length of server list and adding the length of member list from each server
@regal raven use client.users.cache.size
and client.guilds.cache.size
For js?
yes
users.cache.size is only the number of of cached users btw
aren't you using djs ?
oh ok sry then
It is easier for me
how do i fetch a invite from a server? i have there id and i want to check how many bots are there
No problen
how do i fetch a invite from a server? i have there id and i want to check how many bots are there
@silent berry no need to use an invite
just fetch the guild itself
I use len(client.guilds) to get server count and a loop to get member count in each server and add them
still doesnt work @lyric mountain
im js
Nicr
what doesn't work?

@hasty lotus
@lyric mountain so what do i do?
1 - get a guild by its id
2 - filter the members in it using the .filter(m => m.user.bot)
3 - get the size of the collection
ikr
bot.on('message', message=>{
if(!message.content.startsWith(PREFIX) || message.author.bot) return;
const args = message.content.slice(PREFIX.length).split(/ +/);
const command = args.shift().toLowerCase();
if(message.content.startsWith(PREFIX + "ping")) {
bot.commands.get('ping').execute(Discord, bot, message, args);
}else if(message.content.startsWith(PREFIX + "image")) {
bot.commands.get('image').execute(Discord, bot, message, args);
}else if(message.content.startsWith(PREFIX + "stats")) {
bot.commands.get('stats').execute(Discord, bot, message, args);
}else if(message.content.startsWith(PREFIX + "purge")) {
bot.commands.get('purge').execute(Discord, bot, message, args);
}else if(message.content.startsWith(PREFIX + "ban")) {
bot.commands.get('ban').execute(Discord, bot, message);
}
});
// commands
bot.login(token); //logs in
is there smtng wreong here
well, your using a command handler, but only using half the features of it for one
?
you dont need to if else for every command
you could do like bot.commands.get(args[0].replace(PREFIX, "")).execute(Discord, bot, message, args);
that shouldnt be the problem
xDD
I define args in ban.js
his problems are in const banReason = args.slice(1).join(' '); and index ligne 17 (https://cdn.discordapp.com/attachments/272764566411149314/728309644669222982/unknown.png)
ain't this the name of the command itself?
no
seems index line 17 is the loading of the command
which likly means its a command giving that error
please, don't
use another file for commands
don't put everything inside index.js
put comments before things
ah, nice then
a question, but if my bot exceeds 100 servers (and is not verified) what happens?
nothing
Until October 7th, nothing
what happens next?
After that, no one will be able to invite it anywhere
ah
also your bot will be ddosed with the presences payload if you don't have the user_presences gateway
uhh
which requires verification
you refer to me@lyric mountain
i would bet the vast majority of bots dont need user_presenses
yes
const args = message.content.slice(PREFIX.length).split(/ +/);
they diferent index.js ^
const args = message.content.split(' ').slice(1);
ban.js ^
?*
should just disable the intent
you should send the same args everywhere
its much more consistant
also, theres not a lot of reason to send Discord and your bot everywhere.
you can require discord(or specific parts of discord) in any file you need.
and message has message.client which is the same thing anyway
If my bot DOESN'T do stuff like downloading the whole member list and it reaches 100 servers, what happens
args doesnt need slice if your using the one in your command handler
since you already sliced it
If my bot DOESN'T do stuff like downloading the whole member list and it reaches 100 servers, what happens
@earnest phoenix post october 7th, you won't get to 101 servers
args doesnt need slice if your using the one in your command handler
@solemn latch then what
im tired and done with this but I want to finish
you can just join them
you need to understand how the args work
:/
then it will be very easy
google arguments in js
but we all use different methods
If my bot DOESN'T do stuff like downloading the whole member list and it reaches 100 servers, what happens
If my bot DOESN'T do stuff like downloading the whole member list and it reaches 100 servers, what happens
@earnest phoenix you ๐ won't ๐ reach ๐ 101 ๐ servers
right now, nothing
but still
after october you need to be verified by discord to have more than 100 servers
Why
new api
I don't like coinflips between life and death
My frnd's bot was blocked for being "abnormally popular"
yes
I've seen some spambots that were verified by Discord
temporarily blocked*
so it's not even safe
that's because it had unnatural growth
Peeps invite your bot too fast = discord yeets your bot
so it's not even safe
@craggy token if the owner is banned from discord, they'll not be able to verify ever again
Also what's the requirements for verification and what stuff will my bot get blocked for
@craggy token if the owner is banned from discord, they'll not be able to verify ever again
@lyric mountain daym that sucks
but still
please help
bruh
@lyric mountain daym that sucks
@craggy token well, only if you get banned for making spam bots
in some of your lines, your running execute in diffrent ways
Also what's the requirements for verification and what stuff will my bot get blocked for
@earnest phoenix use common sense and you'll be fine
I have an economy system and people can donate me bitcoin and get coins inside the bot. Donnly got banned for making money off of the API so will my bot get blocked too?
const banReason = args.join(' '); โ
@spare mirage are you using handler
Dank memer does so
yes
let Your name Here = args.slice(Your args here).join(" ");
I have an economy system and people can donate me bitcoin and get coins inside the bot. Donnly got banned for making money off of the API so will my bot get blocked too?
@earnest phoenix you won't get blocked for that
that's called donation
const banReason = args.join(' '); โ
@spare mirage you need to slice off the argument where you mention who you wanna ban
yeah I believe donation and premium perk stuff is safe
I did in indexsj
but an absolute paywall isn't
But donnly only took maintenance fees
And they got banned
And there are giveaway servers that make money by other peeps advertsing their server
So
I don't have that
your removing just the prefix there
and splitting
your command name is still in args
how do i do that for mentions inside messages
and the mention is also in args
all mentions? or just the first one?
!command mentionhere other things
or
!command things mention things
so it removes everything before the mention including the mentikn
js?
const args = message.content.split(' ').slice(1); @solemn latch this better?
like :
!sometextbeforemention @earnest phoenix sometextaftermentionandyesiusejavascript
Then it splits the message so args is sometexaftermentionandyesiusejavascript
im done
no the one you had in index.js is good
ive been trying this command for 3-4 hours
I store EVERYTHING in index.js should i worry
but in the actual code let msg = args.slice(1).join(" "); do that
so it is slicing of the part where you mention the user and joining the rest of the args
with space
dayym
I store EVERYTHING in index.js should i worry
@earnest phoenix yes
that's a massive issue
our methods are different
copy pasting is never a good idea. atleast watch a tutorial if you're going to be lazy
dude's writing a bible
im prepared to read it
lmao
i wanna make a C!give <mentioned user <amount> thingy in my bot, this is the code i want to run:
try {if (db.get(`userBalance_${message.author.id}.balance` < (the amount in the message)
{
message.channel.send("poor you don't have enough muny");
} elseif (<no mentioned user> || <no amount specified>) {
message.channel.send("you typed the command wrongly, thr syntax is C!give <user> <amount>");
} else {
db.subtract(`userBalance_${message.author.id}.balance`, <amount>
}
db.add(`userBalance_${<mentioned user's ID>}.balance` , <amount>);
catch(err) {
message.channel.send("some error occurred, hope my dev is online tell him to check the logs");
}
But how in the world do i actually do thia and i wrote a bible @solemn latch @lyric mountain
Never code on smartphones
HAIL KEYBOARD
lemme make it a bit more readable
And there was probably wrong syntax there
And please DM me if I'm offline I'm off to sleeeeep
you're also writing a bible
can you learn some js & d.js
Who has lines of giveaway codes please in json
code in json?
kimse sana bedava kod vermiyor
json kodlarฤฑ vereyim ben
lol, I give up trying to format that
lol
i refuse to learn anything
@solemn latch I didn't said to u
just stick it in vs and hit format
git รถฤren
Woo
just stick it in vs and hit format
@solemn latch not possible, so many syntax issues
ah
Yes
lol
try {
if (db.get(`userBalance_${message.author.id}.balance` < (the amount in the message)
{
message.channel.send("poor you don't have enough muny");
} elseif(<no mentioned user> || <no amount specified>) {
message.channel.send("you typed the command wrongly, thr syntax is C!give <user> <amount>");
} else {
db.subtract(`userBalance_${message.author.id}.balance`, <amount>
}
db.add(`userBalance_${<mentioned user's ID>}.balance` , <amount>);
catch(err) {
message.channel.send("some error occurred, hope my dev is online tell him to check the logs");
}
english only in this channel
your vsc is having a seizure

tf are you trying to say
he wants some spoonfeeding
yep

lol
:spoonfeed:

someone said theres a giveaway library
too bad you're doing this for free
for discordjs
The json codings its parreil que js?
67k per month, holy circus
json is a notation
JavaScript Object Notation - it isn't a programming language
if you expect to be spoonfed - no
just explain me how i can use args to:
User sends message: C!give @earnest phoenix 6000
let usertogivecoins = @earnest phoenix
let amounttogivecoins = 6000;
then some code that i have figured out
how do i do that
spoonfeed me lol
split the message into an array
my mom SOMETIMES feeds me while im playing Minecraft
this is a test message with split will become [this, is, a, test, message]
npm i discord-giveaways Its not the lines of code @solemn latch
wdym
its a library
Cant spoonfeed you
for doing what you want
On the site there are no lines of code
yes there is
Ah
dw if you're a beginner it takes some time for everything to click in
xd
I am French and my translators beuge
g > d yes
๐ค
i have tried that
@earnest phoenix dude, I'm gonna save that url for future spoonfeed defence
if it doesn't work - congrats you managed to mess up a step by step tutorial with pictures
๐ค
honestly the rules should be error messages or concepts only.
ie, if you have an error, you can ask.
if you have a concept(a direction, a method of doing something, whatever, broad ideas) you can ask.
asking things like, how do i handle args is really a google type of question 95% of the time.
the general rule of thumb is to do research on your question, if you cannot find your answer then you'd go and ask on places like discord guilds // forums
yeah
but uh over half of "bot developers" here never heard of the term research
thats just sad
im so mad been stuck on this command for 5 hours
it means the ban string key could not be found in the commands collection/map
ahh fixed
edwin ๐
What type of VPS specs do you guys have?
no vps here, running my bots on my database server machine
i have two.
a 2gb with 1 core E5-2697V2
my second is a 1gb with a ryzen 3900x core
i plan on getting a few more of the ryzen vps's

nodejs?
๐ค
Py
youd have to make the command run a script that stops the bot, and starts it again i think
why not use pm2
Will it start it as a tmux session
if you have something that can start the program automatically you can also just close it.
doesnt have to be pm2.
which you should have something auto restarting the bot.

@solemn latch have you tried running a benchmark on the ryzen machine?
nope. they are okay.
not nearly the speed i was expecting
still really good for $5 a month
i can run a benchmark, just lmk what
curl -sS https://raw.githubusercontent.com/jgillich/nixbench/master/nixbench.sh | sh
try running that
{ MongoWriteConcernError: No write concern mode named 'majoritys' found in replica set configuration
help me
idk why
@quartz kindle
no cpu passthrough?
'${client.guilds.channel}.size' what is the correct? I don't find in the documation.
left is my worse cpu
rights the better
@low phoenix what are you trying to do?
size needs to be inside the {}
aes needs cpu passthrough, otherwise its running in software mode
@opal plank count the channels of all servers.
even if it was, guild.channel isnt a method. guild.channelS, is
@low phoenix ${client.guilds.channels.size}
For v11?
yes
v11 is going to be deprecated
good luck with something that wont work in a few months
v11 will stop working soon lmao
why
cuz its old
stop being afraid of updating your old code
theres a guide that shows precisely all the changes in syntax
read the docs
thats how i lea-
i feel like at this point of me being here, i learned that its almost a requirement to tell people to check docs beforehand
i learn through the docs lma9lma9
Im trying to have a config option for users to customize there rank card color with a hex color, how do I check if the users argument is a valid hex code? Please ping me if you have an answer ๐
check if its 7 letters long, starts with #
discord.js-commando is only right for v11?
then check if it includes z too lol
/^#[0-9A-F]{6}$/i.test('#AABBCC')
*copies loudly*
nope
/^#[0-9A-F]{6}$/i this is the regex, the test is a method for testing a string , which here is the '#AABBCC'
Ah, so instead of that I would put the argument?
test will test the string and return true or false
you can do match, test, anything with the regExp
๐
So for example
does this work?
if(/^#[0-9A-F]{6}$/i.test(args[1]) == false){
return;
}
or is that not a correct way of doing it
works, yes, but its a shit way of doing it
oof, whats a better way lel
whats the discord.js-commando for v12?
try it and s e e e e e e e e e e e e e e e e
if(!/^#[0-9A-F]{6}$/i.test(args[1])) return;```
thanks
@cunning gorge https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
read this later
Thanks!
@low phoenix its not officially released yet afaik, you have to install from github
:look_away_drake: learning through yt
:happ_drake: learning through the docs
thats the "i dont know what im doing and i dont wanna go thru the effort of learning" way of doing things
both are just copy-pasting
thats not work
you have to uninstall the v11 one first
more not happends
you have to uninstall the v11 one first
yeah
you have to wait, sometimes npm is slow, especially on windows it can be slow as fuck
@quartz kindle yo tim, how'd you get certified dev role?
i dont think they give em out anymore
Make a bot, Get it certified
i was lucky
hmmm interesting
They stopped that right?
i got a bot, no certified role lul
i think so
ye
!givecert @opal plank
i heard people are waiting for an answer for over 6 months
before only offline way was there
i tried
hmmm interesting, what was it about before when it was opened?
im guessing same as bot developer but they went throughly into your code?
not at all
they dont go through your code
just for unique good and nicely presented bots afaik
not even Discord goes thru the code when verifying
they test stability, uptime and uniqueness
would love the colorful role
Mine would too the one i just put in for approval
afaik my bot is still unique across the entire discord lul
what does it do lmao?
i got one unique not only on discord, but on other platforms too
its integration type
its a fully featured astrology command line software lmao
Weird lmfao
tims the biggest nerd here in this server, woo confirmed
Also i was just testing around with my test bot
lmao
tim looks like some kind of Drake 'n Josh series actor
If i change the token to something random i do get the invalid token error
But right now its just nothing
are you sure?
what
Yes
drake n josh lmao
does it give some timeout error?
have been trying for letss see 15 mins now
nope
a token needs to be a token

