#development
1 messages Β· Page 338 of 1
I don't need to mention them. I need their user
so I can get their usernames and tags
Then use a mehtod after it
ill try and bodge something for you
ok π
Lol hes so happy
"Finally, after a week, I can code my bot!"
again, I need to...
Promise.all(rows.map((item) => {
return bot.fetchUser(item.user_id).then((user) => {
embed.addField(`${item.rank}. ${user.username} (${user.tag})`, `Level: ${item.level} (${item.xp}/${item.xp_required} XP)`);
});
})).then(() => {
message.channel.send(embed);
});
eh
SELECT * FROM chat_leveling_system WHERE guild_id = ${message.guild.id} AND rank BETWEEN ${args[1] * 10 - 9} AND ${args[1] * 10} ORDER BY rank
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
if it doesn't work, don't blame me
I won't
I will always blame myself for not knowing how to fix my own shit in the first place
Lol most of the javascript im learning is stuff I self taught myself
Aka variables
Methods are chill though
this guy is killing me
XD
At least im not using commando for my bot anymore
That was what I call the "Dark Ages of my coding"
ur still using discord.js
Yes
is that bad?
π
kek i was memeing
i beg to differ
.
boiiiiiiiiiiiii
BOOOIIIII
@trim steppe I'm gonna save that piece of code somewhere in my computer and try it some other time since it's 3:31 AM right now. I've been bothered by this for too long... I need rest... thanks for the nicely done code specially made for me! ^_^
Can someone help me with
(node:12285) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: Util.escapeMarkdown is not a function
But before it said
try adding brackets
(node:12255) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 12): ReferenceError: Util is not defined
()
The utils in discord.js are available in the main class
I have no idea
Making a music bot. With the help of my friend.
I should first know this shit before trying to help
πͺ πΆ
idfkidontusediscordjs
awesome π
let molecule = 16;
let particle = 18;
let assay = 3;
// Add and assign to molecule below
molecule += 16;
// Multiply and assign to particle below
// Increment assay by 1
um
what
π
how to set role on channel for member?

smh
how would I send a message in all channels that the bot is in using discord.py?
I have an eval command
so I bet I would use it
@hushed oyster move to js then do .forEach()
Sup
n0
i cri
English please
Yeah english
English Please
@cosmic shoal We need ya
@gaunt dune Thanks to StackOverflow i managed to get message.edit working.
π
@lethal sun What did you do?
You cant run commands in this channel lol
oh.. yeah rip
hello
What's up?
show code
client.on("message", (message) => {
if (message.content === '---info') {
message.channel.send(`Starting info giving sequence, <@${message.author.id}>`);
message.channel.send('Your current ID is: ' + message.author.id);
message.channel.send('This servers ID is: ' + message.guild.id);
message.channel.send('This channels ID is: ' + message.channel.id);
message.channel.send('This channels name is: ' + message.channel.name);
message.channel.send('This servers name is: ' + message.guild.name);
message.channel.send('Your client is: ' + message.author.client);
message.channel.send('Your tag is: ' + message.author.tag);
message.channel.send('The default avatar is: ' + message.author.defaultAvatarURL);
message.channel.send('Your avatar is: ' + message.author.avatarURL);
message.channel.send(`<@${message.author.id}>, if you like me, my invite link is: https://discordapp.com/oauth2/authorize?client_id=359066598494961664&scope=bot&permissions=2080898303`);
console.log(`Command run: Info in ${message.guild.name} in ${message.channel.name} by ${message.author.username}`)
}
});
why are you sending so many messages
Its an info command
Wdym
message.channel.send("thing here\n a new line \n another new line");
you will get ratelimited that way
yes
it does
other
wise
your
bot
will
send
like
this
You
want
your
bot
to
Yep that was what it was doing
Okay
what about β 
ok hun
/n is showing up as part of the string value
ignore that
Okay that fixes the ratelimit
But the if statement isnt working still
It should be
Whats ur if statement
Hold on gotta revise my code
Gosh this takes so long
Done
client.on("message", (message) => {
if (message.content === '---info') {
message.channel.send(`Starting info giving sequence, <@${message.author.id}> \n Your current ID is: ${message.author.id} \n This servers ID is: ${message.guild.id} \n This channels ID is: ${message.channel.id} \n This channels name is: ${message.channel.name} \n This servers name is: ${message.guild.name} \n Your client is: ${message.author.client} \n Your tag is: ${message.author.tag} \n Your default avatar is: ${message.author.defaultAvatarUrl} \n Your avatar is: ${message.author.avatarUrl} \n <@${message.author.id}>, if you like me, my invite link is: https://discordapp.com/oauth2/authorize?client_id=359066598494961664&scope=bot&permissions=2080898303`);
console.log(`Command run: Info in ${message.guild.name} in ${message.channel.name} by ${message.author.username}`)
}
});
@thorny hinge

The if statement just doesnt activate
Yes
---info
Wait a minute
One of my earlier if statements might be affecting it
Oh shit yep
Brb
Nope
Still not working
Could it have something to do with it not being in the index file?
Uh
How exactly are you including info.js
you cant just put it in a folder without including it in any way
How would I include it then
require("./file.js")```in file.js
In your main file you will probably need to do something like
Lmao
π
I put require('./Commands/info.js') in my main file
Oh, interesting okay
ewww globals
That should work
prebuilt command frameworks always suck
True true lmao
Also the whole system started to crumble from errors after a while
Making it unusable
Hey guys
I need help again lmao
How would I reference a channel in a guild?
Not the one the message was sent in
Just in general
would I do client.guilds.channels.name?
Because I wanna do some sort of logging system
Anybody?
client.guilds.get("guild_id").channels.get("channel_id")
Doesnt seem right but ill try it
How long have you been coding javascript for?
wow
Eh
A bit
Kinda
All i've learned is if and else statements and the rest is self taught
And variables
welp
Agh how would I then send a message in that channel
Same code?
Also this code doesnt help me
Im talking about in general
Like all the servers
Not just specific ones
If you want to get into writing Discord Bots i recommend to watch Evie and Aerity.
I recommend you don't watch anything and learn the language first
^
i recommend actually reading documentation and googling :^)
that also
Thing is, I do
How do I send a image with Eris?
SendAttachment or a file option in SendMessage
Can you link me the document?
You have to read the file to a stream and pass it to that
bot.createMessage(msg.channel.id, {file: `./images/no.gif`});
Doing something wrong, but I don't know what it is.
You need to read the file outside createmessage into a data stream then send the stream to it
Wew
yeah
Sure @crystal void
Hello. I am looking for a couple people who are interested in working with me on a new site. You must have the following qualifications:
* Knowledge of Node.js, and properly use it
* Can fluently code in HTML, CSS, and JavaScript
* Knowledge of UI Kit v1, and properly use it
* Can properly make thing look "modern"
If you have all of those qualifications, then please Direct Message me.
?
@lethal sun and @quiet bobcat join Music #2
@crystal void please don't spam bots in testing channels, go to Shitpost
wb @lethal sun π
ty
It's stuck. Any help? trying to install ffmpeg-binaries for .js
It's a big download iirc
Yeah but it has been stuck for a while
Β―_(γ)_/Β―
It really should not get stuck unless its a connection issue lol
guess my internet sucks


pft, you're a shitpost
@earnest phoenix is this shit for your list? π
Just a general project
lol
you just said it
no
about my list
ik i troll
kek
@chilly fiber your function is missing message as an argument
it's missing a lot of things tbh
I have a question
If anybody is even online
Hi
Sup
I have a question
yes
How would I make my bot log the chat from one channel, and post it in another?
I know how to get the chat of a channel
I just dont know how to get it to post in another
what library?
d.js
bot.channels.get(channelID).send("...")
Oh thank you!
channelID is the of the channel you want to send that to
Understood
I can't type today
Idea
π€
yes
I could set the command to a variable
Then have the ID written in the variable
Then replace the channelid with the variable
If a variable is just static (not changing) then why have the variable at all?
Its not static
Ok then
So like
The command would be run in the channel
And it would get the channel ID
"If a variable is just static (not changing) then why have the variable at all" - Mayo, 2017
And then be able to send stuff there
Lol
unless you use the variable like 100 times and it uses the bot (getting channel or user)
Wait is channel ID already a variable?
channel.id
Oh nvm
Created a rough code
let channelID = ''
client.on("ready", function() {
if (message.content === '---logs' && message.channel.name === 'logs') {
channelID = message.channel.id
bot.channels.get(channelID).send("Testing")
}
});
message content in ready? 
y u spoonfeederino
Wait
Not ready function
My bad
I need to change that
let channelID = ''
client.on("message", (message) =>{
if (message.content === '---logs' && message.channel.name === 'logs') {
channelID = message.channel.id
bot.channels.get(channelID).send("Testing")
} else {
message.channel.send('You need to be in a log channel to do that!')
}
});
Would this suffice?
I can set a changing variable to each message.content
--- = prefix?
Yes
why not save it somewhere so you don't need to retype it
fair enough
π€
let channelID = ''
client.on("message", (message) =>{
let logs = message.content
if (message.content === '---logs' && message.channel.name === 'logs') {
channelID = message.channel.id
bot.channels.get(channelID).send(logs)
} else {
message.channel.send('You need to be in a log channel to do that!')
}
});
Would this work?
Ill try it
Nvm
Big faliure
O shit accidentally created a spam code

"spam code" wtf
It spammed stuff
In the channel you sent messages in
Which was not the intention
I mean if you look at your code
that's unsurprising
wherever possible a bot should fail silently
anyway, first check for the command trigger
and then check the channel
that way you only get feedback when trying to legitimately use the command
Aaaaa
client.on('message', message => {
if (message.content === '---logs' && message.channel.name === 'logs') {
message.channel.send('Logs enabled')
} else {
bot.channels.get('351130113120665601').send(message.content)
}
});
Im not sure how I would do-
Wait
let logs = '';
client.on('message', message => {
if (message.content === '---logs' && message.channel.name === 'logs') {
logs = message.channel.id
message.channel.send('Logs enabled')
} else {
bot.channels.get(logs).send(message.content)
}
});
So
What I have set up is
You need to enable the command first
So the varible gets set
Then
Once it detects a message sent
It should send it there
Nope
Just spams again

OH WAIT A MINUTE
The code that guy gave me was faulty
No this code is wrong
How would I get the messages from one channel
And post them in another
Uhhh anyone?
π
How to make so the bot send a message in two or more lines?
Example:
Hello
There.
\n
@thorny hinge wow ya slower than the Slow Loris
wow
gg
@pale light @thorny hinge thanks
Np
Lol
π€
Hey guys
How would I make my bot trigger a method every time a message is sent?
And how would I do that
Thats basically saying how to peel a potato is to peel a potato
Lmao
It is in a message event
let logs = '';
let text = '';
client.on('message', message => {
if (message.content === '---logs' && message.channel.name === 'logs') {
logs = message.channel.id
message.channel.send('Logs enabled')
} if (message.content && !message.channel.name === 'logs') {
text = message.content
bot.channels.get(logs).send(text)
}
});
Ah
Okay
let logs = '';
let text = '';
client.on('message', message => {
if (message.content === '---logs' && message.channel.name === 'logs') {
logs = message.channel.id
message.channel.send('Logs enabled')
}
});
client.on('message', message => {
if (!message.channel.name === 'logs') {
text = message.content
bot.channels.get(logs).send(text)
}
});
So if a message is sent
It sets the variable
Then posts it in the enabled channel
Im so confused
How tf would-
I need a way to make this persist accross restarts
@restive silo don't talk about my selfboat like that lmao
2 event listeners for same event lol
thats shit
i say it like it is
you should never do that
you can handle everything in 1 listener
I know...
just split in files and require stuff π
yes
does anyone have cyanide
more organized than having everything in one
mine's async
so are mine
guava EventBus + cached thread pool
wew
I'm gonna quickly integrate a chat filter into my main command executor event and make everything 1 file brb
if someone's mentioned?
Yes
<@!?id>
Like
the regex
natan no
If someone is mentioned
nononon
Run this code
piss off natan
Basically
at least it's not a cancer regex
ye you can check if the message contains a user mention
Im trying to create a ban command
client.on("message", (message) => {
if (message.content === `---ban <@${message.mentions.members.first().user.id}>`) {
if (message.guild) {
message.mentions.members.filter(member => member.id !== message.client.user.id).forEach(member => member.ban());
} else {
message.reply('You need to be in a guild to do that!');
}
console.log(`Command run: Ban in ${message.guild.name} in ${message.channel.name} by ${message.author.username}`)
}
});
This does not work
Okay
That doesnt help
why not just substring
anybody know how I change the guild count on my bot?
?
no
why do you need to change the guild count
how do I update it on the bot page
d.js
k thanks
pick the one that suits you and profit
ok
Which is what
?
that's an example
of args
args are pretty much the info the user passes in
e.g.
//ban @scenic crest REEEE
my mention would be argument 1
REE would be argument 2
show him with an eval command if you have one
um guys i've got a problem while installing a newer version of netcore on my vps
basically i uninstalled all the other versions
tried to install 2.0 everything is fine but dotnet --version still says 1.0.1 ;-;
what's the correct way to delete all other versions?
debian 8 jessie
@scenic crest How does that help
@earnest phoenix because argument 1 would JUST be the mention
what is there to show
I did
alright
My arg1 is <@${message.mentions.members.first().user.id}>
then you need to get the 1st argument (making sure it actually exists, a quick args length check should do it)
that's not an array of arguments though
Do I just put arg1?
OH WAIT
The arg1 will get the mention and store it
Am I correct?
var command = "---ban @ebon shadow reason"
var args = command.split(" ")
// MAKE SURE THERE IS AN ARGUMENT 1 BEFORE DOING THIS NEXT STATEMENT
var mention = args[1] // should be "@ebon shadow or @ebon shadow"
no
if (args[2] == "command")
what no
what
command = message.content
So
if (command === message.content)
thats what I do
no command won't be defined then
Omg what do I do then
do you just wanna ban every user that's mentioned?
well if it was all users that'd be easier
Make the command ban the person who is mentioned
no all mentioned users
just check if the message starts with ---ban
and if it does
iterate through all mentioned member and ban them one by one
iterate = loop through
?
make a for loop looping through every mentioned user (args.length -2 i think) then ban them
Omg what
var command = "---ban @ebon shadow reason"
var args = command.split(" ")
var mention = args[1]
client.on("message", (message) => {
if (message.content.startsWith('---ban')) {
if (message.guild) {
message.mentions.members.filter(member => member.id !== message.client.user.id).forEach(member => member.ban());
} else {
message.reply('You need to be in a guild to do that!');
}
console.log(`Command run: Ban in ${message.guild.name} in ${message.channel.name} by ${message.author.username}`)
}
});
This is my code
k
I have the ban code
is this javascript?
π€¦
well obviously
Yes, of course it is
-botinfo @zenith spire
MOOSE GO INTO TESTING
@rugged veldt https://i.imgur.com/fWtr4EV.png please fix this, until you do your bot will be muted
Okay wait
what
.ga file
I just told you an easy way
loop through all mentioned users
and ban them individually
Wait
I think this would work
var command = "---ban @ebon shadow reason";
var args = command.split(" ");
var mention = args[1];
client.on("message", (message) => {
if (message.content.startsWith('---ban')) {
if (message.guild) {
message.mentions.members.filter(member => member.id !== message.client.user.id).forEach(member => member.ban());
} else {
message.reply('You need to be in a guild to do that!');
}
console.log(`Command run: Ban in ${message.guild.name} in ${message.channel.name} by ${message.author.username}`)
}
});
But it requires a mention
for(i=0;i<args.length-2;i++) {
*ban command* args[i];
}
Β―_(γ)_/Β―
What
just make it say '<@!'+userID+'>'
clearly it isnt
But then
client.on("message", (message) => {
if (message.content.startsWith('---ban')) {
if (message.guild) {
message.mentions.members.filter(member => member.id !== message.client.user.id).forEach(member => member.ban());
} else {
message.reply('You need to be in a guild to do that!');
}
console.log(`Command run: Ban in ${message.guild.name} in ${message.channel.name} by ${message.author.username}`)
}
});```
this should work
any exact error you're getting?
No
It just doesnt run
Ill try thT THO
*That tho
Because its my current code
Nope
Not working
It doesnt even log the command being used
yeh in js it should
Im doing ---ban then a mention
Then nothing happens
we need to invent new characters for prefixs lmao
remove the filter
if we're at the point where three of a char is needed
I am having some issue with my PC, so @gritty dirge might be down for some time :/
nope
awh ok
gradients would be cool
gradients mean more effort for discord
tru
they would be cool tho
yeah but what use would they be
embeds were suppoed to be made for websites
and unless those website support gradients it'd be tedious
oh ok
yeah
btw why is this erroring? (using discord.js stable)
there could be a meta property for a gradient tbh
but eh
@fathom kiln show code
okay
message.guild.createChannel(`ticket-${message.author.id}`, "text").then(c => {
let role = message.guild.roles.find("name", "Support Team");
let role2 = message.guild.roles.find("name", "@everyone");
c.overwritePermissions(role, {
SEND_MESSAGES: true,
READ_MESSAGES: true
});
c.overwritePermissions(role2, {
SEND_MESSAGES: false,
READ_MESSAGES: false
});
c.overwritePermissions(message.author, {
SEND_MESSAGES: true,
READ_MESSAGES: true
});
message.channel.send(`:white_check_mark: Your ticket has been created, #${c.name}.`);
const embed = new Discord.RichEmbed()
.setColor(0xCF40FA)
.addField(`Hey ${message.author.username}!`, `Please try explain why you opened this ticket with as much detail as possible. Our <@&373877951579684866> will be here soon to help.`)
.setTimestamp();
c.send({ embed: embed });
}).catch(console.error);
its erroring right at the bottom with c.send embed
i think
woo
@humble dagger
Hmmmm
it hasnt been approved yet
K
but sure, i can pm you it
yep, i can pm you that too if you want
K do that
okay
how do you set a channels topic (discord.js stable)?
ooph
elo
how do i get the API ping in discord.py
Latency i meant
How would i make a command to update things like discord.js in javascript? anyone know
I quit JS
riiip
I quit after I saw Khan Academy
Well shite since i wanna make a command to do that
would rewrite fuck up this code? https://github.com/Mdstumpfy123/botbreh-python @earnest phoenix
I only JS when truly needed
async2rewrite
async2rewrite - Automagically converts discord.py async-branch code to rewrite-branch code.
What's the diff tbh?
?
read.
ok?
ima look at this shit on github
so it is the same I just install fuckin a better version
Gonna leave this here:
Heads up for anyone here, user 188699371532058625 was setting up 50 userbots to farm currency on my bot.
Thing being, nobody is really safe from that, and it that statement looks meaningless, please look at what it could do to your load https://cdn.discordapp.com/attachments/301126889873866752/376597443015344128/unknown.png
And tbh, nobody is really safe:
- https://cdn.discordapp.com/attachments/175599601942921216/376602169585172483/unknown.png
- https://im-ded-but.mantaro-is.life/44t8356-3936.png
- https://cdn.discordapp.com/attachments/376445878522871821/376446735754461185/Screenshot_20171104-230424.jpg
I'd like to put it as a warning that you all are better off blacklisting this guy from your bots, as it's done plenty damage and doesn't want to stop.
Already reported to abuse@discordapp.com, but better to heads up.
Hmm... I have restored my PC so @gritty dirge should be up soon.... Hopefully... Btw... Don't ever forget to save important files of yours on a drive, another hard drive or anywhere... Luckily, I've saved @gritty dirge's files on my laptop too, but it's updating :/ And that's why it may take a while to get @gritty dirge back! I hope everyone, including me, will learn something from this what happened to me... Good luck in life! Cya!
Heyo
gg @crystal void
ikr
yeh
@cosmic plover What did he even gain
Guys! @gritty dirge is finally up, but it's curently running on my laptop which has only a celeron proccesor in it :/ Expect some lag and slow responding until I fix my start button on my PC... Have a nice day! (if you play music with it... it may completely crash or just be laggin' like crazy :/)
no one gives a fuck I mean what
August is a prankster
ikr
y can't bots write files to github?
Heii gang! @gritty dirge is finally hosted on my computer again so there shouldn't be any issues π If you somehow expirience one, send us an email to support@dbot.chawithus.me
lolwut
why are you sending messages like that about your bot here ...
who?
GoN! Plays
k
also do you maybe know how to make the bot write files to a github folder? i have custom commands and a few fs crap
π€·
maybe @earnest phoenix
?
Ok;
this is how i had mine
if(command === `${prefix}eval`) {
if (message.author.id !== "303184720802611200") return message.channel.send("Only the bot owner can use this command")
const that = message.content.split(" ").slice(1);
try {
const code = args.join(" ");
let evaled = eval(code);
if (typeof evaled !== "string")
evaled = require("util").inspect(evaled);
const ss = new Discord.RichEmbed()
.setDescription("**EVAL**")
.setColor('GREEN')
.addField("INPUT", "```" +code + "```")
.addField("OUTPUT", "```" + (evaled) + "```")
return message.channel.send(ss)
} catch (e) {
console.log(e.stack);
const err = new Discord.RichEmbed()
.setDescription("**ERROR**")
.setColor('RED')
.addField("Error:", e)
return message.channel.send(err)
}
}
thanks !
thats only for js
That is really shit codeβ’
spoonfeeding at its finest worst
@cosmic plover how did you catch him?
bot.on(guildDelete, guild => {
^
TypeError: Cannot read property 'on' of undefined``` What's undefined???
bot is undefined
No?
@slow swan an user reported him to us
Reported who?
not you
Ok
Discord.js:
if (message.author.id !== "IdOwner") return message.channel.send("**Sorry daddy-o but this command can only be used by the ultimate creator!**");
When using that it wont let me use the command
what the fuck is that message
idk
also an id is an unsigned long
why are you equating that to a string
of course that won't work
in discord.js its a string
in all js libs it's a string because 53bit precision
i know
if (message.author.id !== "IdOwner")
"IdOwner" is not an id?
I've never touched js
but that would be my suspicion
const botSettings = require("../config.json");
const IdOwner = botSettings.IdOwner;

then why are you putting that const in ""
How do you check for a specific permission when Eris gives Permission { allow: 2146958591 } ?
(permissions & permission_you_want) == permission_you_want
bitwise op
idk if there's a built in method for that
How?
What was fetchUser replaced by in Eris?
and
message.channel.permissionsOf(message.author.id).has("banMembers")
with?
message.channel.send(":rage:").then((message)=>{
message.edit(":angry:")
message.edit(":frowning:")
message.edit(":neutral_face:")
message.edit(":smiley:")});```
Im trying to make timouts inbetween them
so first π‘ then like a second after π and so on
But I cant figure it out
use setTimeout
how long?
1000 ms
ok
or 1 sec
Me too
BOI
?
@quiet bobcat js message.channel.send(":rage:").then((msg)=>{ msg.edit(":angry:").then(msg => { setTimeout(function() { msg.edit(":frowning:").then(msg => { msg.edit(":neutral_face:").then(msg => { setTimeout(function() { msg.edit(":smiley:") }, 1000); }) }) }, 1000); }) });
wait
I missed a setTimeout
You cant stack .then 
msg.edit(":angry:").then(msg => {
setTimeout(function () {
msg.edit(":frowning:").then(msg => {
setTimeout(function () {
msg.edit(":neutral_face:").then(msg => {
setTimeout(function () {
msg.edit(":smiley:")
}, 1000);
})
}, 1000);
})
}, 1000);
})
});```
Uh
Yea you can
lmao
got a report, could confirm it with what I had on @slow swan
It works
π
Thanks @delicate zephyr
https://anidiotsguide.gitbooks.io/discord-js-bot-guide/examples/making-an-eval-command.html is this for old discord.js?
nvm its not Last Updated: 26/08/2017
On Version: 12.3.5
hm
does css work on dbl description?
How do you get the bot to join the same channel as you in voice | Eris
thats d.js tho
not Eris
@delicate zephyr check their github exampels

@delicate zephyr https://github.com/abalabahaha/eris/blob/master/examples/playFile.js

simple, no?
same for all the other noobs in here *cough *cough deni
Anyone have an idea how to make a timer that resets a value after 24 hours from when the executed the command
what language?
try reading docs....
My eval command isnt working 
lang?
eval(args.join(' '))
Where?
π€¦
π¦
if(!message.author.id !== "297433416998191127") return; //LOCK IT TO ME ONLY! DO NOT REMOVE
try {
var code = args.join(" ");
var evaled = eval(code);
if (typeof evaled !== "string")
evaled = require("util").inspect(evaled);
message.channel.sendCode("xl", clean(evaled));
} catch(err) {
message.channel.sendMessage(`\` ERROR\` \`\`\`xl\n${clean(err)}\n\`\`\``)
}``` Thats my code so far
if (typeof(text) === "string")
return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));
else
return text;
}``` thats the function of clean
What's wrong with that?
u should try guess it yourself lol




