#development
1 messages · Page 816 of 1
You need to append the 0s
yea
is it #00F1FF or #F1FF00?
1st 1
@lyric mountain There is no server like this in Russian
@unique nimbus I like pancake better
yes
What's happening here
What's happening here
@slender thistle jsut as usual, no russian
хах
sorry for the pun
how would i get the the highest role colour of a member?
найс @lyric mountain
@plucky jewel have you figured it out?
You can do this: "000000".slice(hex.length) + hex
Now my bot is counting the hours as seconds 
yea
@lyric mountain ВоТаФа?
Now my bot is counting the
hoursasseconds:partyblob:
@earnest phoenix seconds / 60 / 60
/60 /60?
1 hour = 60 minutes
someones having fun with the quote feature
it just feels a bit better to me when using 60 / 60
like, it's a bit better visually
w
@plucky jewel Извините, вы выяснили свою проблему?
Возможно, это проблема с настройками Heroku
Кто его знает @lyric mountain
Он говорит что язык программирования который я выбрал не соответствует моему коду
Какой язык вы используете?
Питон
ah
Вы должны выбрать тот язык, который вы используете
В этом случае выберите только Python
Я так и сделал @lyric mountain
Все еще получаете неправильную языковую ошибку?
Да. @lyric mountain
Не могли бы вы показать нам ошибку вывода?
Завтра покажу. Сегодня уже не могу @lyric mountain
ok
uh oh
Using nodejs and mongodb, how would I horizontally scale my app? Would I have to look into Redis for stateful processes? Just kind of confused on how I would run the server because right now when I use pm2 it runs my server 4 times and runs all commands 4 times xD
Would appreciate any help at all ❤️
@lyric mountain @plucky jewel Use #memes-and-media for other languages please
Horizontally scaling bots is a bit of a doozy
Its generally accomplished through sharding
@flat pelican it was questions regarding programming, I thought it belonged here, my bad
Need a help! discord.js
To get a user avatar is this member.user.avatarURL. But how to even get it when the user has a default avatar as I get it as blank
in Discord.js version 11
user.displayAvatarURL
so ...
member.user.displayAvatarURL```
Yes
member.user 
Thank you! - I will test it out
I've been working with some Discord Oauth2... I found out how to manually do it with https://reqbin.com/ but I can't find a way to do the body forms in js..
Send HTTP requests to the server and check server responses.
Is it possible to send it raw like this:
POST /api/oauth2/token HTTP/1.1
Host: discordapp.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 203
client_id=(id)&client_secret=(token)&grant_type=authorization_code&code=(code)&redirect_uri=(link)&scope=identify
This module is 'request https://github.com/mikeal/request
I think i'm following every step but i'm missing an argument..
var request = require('request');
request.post({
url: 'http://loc...
you need an active webserver
reqbin won't work because you have to securely store your client secret and access tokens
@earnest phoenix ikr but im saying i found out how to do it the raw way with resbin
Dont use request as its deprecated
still works
I always used XMLHttpRequest in JS
Dunno what this request lib is lol
xmlhttp is not available in node
I actually did it.
let userinfoarray = JSON.parse(userinfo) what is wrong with this..
undefined:1
undefined
^
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Request._callback (/app/server.js:29:36)
at self.callback (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/request.js:185:22)
at Request.emit (events.js:196:13)
at Auth.onRequest (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/lib/auth.js:132:18)
at Request.auth (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/request.js:1341:14)
at Request.init (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/request.js:378:10)
at new Request (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/request.js:127:8)
at request (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/index.js:53:10)
at Function.get (/rbd/pnpm-volume/9b4f293b-0301-4ace-8e5e-d1f7cb590ac0/node_modules/.registry.npmjs.org/request/2.88.2/node_modules/request/index.js:61:12)
oh wait i might know
nvm
works again weird
If you get a invalid / different response to a normal JSON response it won't like it
I'll try interact with a non JSON type and crash
it just fixed by itself..
Because your response wasn't undefined
it didn't lol
It just means your code does not account for possible errors or unexpected data
ikr
right, I'm using discord.py and using the on_reaction_add event to check for reactions added, since wait_for didn't work. How do I figure out the user who called that said command?
By any chance when you used wait_for did you give it on_reaction_add not reaction_add
Or
Did you not have a check that stops it from firing on the very first reaction and then finishing
Hey I'm trying to connect to my website data base but I keep getting a connection error with the FireZilla software;-;
Describe the issue in more detail
Where is your website hosted, what database does it use, whether it requires ssh keys
let title = message
let description = message
These two are erroring on this line when I try to call:
if(title && description){
Any idea why?
I used const, var, and let
What is the error?
(node:16) UnhandledPromiseRejectionWarning: ReferenceError: title is not defined
at Object.execute (/home/container/commands/Support/remoteticket:30:5)
at Client.<anonymous> (/home/container/index.js:59:13)
at Client.emit (events.js:210:5)
There is more but I don't want to flood the chat and it isn't very useful
I’m not sure
Oke
@earnest phoenix it fucking says right there
are you trying to reference title before it being declared?
like any line above
Anyone know how to reference the array name with a forEach() command?
For example, if my array is
array = { '10000' => { uno: 'one',
dos: 'two'} }```
And I want to reference it in the `forEach()` like
```js
array.forEach(a => {
let d = a
console.log(d)
})```
Right now it prints the *entire* array, I would like to just print out the top level, '10000.'
Any pointers in the right direction would be very helpful.
that's not an array
that's an object
it's still iterable
tho
I think Object.entries turns it into an array of objects with each entry as an obj
but I'm not sure
@dense drift
And why is there an arrow function, that's literally useless for what you're doing
and this is an array ```js
let arr = [1, 2, 3, 4, 5, 6];
How would I put a limit on how often one could use a command in JS
Like, say I want this to only triggerable once every 5 minutes
Okay, it's technically a database that I'm using.
array = { '10000' => { uno: 'one',
dos: 'two'}
'20000' => { cat: 'yes',
dog: 'no' } }```
That's a better explanation
Ikit, I'd use a database.
like discord.js?
Whatever you'd like to use.
kk
There are many databases to chose from.
Whatever is the easiest you could use.
When the command is run,
setTimeout(() => { client.cooldown.set(msg.author.id, 'no'), [TIME IN MS])
When the command is run again,
if(client.cooldown.get(msg.author.id) == 'no') return msg.channel.send(`You're on cooldown!`)```
thanks
yep
sorry for buggin
No worries
and id put this a line under the message.content?
The second line yeah, but you need to figure out what database you want to use.
i npm installed discord.js if thats what you mean
i see
i installed mysql
i can only assume i did it correctly since its not returning any errors
though i am getting an error with the above code
if(client.cooldown.get(msg.author.id) == 'no') return msg.channel.send(`You're on cooldown!`)```
where at the [500]) segment it says that it expects ; instead of )
Don't use the []
kk
Also, you need to create the database, and add to it.
I'm not sure how to interact with mysql, as I don't use it
understood
Help me
Any one know how to make shit command like dank memer
Like this
Please mention me if anyone knows
try
message.channel.send ('the image url')
}```
@earnest phoenix
@maiden kayak i want to know image url
message.channel.send('https://i.ya-webdesign.com/images/objection-transparent-pheonix-wright-3.png')```
is one I use
Dude
the image url
Wait let me check url
find the image on google, then right click it, then click copy image address
Then ?
if (message.content === 'Shit') {
message.channel.send('Paste it here')
I use discord bot designer
oh no
It is written in faq that i can use discord bot designer
@earnest phoenix
u wot
well as I said go ask in the support server of "discord bot designer" @earnest phoenix
*care
how what @maiden kayak
explain
explain it all
oh, another error has cropped up with my bot. I changed a code from one message to output to another yet my bot still reads the old one, as well as the new one
if (message.content === 'bee') {
message.channel.send ('hive')```
to
```if (message.content === 'hive') {
message.channel.send ('bee')```
makes the bot respond to both
so what did you want again?
id like it to stop responding to the previous imput
and only respond to the new one
So you want it to respond to you saying bee
its just a placeholder
This is the equivalent of "Have you tried turning it off and on again": Did you restart the instance of the bot
Help pls
I'm dumb
@earnest phoenix ill just restart it tomorrow, thanks though
see error
show what u typed in server...
What?
u need to add
invite code iirc
How do I do that
go to ur server create invite
copy code add it
Are you trying to add multiple servers to your "Powered by" field
I did
I'm confused
can someone help me in #topgg-api chat?
@earnest phoenix Yeah I was right
So
You put the ID of the server
If you wanna place multiple servers iirc at max 3, you separate them with ,
Okay
Ugh Discord skipped it. I meant a comma and a space
So ID, ID, ID
I believe that was it. It's been a while
No you place the server ID
Not an invite link
How do I get the od
Id
Do you have developer mode activated
On Discord
No
DM me
I turned it on rn
Ok now right click the server you want the ID
It will say "Copy ID"
]]
your bot added but waiting for approval once approved will be added
I dont even know why I'm here my friend invited me and said to complete that thing
I dont even got a PC
😂
No I didn't even code it
you just created a new bot application and added here?
@small prairie a spam bot, a server destroyer bot, a dm spam bot, a ip leaker bot etc
have you actually programmed it and run it?
@modest maple or use botghost bot maker xD
that bot is not gonna get approved
shhh
Botghost is prohibited
@tight plinth SHHHH!
No u
https://anidiots.guide/getting-started/getting-started-long-version @earnest phoenix
@tight plinth they say to join code academy
Wait let me show you
@earnest phoenix javascript and discord.js are 2 different issues
there are a ton of courses online to help you learn it
Can you guys help me ?
To learn discord.js
it's not a language
it's a lib
and docs exist
I have installed node.js what to do now
yikes
Please help me
@earnest phoenix lib means ?
library
Ok
@earnest phoenix you make your bot using discord.js
no
Then ?
discord.net / disqord / dsharpplus
@earnest phoenix you know about dicord.js ?
of course
Then can you help me to make bot using discord.js
no
😭
Any website ?
discord.js docs
@earnest phoenix can you help me a little bit ?
with what
I downloaded node.js and run cmd in the node.js folder and everything worked but the folder which is maked in gif is not showning
gif?
https://anidiots.guide/getting-started/getting-started-long-version there is gif in this website see
Wtf 100 (node:2965) UnhandledPromiseRejectionWarning: TypeError: Discord.RichEmbed is not a constructor
hi
hi
can I get red role
@pale vessel a better way. to look at it, no bullying and no ignoring
@earnest phoenix Discord.RichEmbed()
Mmmmmmm okay i try again
@earnest phoenix what discord.js version
12.0.0....
that would be MessageEmbed()
^
The version has a problem with embed
update to latest v12 btw
use MessageEmbed()
show code
^
yes
I have a new problem
do
const MessageEmbed = require("discord.js")
are you defined "discord.js"?
Yes
how
const MessageEmbed = require("discord.js")
@finite bough you forgot {}
?
const { MessageEmbed } = require("discord.js")
Why {} ?
@regal saddle it is temporary
What is the programm called you use for that?
@summer torrent why?
Program ? which program
{} are not needed for an individual const
for get MessageEmbed class from djs
another way is
const Discord = require("discord.js")
const embed = new Discord.MessageEmbed()```
Oh
I will recommend the 1st method
Why discord modified Discord.RichEmbed() ?
new api
¯_(ツ)_/¯
a lot of changes have taken place
Oh okay but he create a problem
?
its creates problems for example my friends believed that the embed walk more
??
welp
i'm just hiting 429 too many requsts
whenever i start bot
shards 11
starts shard 0 and dies ....
Can I do it?
db.get("channels").forEach
?
forEach is a Array function
depends on what db.get() returns
@torn nebula are you using the shard manager?
yes
Do you spawn shards manually or automatically?
set to auto
@earnest phoenix no wonder it didn't work, you need to use ${} for template literals
There is a bug going on with d.js where the login rate limitting isnt working
oh
but d.js atleast not saying that they having bug with d.js -_-
i asking from morning...
Well theres this https://github.com/discordjs/discord.js/issues/3890
anyway its fact that creates bugs i came back on version 11.0.0
Oh ok Thanks \🙂
from start i just used master version....
Does someone know How to get the amount of servers the bot joined
and users?
(Discord.js Node v12)
client.guilds.cache.size
OMG ty
node -v = v12.16.1
is it possible to make my bot go into a VC and play an local file audio?
in discordjs
Well yez
🤔
I tried doing it everything worked but the bot didnt play the audio but discord shows that he was speaking/playing the audio
music bots always give problems
Do you have the required packages for audio output?
Install @discordjs/opus, sodium and ffmpeg-static
@earnest phoenix what is the redactor for android?
Install sodium
Necesarry to play files
I only has ffmpeg and opus when I ran it on v11 is sodium new for v12?
@earnest phoenix say please
Most of the node modules don't work on v12
Because the code has very big differences
So if u are upgrading from 11 to 12 then u have to redo the code a little
Which is a pain if u have crap tone of code
Try with sodium, should work
Hmmm but it will get the ID of the person that issued the command right
wtf
He wants the server owner ID though
🤦♂️

I think it was for him
lol
@earnest phoenix
why tag your self 🤔
Don't try and get an attribute from an undefined variable
Alessandro show code
link doesnt work
can u copy paste the code?
nvm
got it
do u use a command handler?
do u have a code for reading and executing those commands
like
using fs module to read the js files
invalid invite
ur project is private
the command handler u use is very complex
try now @Alessandro⚡#7960
@earnest phoenix
@earnest phoenix what is the program?
@earnest phoenix
Can anyone help me setup sharding? My bot won’t come online now because of it 🤦🏻♂️
JavaScript btw ^
ok
Ok I got sharding up how do I make it show the complete total amount of servers/users since me botinfo commands wouldn’t really show it
@earnest phoenix have u copy pasted the code from a guide
https://discordjs.guide/sharding/ @earnest phoenix
Everything is in the official guide
No @earnest phoenix
He is sharding
@earnest phoenix have u made the code urself
@earnest phoenix can u show me the site
wrong
Wrong
Though so
Send it to a guild channel
are you trying to dm the owner or what
Yep
why?
Stupid idea
the owner would instantly remove the bot after seconds adding it
Hmmmm so send it to an channel
But if I do that will it send it to the system channel
something like guild.channels.cache.find(c => c.name == "general").send(message)
It's say msg is not defined though
my bad. guild
Ahhh but what if they have custom names
then it won't send the message
......
this is a bad idea anyway
How do I fix
probably better guild.channels.cache.first()
cause some server wont have general.
no
it could be the rules channel etc. bot wouldn't guaranteed to have the permission to send message
basically a lot of problems
guilds.channels.cache.filter(function)
thats better prob
and then just of that filtered array first one.
But not always.
Hmmmm
Some servers have disabled it
function can be c => c.permissionsLevel > 1 or smh i dont really know cause i didnt use discord.js for long time
It won't send the msg every time it restart right
no
K
it's when a bot was added to a server
Yea
I shall try
guilds.channels.cache.filter(embed) @pale vessel
Will this work
Ahhh OK
Hmmmm
like .find
well you need to find an appropriate channel first
i would suggest finding general if possible and if not, don't send the message
XD
you don't want your bot to send something on the wrong channel
owners wouldn't like that
What if I do guild.systemChannel.send(embed)
sure
K
errors are bound to happen though
Ehhhh as long as it works
rythm sends on systemChannel, and dank memer find chat/general, atleast i think so.
i would say send the message to general since it's the channel that's open for everyone in most cases
did or didn't?
Can you show me the code right now?
scuffed code probably
my EYES
try guild.channels.cache.find(c => c.name.includes("general")).send(embed) sry spoonfeed

Aeeee
did you even set up a system channel on that guild
it would be guild.channels.find(c => c.name.includes("general")).send(embed)
or easier guild.channels.find("name", "general")
Then do general.send(embed)
assuming general is the channel, yes
30 sec xD
XD
does it at least throw an error?
that would be helpful
Plus the ffmpeg missing error
let's ignore that
so what are the errors when trying to send the embed to a channel that has general in it?
oh
does the image load fine?
if you go to the url
i have the same problem on some sites
it just won't load the image
i'm not so sure myself. others can help
Try http
Hmmm, weird
I can see the image if I access the url
If it isn't showing on an embed then maybe it's an issue in the code itself
Check whether the id matches exactly your bot id
Maybe it's a dropped character issue
or just try to put the image shivaco linked and if it still doesn't show up, something is wrong
i haven't used the api. what's that parameter for?
The id should be your bot's id
Bypassing cache
Not a rng
oh, it's for bypassing cache
https://top.gg/api/widget/669569770059989024.png
Should be like this
200 OK
you might have to give it up for now
why did you send the code again
well until someone finds a solution, you should work on something else instead
maybe attach* the picture
embed.attachFile(infodbl)
and then embed.setImage("attachment://id.png")
By any chance when you used wait_for did you give it
on_reaction_addnotreaction_add
@modest maple I usedreaction_add, but I've overcome that issue by making it a standalone event.
someone know how to make the bot-icon jumping in css ?
oh okay
you could make it via css animations aswell
Where to use dank memer
Testing
wat
@cursive dagger yes i know but i'm not good at css :/
let me get a tutorial for you
https://codepen.io/MarioDesigns/pen/woJgeo it isnt a tutorial but its an example you can look at ig @earnest phoenix
okay thanks
ik how to do ...
The last bit where it goes back to its natural shape is a lil too rocky and sudden
gonna try to smooth it a bit, thanks for the heads up
also the sudden bump midway looks wierd
it's a bit more smooth tho, I'll try to capture a higher framerate gif
here it is, 60 fps
Is good idea to make bot's REST API with Java and bot itself with JS?
Rest api? Whats that gonna be used for?
This is not only REST... I'm making Pokemon bot and I want this interact with DB, do bigger calcs, generate images, eggsocket (WebSocket about eggs hatching) and maybe more uses. Just I have seen bots that do everything in bot itself, and this may break bot later.
tbf my entire bot works off a rest api
it could work, but depends on how frequently you're gonna use that api
depending on the size of the response it could make it become a bit slower too
Almost every command will do request...
i mean you can call it hundreds of times a seconds and not have issues if you do it well
^
would work although it will gain a few ms of ping
if you do it on local host or atleast the main interactions over LAN on a good network you can get the web latnecy down to around 5 - 6ms
Yes, but same time, I seen too much bots with 100000000000000ms in some hours
I'll use AWS Docker
that's probably spaghetti code
spring boot for java is quite solid as a rest api server
I plan use Spring Boot for API
Nice
one thing you do need to make sure you do tho is make the backend scaleable
ok
owo
just cache the import stuff 😛
so you dont have to make a request for every message
@modest maple what bot is yours

-bots
@digital ibex ^^
crunchy?
i do some dev work with other bots but Crunchy and Innkeeper are my mains
Crunchyroll Discord bot
Ok
i want my bot to play an audio my bot joins but doesn't play anything here's the code anyway
msg.member.voiceChannel.join()
.then(connection => {
if(msg.member.voiceChannel === undefined) return msg.channel.send("You are not in a voice channel.")
let dispatcher = connection.playFile("/audios/audio.mp3", {filter: 'audioonly'});
})
is there any fix?
Errors?
nop
oh
i have some missing stuff
i will install them
and see
i get a error everytime i try and install node-opus
gonna actually tell us your error? Or let us read you mind 
I can't install node.js
Google: How to install node.js
Xmmmm
I tried
and nothing happened to me, well, or I did something wrong and it’s possible that everything worked out for me, but I just don’t know about it
I idk
-bots
@earnest phoenix #commands or #265156322012561408 for bot commands
guys heroku in use db quick database settings saved programing example commands give to me
which language is this
its called this thing called american ive heard
They speak the language of gods.


I am currently working on a discord bot any good free bot hosting websites/applications?
Free hosting's not so good, but there are sites like glitch and heroku.
I heard glitch was pretty good
Uptime robot is super bad lmao
ill check them out tho thank you
heroku nice 
Digital Ocean even nicer
heroku + dbs 
Quick question will this work
defaultChannel.send("Welcome")
When the bot joins an server
No js
I am trying different one but I saw that online so I wanted to know if it would work
K thx
Yes Ik
Pff it dint work
Time to read the doc again
afaik defaultChannel was removed
Ahhh do u know what is the alternative to that
there is no alternative, as a default channel no longer exists, ie, people can delete their # general channel
what can be done is check permissions for all text channels and send the message to the first one where your bot has permissions to send
another way is using guild.systemChannel
which is the channel that people chose their discord welcome messages
but it might not be available, and your bot might not have permissions for it
i've made a bot, and I want it on top.gg right? So how long does it usually take for bots to get approved?
It has the welcome msg channel
@dusk pendant #502193464054644737
My bad
what do you need a default channel for?
thnx @earnest phoenix
@earnest phoenix for his bot welcome message, which is something i don't fully agree with
usually you don't want to do that automatically
instead let someone with admin perms set the welcome channel OR you create a welcome channel
the latter isn't really advised but it works
otherwise it gets vvv annoying for the end user
@earnest phoenix a good idea will be
if an admin executes the cmd set the default channel by finding welcome in the channel name
if an admin executes the cmd set the default channel by finding welcome in the channel name
do not do this
why not
no @empty owl
why
@empty owl that is fine
no one wants welcome in announcements
bro
Oh wait
people delete it anyway
Right
thats what every bot does
Hmmmm
Guys
well ones that have
too much work for a well mad ebot
it
i need help with my say cmd
why not
because it's unreliable, the end user doesn't have any input on which channel will get picked by your code
@solemn quartz what lib
its message.content
Bruh
@earnest phoenix c => channel.name.includes ('welcome')
no
but you would also need args
how does that matter shiemi
its only that it says ?say too
the bot doesn't understand context
do you even have args
and the bot loops and sends infinite messages
you can't know if the channel is actually a channel for welcome messages
do you even have args
@empty owl yes lol
well first
how
automatically triggered features should be opt-in not opt-out and that has been said by a discord staff member too. your end user should willingly be able to pick where and what
no
like
who tf said automatic
if an admin exectues ot
if yes dont do anythibng
picking the welcome channel without user input is an automatic feature
a trigger can be added
So how do i do that say cmd?
wat
i want it to say the message, but without ?say
wdym @solemn quartz
what??
you dont have args then
I made it in the past
@solemn quartz
the bot wont do anything
you dont have args then
@empty owl YES
no you dont
I DO
let args = message.content.substring(PREFIX.length).split(" ");
if an admin does [prefix]welcomeperm=true
@solemn quartz you didnt remove the command aswell
it will check for a channel with welcome word
wat
If that fails
@empty owl btw if i use args it will let me use only 1 arg
if that also fails the bot doesnt do anything
@solemn quartz what does args return
Lol
unless a channel has been set
the choosen content of the messgae
at the point where you're taking user input, just take a channel input instead lol?
wat
some people r lazy like me
and they set welcome = true
so theh want welcomes
channel can be changed if needed
messages can be deleted if needed
@solemn quartz ....
@solemn quartz 1. you dont have proper args: https://anidiots.guide/first-bot/command-with-arguments
2. please make your bot not respond to its own message: js if (message.author.bot) return;
3. for say command, do let foo = args.join(" ") since args is an array, then send foo
4. if you want to use any args, do let something = args[0], etc
if i do ?Say lol it says "Say lol"
do u do const args = message.content.slice(prefix.length).trim().split(/ +/g);
nope i did in a different way
let args = message.content.substring(PREFIX.length).split(" ");
and do
let foo = args.join(" ")
message.channel.send(foo)
lol
send code pls
ok do this
wat
let messageArray = message.content.split(" ")
well
you're missing a couple important closing lines for the code
wat
let args = messageArray.slice(1);
prolly a typo
oh
and yall know theres quotes in discord now
you dont have to take the trouble to do that haha
dc
@solemn quartz let messageArray = message.content.split(" ")
let args = messageArray.slice(1);
okay
Is this .js?
yes
yep
can i see ur code
all?
the say
okay
also what is your prefix
let content = args.slice(1).join(" ");
message.channel.send(content)
?
that might be a problem
my prefix is "?"
let content = args.slice(1).join(" ");
message.channel.send(content)
@solemn quartz
lemme see
lmao
sips cup of tea while waiting
@zenith terrace it works : D
but i need my args let
and not the one of @empty owl
??
idk what happened to your code tho
So its working yea?
works fine for me
and i understand why his or hers works too
but prolly not for anyone else
since their args would work
Yeet
Lol
lol
Guys can someone suggest me a "Fun" cmd pls?
imagine making your bot just as generic as 90% of other bots here lmaoo
I can't really understand errors, but:
(node:14) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'send' of undefined
at Object.execute (/home/container/commands/Support/remoteticket:24:93)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:14) 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: 1)
(node:14) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I think that means that the channel i'm sending to is undefined?
TypeError: Cannot read property 'send' of undefined
its not what youre sending
its what you're trying to call .send from
bad wording
whatever you're calling the send method on is undefined, ^


