#development
1 messages ยท Page 518 of 1
10k
imo using lavalink is easier than using ffmpeg for music
^
and the queue system isnt that hard
i found lavalink harder
LL is less resource intensive than ffmpeg
I ported over my queue system from ytdl to LL
only issue i had with LL was multiple end events firing at once
other than that a lot easier
I fixed my mem leak finally
what os works best with ffmpeg?
it doesnt really matter
afaik
aslong as its a stable os it should handle it
and ubuntu is pretty stable so
yah just do not know why its not working i tried reinstalling it 3 times to see if it was the os
read the error ๐
also when you said it should be in /usr/local/share its not in there so thats might be outdated
where you got that info from might be outdated*
ffmpeg forms
yea i know
:c
how long ago was the post
@topaz fjord https://javascript.is-bad.com/ef001d.png

not just you
So update: 8k now, and still posting shards. I've changed it so it posts the amount of guilds each shard has
IT's supposed to be displaying 3k, instead it's 8k
lmao wtf
lol
await ctx.send(`Aww.. **${user1.username}** and **${user2.username}** are perfect together!!`, { buffer: c, name: 'ship.png' });
okay why does Eris throw this error
at actualCall (/home/tony/Bots/Kyri/node_modules/eris/lib/rest/RequestHandler.js:120:35)
at SequentialBucket.check (/home/tony/Bots/Kyri/node_modules/eris/lib/util/SequentialBucket.js:69:28)
at SequentialBucket.queue (/home/tony/Bots/Kyri/node_modules/eris/lib/util/SequentialBucket.js:36:14)
at Promise (/home/tony/Bots/Kyri/node_modules/eris/lib/rest/RequestHandler.js:333:40)
at new Promise (<anonymous>)
at RequestHandler.request (/home/tony/Bots/Kyri/node_modules/eris/lib/rest/RequestHandler.js:71:16)
at Kyri.createMessage (/home/tony/Bots/Kyri/node_modules/eris/lib/Client.js:1016:36)
at TextChannel.createMessage (/home/tony/Bots/Kyri/node_modules/eris/lib/structures/TextChannel.js:156:72)
at ShipCommand.run (/home/tony/Bots/Kyri/dir/commands/Fun/ship.js:50:19)
at process._tickCallback (internal/process/next_tick.js:68:7)```
i'm sure i haven't done anything wrong lol
wots c
so i am trying to use this bit of code
let rowe;
pool.query(`SELECT * FROM profiles WHERE userID = "${msg.author.id}"`, (err, row) => {
if(err) throw err;
rowe = row[0]
return;
})
``` but i always get `TypeError: Cannot read property '0' of undefined` anyone know why
pool is mysql.createPool()
row is undefined
log row u duck
ur the duck
its undefined
also im getting Error: connect ECONNREFUSED 127.0.0.1:3306
its been a while ok
how can I see if a member has a specific permission just from a permissions int? [nodejs]
you don't necessarily have to do that with permissions int, you can just check if the user has a specific permission or not
nonono
I'm making a dashboard and I don't want to get things from the main process when I don't need to
convert it to binary
example:
create invite + administrator = 9
(9).toString(2) = 1001
1 create invite = true
0 kick members = false
0 ban members = false
1 adminstrator = true
if(permissionsInt & permissionIntInQuestion)
let perms = permissionInt.toString(2);
if(perms[indexofpermissioninquestion])```
How would one do multiple commands under one client.on
if statements
like how where do i put it?
in your message event
ok
else if, if or switch
o
Client.on("message", async message => {
if(!message.content.startsWith(prefix)) return
if (message.channel.type === "dm") return;
if(message.content.startsWith(prefix + "pings")){
let role = message.guild.roles.find("name", "Important stuff ping");
if (message.member.roles.some(r => ["Important stuff ping"].includes(r.name))) {
let member = message.member;
member.removeRole(role).catch(console.error);
message.channel.send("Removed ping role")
} else {
let member = message.member;
member.addRole(role).catch(console.error);
message.channel.send("Gave ping role")
}
} else {
if(message.content.startsWith(prefix + "ping")){
message.channel.send(`Pong!(${Client.ping}ms)`);
}
}
});```
like that?
Client.on("message", async message => {
if(!message.content.startsWith(prefix)) return
if (message.channel.type === "dm") return;
if(message.content.startsWith(prefix + "pings")){
let role = message.guild.roles.find("name", "Important stuff ping");
if (message.member.roles.some(r => ["Important stuff ping"].includes(r.name))) {
let member = message.member;
member.removeRole(role).catch(console.error);
message.channel.send("Removed ping role")
} else {
let member = message.member;
member.addRole(role).catch(console.error);
message.channel.send("Gave ping role")
}
}
if(message.content.startsWith(prefix + "ping")){
message.channel.send(`Pong!(${Client.ping}ms)`);
}
});
o
you can do if statements after each other
ok
as long as the previous if statement is closed
ok
you shouldnt do this btw
why?
no one wants 76 commands in 1 file
ok
or a framework but only use the command handler feature from it 
tbh
just store commands in a map
?
store ur commands in this 
or a discord.js collection
a collection is just an extended map
ok
> no one wants 76 commands in 1 file
I actually do a different style of separating commands definition, I split them into Command and Command Function.
Command class only contains the command name, description, conditional parameters and a command function object that has execute method.
Command Function contains the discord/bot function.
an example:
export const help = new BotCommand(
"help",
"Show all my command list.",
false,
false,
Response.ChannelReply,
10,
helpFunction
);
yeah
what
hm
do you have eslint?
uh nope
when I try to run a file with node that has that it dont work
ts is literally just compiled js
havent had time to setup yet
but im moving from js anyways
we know @knotty steeple
I know it samurai
so stop using it
and the correct term is Superset .
ts is shit
then why did google choose it for their angular framework?
that's why start using typescript now.
in javascript it is very hard to work with types
like everything is typed as any, wtf?
i actually havent installed typescript yet
let me do that now
while i think about it
I like typed based assignment
^
in js you are not sure if this property exists in this object, because it is any
@knotty steeple lol. Typescript not not "compiled javascript"
typescript is transpiled into js
javascript is interpreted at all levels
client and server
Turtle is correct.
And es6 modules are experimental in Node.js
You can enable them if you want to on node 10.11
I just said its not
wdym
javascript isn't compiled
Well you're wrong
samurai r u big dumb
listen to ur logic
typescript = compiled js
when
typescripts compiles to js

how to tell when someone is joking
You can't because its a text channel
@neat grove
i did use an mmlol
node filename.js --experimental-modules```
Though at this point, I don't really see a point for this ^
I wonder why people loves any type.
Javascript is just a dynamic language. we live for the any type
that's the reason why I use typescript.
nice
Staring with the commands, then the api, then the website
angular? no...
texl uses vue i think
I'm leaving js
am moving my bot to golang
Leaving JS on the client isn't an option
leaving js is good, no matter where you will go next
and them im gonna use react for my website
Golang doesn't run in chrome ๐
my bot will be in golang
my website will be made with react
Next.js? hopefully
probs
Discord surprisingly is client side rendered
react is faster than angular but I still love angular.
I guess for a big company like them, it doesn't make a difference
@rapid citrus Yes because react is simply a library. angular is a full on framework
sharder.broadcastEval(`(() => {
const client = require('./../index.js');
const Discord = require('discord.js');
const user = this.users.get('${userId}');
if (user) {
const embed = new Discord.MessageEmbed()
.setTimestamp(new Date().getTime())
.setAuthor("Shiro", client.user.displayAvatarURL())
.setDescription("Thanks for voting")
.setColor("#16a085")
.setFooter(user.tag)
user.send(embed)
}
})()`);
});
yes

lol
That's why
please use ts
ew
displayAvatarURL isnt a method
its get
its a property
@topaz fjord it is in master
docs
Yes I am using Master
oh
Still doesn't change the fact that he is referring to an undefined
either way
and why are you requiring the client from a file anyways...
You have the client bound tothis
Also, a broadcasteval isn't needed here
You can using client.users.fetch
call send on the returned user
Ah alright
HEAllLPPPPPAPPAPAP
what
use the reddit api
yeah thats really complicated lol
with something like random puppy or whatever its called
ok
ew
why not make your own?
I only make my own solutions if I can't find a suiting lib for it.
if(!message.content.startsWith(prefix)) return
if(message.content.startsWith(prefix + "meme")){
if (message.channel.type === "dm") return;
message.channel.send.randomPuppy('memes')```
this doesnt work ๐ฆ
can some help me
message.channel.send.randomPuppy('memes')```
yeah, randomPuppy probably isn't a property of send
<Message>.channel.send(randomPuppy('memes'));```
In .js is there a way to set the embed to something after its been identified
idk
I need to do like ```js
randomPuppy('memes')
.then(url => {
const embed = new Discord.RichEmbed
message.channel.send(url);
})
}
});``` then set the title as the title of the reddit post
well for me im trying to do a rock paper scissors game but with an embed but the winner isnt declared untill after the embed is declared.
lol
oh, ok thanks
No problem
is it possible for it to only change one field instead of all, for instance I have 3 fields and i only want to change the last one.
Yeah
no, i put a const embed. and i want to change it before it sends
like im doing a rock paper scissors game and i want to update who won before the embed gets sent
just don't declare that field yet
ok
dbots.postStats(client.guilds.size)
setInterval(() => {
console.log('DBots guild count updated.');
}, 1800000);```
does this code send stats to dbots every x mins?
or do i need to shift the poststats inside setInterval?
That will only send once
should i shift the post statement inside?
i got this:
const DBL = require('dblapi.js')
const dbots = new DBL(process.env.DBL, {webhookServer: server }, client);
and server is the one in PINS
You don't even need to use post stats
It will auto post every 30 mins since you are including the client
Also the pins don't mention a webhook server, that's for if you already are using an Express or other node server and you want to use webhooks to handle votes
Well just delete the poststats code and the setinterval
oh ok
Can someone help me with this? The embed doesent want to send, but it logs "sent." in the console.
rows.forEach(function (row) {
const embed = new Discord.RichEmbed()
.setTitle(msg.author.username + "'s wallet")
.setAuthor(msg.author.tag, msg.author.avatar)
.setColor(7506394)
.setFooter(msg.author.tag, msg.author.avatar)
.setImage(msg.author.avatar)
.addField("Balance:", row.money, true)
.addField("Bank:", row.bank, true)
.addBlankField(true)
.addField("Daily", row.daily, true);
msg.channel.send({embed});
})
console.log('sent.')```
wtf is that indenting
i just copied it from my code
try logging the sent in then(()=>{}) method.
msg.channel.send(embed).then(()=>{
console.log('sent.');
});
or
thats not achieving anything, if the message isnt sending then the promise wont resolve
yeah
rows might be empty.
tho im evaling it and it wont send either
maybe its the api?
i removed it still doesnt work for me
also you might wanna use .avatarURL iirc
.avatar is the ID, not the full url
afaik
hm
@knotty steeple can you eval it?
^
guess it doesnt send if its an invalid url
but wouldn't it log an error?
it might have been rejecting the promise but it wasnt being caught
yeah, uncaught promise rejection must be on the console.
eh. thanks anyways
its fixed?
msg.author.avatarUrl
how about using this.
it doesn't have any errors?
nope
how about the row value? does it really have value? try logging it to console.
yeah I was gonna say that it could be empty
and maybe you are being rate limited because the send code is inside a foreach block.
does anyone have idea how to fix my console https://vgy.me/cpWk4r.png
how did this even happen
Ok dont answer me then
@hushed berry come here and answer Dream this minute
Actual disrespect
Does anyone one know of any good js packages for adding filters to images
imagemagick would be possible if you know how to work with it
and for basic image manipulation canvas ft. canvas-constructor
though js isn't really built for image manipulation stuff
no?
idk
an import?
import = require but fancier
either recode from py to js, or call the py program from your js
I didn't realize but i've sent stats to dbl with my dev bot. Do you think dbl staff will punish me for that ? ๐
No, i sent 2 instead of my bot server count xD
xD
I was like, Uh, how is this possible, why my bot is only on two servers. My heartrate goes very high at this moment x)
taste the fear
Wait. if i instantiate the DBL object, does my bot send automatically stats ? (Javascript)
i do
then you should know what to do, or are you having trouble with it?
For some reason I executed chmod 0775 -R * and after that everything messed up and now I can't access anything on server nor connect to it
I can login through VNC, Any suggestions on how to revert back the changes and fix the stuff?
reinstall the os? ๐คท
Do you even understand what you did?
@hushed berry your os* is bugged xd
oh sorry os
how do you avoid this https://skullbite.is-for.me/i/9v9w3w1b.png
how to show code pls th
anyone know why emojis won't work in embeds
they used to work
that happens now
are you using .toString?
hmm?
uh
what language is it
js
code?
are they animated
dont escape it
.toString()
if I don't escape it
then
send the full line here
kk
that line
.addField(`Emojis [${context.message.guild.emojis.size}]`, context.message.guild.emojis.map((emoji: Emoji) => `<\\:${emoji.name}\\:${emoji.id}>`).join(" ").substr(0, 1024))
it only happens with emojis same name as discord ones
it happens for all
for me
lol
I mean true but
what IF they have the same name
are you using discord.js?
yea
stable or master
1s
stable I believe
wait try this code
let me try updating
it should update automatically
still
maybe they don't work as field values?
ye
how would i remake .tag in eris
but js user = new (require("../src/index").FurryUser)(msg.author, bot) msg.author.createMessage(user.tag) this isnt good how do i add it to msg.author and other user stuff
xd
I've no close what you are asking.
You can't afaik if FurryUser extends user and in eris user has the tag property, possibly reassign it?
The reason your bot won't work is because furries are bad
what
lmao
you want tag, no?
do it yourself then lol
@knotty steeple assuming you want it to be custom just reassign it by i guess this.thing = thing
ok
you need a getter

yukine explained this to me lol
get tag() {
return `${this.username}#${this.discriminator}`
}
yeah
Object.defineProperty(User.prototype, 'tag', {
get() { return `${this.username}#${this.discriminator}` }
});
this is how i do mine
adds tags to all users
finna gonna do that
ok
np
Someone can send how i do is show me what my ping on discord !ping (python)
You can't show your discord ping but you can show your bot's ping
Ho ok you can send me how if you can?
how to make bot dm someone using their id?
@visual zenith lib?
get the user
lib?
yes
then send a message
discord.js
like
library
ok
discord.js
hold on
discord.js
you know how to get a user
whats the difference between discord.js and eris?
check pins
.get the user then https://discord.js.org/#/docs/main/stable/class/User?scrollTo=send
you dont
rip i gotta remake it then
discord.js and eris are two different libraries, like chrome and firefox
chose one
you dont need both
ig ima use discord.js becuz i already know how to use it
good
also, if you're sending their own user id, not someone else's user id, you dont need to .get it
just get it from the message object
๐ค
like
msg.author
lets say you want to send to the message author
msg.author then https://discord.js.org/#/docs/main/stable/class/User?scrollTo=send would be fine
how do i fix this happening
const user1 = client.u.parse(client, ctx.args[0]);
let user2 = ctx.args[1] ? client.u.parse(client, ctx.args[1]) : ctx.author;
if (!user1 || !user2) return ctx.send(locale.no_users_found);
if (user1 == user2 || user2 == user1) return ctx.send(locale.cant_ship_self);
const m = await ctx.send(locale.shipping.replace('{{user1}}', user1.username).replace('{{user2}}', user2.username));
its supposed to set user2 as the msg author
eris
ok
well ctx.author is undefined, is ctx your msg?
i worked it out, turns out i forgot ctx.author was an object with user/member
lol
i customly made ctx to benefit myself since eris is a pain
how do u do a cool down discord.js
ok
HEAlllp
this is killing me
(node:3458) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
at item.request.gen.end (/rbd/pnpm-volume/0bf93457-01e6-4b5a-ab05-cd0ed5739e31/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:79:15)
at then (/rbd/pnpm-volume/0bf93457-01e6-4b5a-ab05-cd0ed5739e31/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:215:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:3458) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
oops forgot the js thing
You're trying to send an empty message as it says
yeah but I only send ({embed})
if (command === 'botinfo'){
const embed = new Discord.RichEmbed()
.setAuthor("Bot created by: bobthemoose#2065")
.setTitle("Bot Information")
.setDescription('Bot created on `11/9/18`')
.addField(':ping_pong:Ping', `${Client.ping}`, true)
.addField(':shield:Guilds', `${Client.guilds.size}`, true)
.addBlankField(true)
.addField('Updates', 'This bot has recently been updated! Do `usagi updates` to check it out!')
message.channel.send({embed});
}```
thats my code
How do u vote lock a command
lol, what is vote lock? I have no idea on what it is.
you use the api to check if the person has voted
if they havent tell them they have to vote to use the command
I use a webhook and store the user in the db
^
if they are in the db, I update their doc
yes
mongo
self
oh I was about to type or self? , lol
wdym
like store info and stuff
you can either download mongodb and run it on your side or use a cloud stored on
you need to install the database as well
How?
Thanks
also, note that: mongodb is not the only option. @empty owl .
^
but I prefer it based on experience.
yep, but I hate queries, like : insert into shits, delete from shits where shitId=999
what about json
kek
mongodb > *
I use json for response and request but not as a storage.
me 2
no shit
we can see that
thanks captain obvious
lmao
@coral trellis weeb
it took you that long to type stupid 
Thanks
I think discord broke https://media.turtle-bot.com/f/9Udpc.png
Discord is always broken
Hey, could someone help me real quick? I just updated my bot's HTML section on its page and added buttons that manage simple collapsible fields, everything worked in the "preview" interface, but after I submitted my edits, the buttons' OnClick events no longer work, I'm not sure what to do, now.
onClick
I think javascript is only supported for Certified Bots.
step 1: think of a rpg theme
step 2: make a bunch of message events for each rpg command
step 3: beta test with 10 people
step 4: add bot to dbl
no but in al seriousness just get a theme
and code a bunch of commands related with the theme
what type of theme?
that depends on you
> beta test with 10 people
10 is not enough.
you're right
beta test with 11 people
tbh the only tutorial you'd need is how to make commands if you're beginning
otherwise tutorials do nothing
xD ok ig
hasVoted(user) {
let snekfetch = require("snekfetch");
let a = snekfetch()
.get(`https://discordbots.org/api/bots/${this.bot.user.id}/check`, {
userID: user,
})
.set("Authorization", this.getSecrets().dblToken);
return a;
},```
am i doing this right
use request or request promise.
or node-fetch, or superagent
ok
I haven't use node-fetch, I need to try it,
userId
its just ?userId=id
question. How come @earnest phoenix has the Muted role?
function stuff() {
promise1().then(() => promise2().then(() => console.log));
}
async function stuff() {
await promise1();
const q = await promise2();
console.log(q);
}
@crisp lodge here
@sinful lotus โค
Promise.all([array, of, promises]).then(allTheResults => {}).catch(anyError => {})
not related but useful
@visual zenith Your bot has an error. Maybe it responds to other bots. Go to #mod-logs and ctrl f ur bot username. You have to fix it then tell a mod that u fixed.
require("request").get("https://sheri.fun/api/v2/boop", {form: {"key": bot.config.sheriToken}}, (err, res) => {
if(err) {
msg.channel.send(`An error has occurred! Try again later, and report this error to ${bot.users.get("439373663905513473").tag}.`)
new (require("cat-loggr"))().error(err)
return;
}
msg.channel.createMessage({embed: {
color: 0x0,
description: bot.response("boop", msg.author.username, mention[0].username),
image: {
url: JSON.parse(res.body).url
}
}})
})
``` whenever i run this command there is no image..?
console.log res.body and see if it returns something
if it isnt then the request maybe failing
it says im unauthorized?
learn how classes work
I don't think my program works.. I did correct the first time.. But gives me this "error". 'types' can only be used in a .ts file.
are you in a .TS file
It's wrong code
and like the error says, you can do type based definition without being in a typescript file
I really don't know how classes works in js. tableflip
well if you show code we can help
just remove the type definitions
and that error has nothing to do with classes
you're trying to code typescript in a javascript file
`class Nutty {
var a;
constructor(test){
a = test;
}
}`
what's the error
Unexpected token. A constructor, method, accessor, or property was expected.
Stupid.. Language. AHHH ๐ก
isnt it just this.a = something
^
never forget this. 
also you don't need to define a outside of the constructor
just use this.a and it will define it for you
Ugh. this dot. Forgot that thing, still the same error though.
The error is on var a;
remove it

dont need to var a; outside the constructor
^
What is this fucked up language tableflip
this.a, this.b, etc all declare them for you
this.a will make a variable called a and bring it to this
Thanks for the help guys. ๐
it's not the language that's fucked, it's your understanding of it
True.. It's so dynamic. It's disgusting.
what language are you coming from
C#
And no, i don't want to pay for a cloud computing service.
wut
There's free services like heroku for js.
no
While there's only cloud cumputing for C# bots to be 24/7 available.
Free hosting !== good hosting
there's google's gce
C# cannot be run on a "cloud", it has to be run on a machine running on a cloud.
Google gce is nice I just haven't claimed mine
I could claim azure for 12 months free

i've been on gce for like 10 months now. its a full vps with ssh, root, etc..
havent paid a cent yet
Does ports open automatically?
no
Or are they locked at all times
I'm scared on going on gce bc of how discord kills it
well wouldn't it be gcp?
I've heard digitalocean's good.
Galaxy Gate is good ๐ I think their cheapest plan is $3 dollars
Gadget says people complain about the price bc they don't know how expensive unlimited bandwidth is
discord.js by itself costs 8gb/month in data
google doesnt offer unlimited bandwidth
Does Amazon AWS offer unlimited bandwidth?
turns out i was using the wrong header
even though when you get a key it says use the key header 

Why not Google if aws has unlimited bandwidth
Because they're google, AKA greedy bastards.
what
also unlimited bandwidth is expensive
$3 a month for GG 
AWS Free Tier includes 750 hours of Linux and Windows t2.micro instances each month for one year. To stay within the Free Tier, use only EC2 Micro instances. 
wait, Netflix is a customer? 
aws isn't very cheap tho
Yeah, i.. think it is pay for what you use
everything in google is pay for what you use
I mean AWS
which lib?
whats lib?
library
thats a language
discord.js eris discord.io
deprecated af
:sad:
?
what language? what library?
and it's not just a "command" you need.
You need a sophisticated set of functions to stream music from a music source, whether that be youtube, spotify, etc
i was wondering if there is a timeout for commando commands like afteer say 10 seconds its execution will stop
there's no good way of implementing that type of thing
depending on lang/runtime it's either impossible or too dangerous
it has to be function/command-specific and implemented at that level

Lol xD
@steady egret @sharp stag #development is not for relationship developments, please use another server or keep this in your DM's
me too๐ค๐ค
why @coarse carbon in my server offline ?
If it's down in your server it's down for everyone
there's nothing you can do besides alert the dev
how are you creating your embed?
Probably because testvar is not a string
Write testvar.toString()
No
Message.author is an object containing many values
<@message.author.id> i assume thats what you want
Wait no
Im dumb
Hold up
<@${message.author.id}>
Argh
Hust put the entire thing in a `
So surround it with ``` characters
Argh
Just one
you have to replace the quotes with the backticks
A variable youre using is not defined
I am assuming this means i have a very slow connection,right?
what does
the error.
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
(node:6832) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function without a catch
block, or by rejecting a promise which was not handled with .catch(). (rejection
id: 2)
(node:6832) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.```
now i got this,and there is no blanke in my code unless you are reffering to something else
you didnt specify what error how am i supposed to know
that means its working
do what the error tells you, add the .catch() to the line its referring to
and no i dont think so
in the future, uncaught errors will terminate the program
"future"
that means you need to have code to handle errors
people say "the future is now" but unhandled promise rejections still dont terminate the program
excuse me but i do not plan to die anytime soon
you have been terminated
Ill look for help somewhere else...
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)```
i dunno
maybe line 111 of internal/stream_base_commons.js
im confused (โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป
maybe maybe its something on line 6?
with the underlining
ah nvm then
wait for someone smarter than me to respond
Nothing code related
i thought so
it says errconect at some point so i thought it might be just that.
If it keeps happening it might
client.once ?
But since it doesn't give any context
client.on
@latent willow same as client.on, but runs only once
oh wait
ahh gotya rave thanks didnt knew that
I`ll look into it
yes. cannot find a proper keyboard,i switch through them a lot
Oof
with the lang bar shortcut
Well mine has it on shift+#

and there is same one but international
but they both give # when shift + 3
Because that's what I learned in kindergarten (!)
We had a PC there; anyways this is off topic
My bad.
someone told you already
unless you have a different problem
is diferent
looks like a missing closing bracket
but why 172
wlellp
ima find that brack
what does the entire error say
dis
unexpected end of input means the code has a parenthesis or curly brace not closed
no
well compiler says that
look around your code and make sure you closed every curly brace or parenthesis
compiler says that since its the end of the code, that doesn't necessarily mean the error is right there
the error aparently is here
if(message.author.bot) return;
if(message.content.indexOf(config.prefix) !== 0) return;
const args = message.content.slice(config.prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();```
Nothing is wrong there.
Ah lol
@here some one can help me?
With?
ping
ok, so
@bot.command()
async def ping(ctx):
return await ctx.send(bot.latency)
i want to edit this message and it will writen like this Pong! 22ms
ok
with discord.py
@bot.command()
async def ping(ctx):
return await ctx.send("\`"+ bot.latency +"\`");```
Should work
bots can't send in this chat
lol
But it looks like the error is something to do with data types
@ here doesnt work





