#development
1 messages · Page 684 of 1
but its invalid form body
(node:20960) DeprecationWarning: Collection#filterArray: use Collection#filter instead
(node:20960) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
name: Could not interpret "{u'type': u'text', u'name': u'\U0001f30dglobal\U0001f4ac'}" as string.
at item.request.gen.end (C:\Users\\Desktop\\Discord Bots\ChatHop\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15)
at then (C:\Users\\Desktop\\Discord Bots\ChatHop\node_modules\snekfetch\src\index.js:215:21)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:20960) 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)```
sexy
thats after update
So what’s your new code
Send the actual code you have in there now
message.guild.createChannel('global', {type: 'text'})```
in docs says to do like dat
but same err
Try and do .create("global", "text")
hm ill update again
Ok
It worked?
yeah
👍
how do i put my bot in this server?
What does the other owners mean?
other developers of the bot
So the website owner of the bot is the one who registers it?
website meaning the one who asked for it to be added toDBL
since I am being hired to make a personalised discord bot for a server
I don't want to own it incase I get banned or deleted
I want to co-own it but still be able to add it to sites
if your account is deleted all of your applications will cease to exist soon after
unless the bot is a teams app
@earnest phoenix won't the team get terminated too if the owner of the team is deleted?
I need someone to make a fake Mod Bot
The goal of this Bot is to test out if a Mod will try and kick everyone out
So when they do the kick out command it seems like it works but really doesn't
Why would you even need that? if you have suspicions that someone will do that simply don't have them as mod.
I'll do it if you pay me
we don't make bots for free
and you are gonna need to host it

@uncut stirrup I banned the last mod that booted 95% of my members last qeek
mod's in my eyes should have confirmation with an admin before kicking someone so the admin actually does the kicking not the moderator.
I'm just putting out the idea for a Fake Mod Bot
the moderator just moderates and helps keeps the peace in the discord server.
If I where to pay for a bot I would have it do other stuff
Yeah but like @west spoke said you would need to host it and pay for it.
^
@uncut stirrup I'm just throwing out an idea
Also I came here just incase one of you knew of a bot that already does this
I know I fucked up how I worded it
I should have said anyone know of a bot
Technically any bot with moderation functionalities can do this. You just say the bot can kick and ban users but dont give the role the moderator has permission to execute those commands.
Very true
I'll just tell the new mod group they can kick people but only give them the ability to mute
*Problem Resolved if they Kick they had Ill intentions
yes, you need help?
For the bot page can we add custom meta tags?
Yes
Yes
it can alter the advertising
Hello everyone!
I am programming a command to give all the members of the server a role and I receive this error: "Error: Adding the role timed out.".
I'm using discord.js
@loud salmon
@twin kestrel not allowed. Please dont use that feature
Hmm
@barren crest no you cannot alter the advertising in any way
I thought you could
just search results

@twin kestrel hm that's normal, the ratelimits for adding role is 1/1s
why wont my bot commands work?
ima take it as a No 😄
One message removed from a suspended account.
One message removed from a suspended account.
Okay, I will cancel the command programming if they tell me it is an abuse of the API
@cosmic orchid what lang
uh nvm
be patient
So you can do a roleall command but you need to restrict the command, add 1 role per seconds basically a bot can add 5 role per second
k, what version
Technically the ratelimit for role assignments is 10/10s
ill check
async or current
yes so 1/1s
No
Not really the same but eh
you can do 10/s
3.6.5
ight I have no idea
v3.6.5
@slender thistle
What's the issue even
Discord unfuck yourself ty
Have you done it correctly?
the only command that worked isnt working
Send your code
One message removed from a suspended account.
@cosmic orchid show your code
^^^^^
Are you sure the bot is running
Just show your bot's code
Not recommended
eh
hm
he likely cant send it as plaintext
oh wait
as a message
You have all your code in your index? @cosmic orchid
Then hastebin.com
kilo please send bot code
are you using cogs
wdym by that?
just send it
we can't help you if you don't send your bot code
cogs and index?
just send your bot's code
just. Send. It.
reeeeee
you asked for help then didnt give us anything to help with
Kilo, how do you expect to get help when you don't help us help you?
^
ill rewrite it tho
^
How can I use JDA without using eclipse or another ide?
@warm marsh uh, what do you mean by that
I'm new to Java so I might be a little brain-dead with the technicalities. I mean, How can I setup JDA without using an IDE.
I'm just using nano.
ah
never used java without any buildscript / dependency manager so I'm no help 
any particular reason why you stick to nano?
VPS. I can't be bothered installing software just to edit a file.
uh, the way me and a few other friends (which I assume is the best way to do it, natan correct me if i'm wrong), just develop on our computers at home, build a .jar file which contains all dependencies, and upload that
and run it with a process manager using java -jar bot.jar and such
I've never heard of anyone putting their uncompiled source files in java on a vps
Ah main reason was because don't have anything installed on this PC. Just using SSH.
oof
yea if you dont want to use an ide to build a jar thats gonna be a bit difficult
Welp, What do you recommend as an ide?
how do i code a bot that automatically bans people?
like an anti-cheat bot?
like if i do
!setup
and then it can setup the anticheat
so it bans peoplew ho break the ruels
Code one?
U Take any language you like, and code it
@warm marsh I personally love using intellij. Its a bit on the bloaty side but the convenience is good
if you need help with specific problems, come back and ask
depends on what your definition of "break the rules" is
^
there are lots of tuitorials in #502193464054644737
i can't differentiate whether this is trolling or a genuine statement
@earnest phoenix either way he isnt getting his bot 
lol
write pure assembly
oh god
Does anyone know how I can use express to implement oauth2? I’m trying to find the right thing in the docs on how to do it but I’m just not finding it.
express is irrelevant to oauth as oauth can be implemented on any webserver
with a simple google, you could've found https://www.npmjs.com/package/client-oauth2
Okay I keep getting told different things :/
I’m trying to implement discord oauth2 and I was told I could use express to do so.
hello people, i have this tiny local script to check on which servers my bot is used and wonder if there is an easy way to change it so i can see how many members the servers each have
Didn’t know I had to use something separate
you don't
it's just a package that handles a lot of oauth flow for you as it's easy to mess up implementing oauth yourself and have huge security issues
Oh.
guild.memberCount @sleek mantle
Thanks! Spider.
oh, i tried it with an ? at the end it didn't work, could have find the solution myself 😅 but thanks wesley ❤
... what?
@earnest phoenix tbh I prefer passport since it has interchangable modules
not experienced in node
but from what i'm reading, passport seems very extensible
yeah it would probably be smarter to use it instead
Hm?
@earnest phoenix how would I get the access token url
I looked at the docs on discord oauth2 and I’m assuming https://discordapp.com/api/oauth2/token this is it but I don’t know.
uh what
Discord has a section for oauth2 urls and that was one of em
But it just said token url
Wait what
after the user has authorised your app they'll be redirected back to your redirect uri with a ?code= query string, and a state query string if you provided one in the authorization url (which you should!)
you can use that code to exchange for an access token which is the token you're going to use to make API requests
I can recommend Contabo, especially if you are German.
But see the pinned messages, there are plenty of provider (You should get a vps, they are great for most things)
no
for it?
How would I use the api?
Bit vague
Like what library are you using?
And I just realised that was 2 hours ago

@gray geyser you would get the time command was used, store it, then check the time each time the command is used, and check if the difference is greater than or equal to your set value.
eg let's say my work command had a 300 second timer.
I would use that
if you're on js use timeout
Having that many timeouts
Not the best idea
I have an object with the time they will be able use the command again mapped to their id
And if the current time is less than that time give them an error
I just do some math
- Store timestamp when cmd is used
- add the timestamp + your cooldown time in ms - today’s timestamp
- Check if the result of that math is less then or = to 0 if it is proceed with cmd and write the new timestamp else send error they have to wait the remaining time
That’s how I do it at least
that does also mean that youre storing an ever-increasing map
I just store as txt, and once the timer is done, it deletes the file.
And just store the timestamp in it
not worth adding and removing from a database
if i was doing it, id just use set the timestmap in redis with an auto expire or something :p
Is there any reason my bot is going offline when ever it handles an error?
What language
are you using libsodium or anything like that?
no
or wait, what do you mean with going offline if it handles an error?
yes
it just stops
goes offline for a few seconda
and pops back up like nothing happened
handle a error? Are you sure you are handling it? And what is the log output?
let me pull it up
ive also been getting a spike in error 500s
idk why thats happening either though
heres an error, its the error 500
``` dblapi const err = new Error(${res.statusCode} ${res.statusMessage});
handled yes mechanism
generic
Error: 500 Internal Server Error```
as the error says, it's a server side error
chill and wait, cry and pout, or have a temper tantrum while it sorts itself out
@hushed berry no the timestamp just changes but it stays as one thing
what? @lusty dew
I’m not deleting the timestamp or whatever it just changes from the old timestamp to the new one
yeah but you never remove it
Yea I don’t see a reason to?
so every time a new unique user uses the bot, you store a new timestamp
because its a memory leak? 🤔
How so?
it's just gonna go back in when they use it...
It just seems like one unneeded extra step but 🤷
I mean it just changes the timestamp to the new one in the better-sqlite3 database
I don’t see how that’s a memory leak
@earnest phoenix but im having the same issue with api errors
the entire bot shuts down
and comes back up
making it really unstable
from discord or from dbl
wot
Handle permissions then?
the error is handled
didn't you just say you have the same issue - 500 errors
console.log(err);
let errorembed = new discord.RichEmbed()
.setDescription("**Error**")
.setColor("#FF0000")
.addField("There was an error running the command. Most likely, the bot does not have the correct permissions to run this command.", "Please make sure the bot has the permissions listed when you invite the bot. To find these, go to our invite link, and edit the role titled 'ClockMaster' to contain these permissions.");
message.channel.send(errorembed)
}``` is my catch code
then I do a try {} catch
it needs embed links and send messages permission to properly execute
oh thats a good point
What’s the point of making your own catch function if there is already try and catch or .catch
after the catch it runs the catcherror function
also - instead of try catching permissions errors, why not do permission checks first - that way you don't make a useless request and fill your bucket
catchError(err, message)
}```
im still trying to figure that out
something ive tried
side question, on which provider are you hosting your bot
their services seem stable
how are you sending a message?
try/catch will only catch sync code, so all promises must be awaited
Is it better to use implicit grant or authorization code grant
ive just been passing the message through my function to send it
can I just check permissions with an if() statement?
instead of all this try stuff would an if() statement suffice?
kawaiipandaToday at 1:51 AM
Is it better to use implicit grant or authorization code grant
implicit grant is less secure and once the token expires you can't renew it
So authorization code grant then?
i mean, it's up to you, but for me auth code is the way
Yea
Still trying to implement oauth2 kek https://npmjs.com/package/client-oauth2 I don’t like how it does things so ima use express and https://discordjs.guide/oauth2
@lusty dew implementing oauth2 yourself is pretty universally agreed upon to be a bad idea
Why’s that?
because there are a ton of plays to mess it up
you're bound to mess up somewhere
and you really dont wanna mess it up when you're dealing with user's access tokens
everyone, take this as a reminder to clear your oauth grants for sketchy applications
Okay so how would I implement oauth2 then if not myself
@earnest phoenix did you do this 
i use asp.net core which has built in middleware for secure oauth authing
which allows me just to configure how it works and everything else is handled for me
i mean....you linked a lib earlier and said you werent gonna use it
yup
i love working with OOP languages
Where did you learn it from?
self taught
👀
i took a few courses on codecademy then went on to follow microsoft docs
I don’t get a lot of it.
Don't really know what I definitely want in the text but anyways what do you guys think so far? Any suggestions? https://vinniehat.is-inside.me/MZxU5F7v.png
Right now I just want to work on the home page until it is really done
Plus I never remember any of it when I do try to learn it
the color scheme is very off @abstract crow
the twitter and facebook things need more margin
The background and navbar colors were off of coolors
The rest were mine so yeah lol
the whole thing kinda feels odd
I’m focusing on making everything on my web dash responsive
use https://material.io/resources/color/ if you want to get complementary colors
Groovy's dash is close to its initial release 😎
is it SPA
yeah
ok i already love it
@hushed berry What are you using for that? EJS, React, etc
react is pretty good
im not designing the frontend btw
im just a backend engie lol
@hushed berry ugh that looks so fucking snazzy
^
😩 👌
@hushed berry ugh you look so fucking snazzy
shut up 😡
Mine is gonna look so bad
im working on linking everything with a backend <-> frontend ws connection
so everything is updated real time
I don’t even have the color scheme
for a music bot, yeah
i mean like
we'll use it for the player stuff
but getting there is gonna be a challenge
pending a complete rewrite of the bot
state consistency is
is it a stupid idea to make a bot run on a decentralized system? lul
its nice to be able to run it with pm2 clusters, but no access to broadcastEval nor shardmanager
maybe using a message broker hmm
@quartz kindle i mean
i do it rn
the best solution is just to remove the need for intershard comms
ayee
i made it realtime + it reuses user data from cache so getting data on them from just an id doesn't take long
hey, quality
"Pussy grabber"
i made my api work completely in compliance with OOP
e.g this, everything is returned in objects and displayed in json
Hmm
@earnest phoenix Are you using any js framework or library? That is something I want to do in the future but oauth2 with react I haven't done yet
Rip me
Code : js .addField(" `welcomeChannel` :", `But : Permet d'envoyer un message dans un salon spécifique quand un utilisateur rejoind ou quitte le serveur.\nStatus : \`${welcomeChannelStatus}\``)
but i see this in the embed
how to remove this 
yes ^^
Did you re-start your bot code after making that change
Like stop the bot and then run the start script again
Still yesterday there was the same code but I did not see his
Yes, I restart it at least 10 times
Did you actually save the file
yes
This is a community hangout for programmers who make Discord bots, we don’t provide any help or support for end users. @plucky pelican
ouh sry
ask the dev
I’d search on our site and see if Spotify Bot has a support server, they can probably help you.
read #502193464054644737 and #rules-and-info
i read
Doesnt \n in embeds for Discord.py work anymore?!
It's literally just a newline
\n does work
`None`\n`{str(getprefix(ctx.guild))}setautorole <RoleID>`
\n definitely works for me
wyf
the error clearly says what's wrong
\n doesnt work for me, hm
\n definitely works
must be something in my code then
Worked for me too
Yea i saw
@late hill Mind contributing to this?

Why do u have backticks between the new line
"None\nYo"
^
That's discord.py
The thing is, that worked yesterday
backticks don't matter
Oh
Discord changed something
Because all my formatting with inline code blocks
is fucked now
first and second

Two inline code blocks right there
try multiple lines
manually create a new line i guess
`firstsecond
Discord must have done something
`bruh`
`moment`
Mine works fine
no it didnt
u ended up with a ` at the end of ur last try
they must have messed up their regex parser :hyperlul:
I mean
It looks fine to me
It's just something they messed up
Should I even try to fix it then
If it's not rly on my side
Idk what you guys are confused about
Can someone fill me in
I sent a screenshot above
It looks fine
Look at my screenshot
ur on mobile
ur on mobile lol
Oh that may be it @trail dagger
yea
So pc version i fucked up
maybe phone is outdated
What doesn’t Discord use React Native tho
So most of the codebase should remain the same, since they work with the same langs
you can use inspect element so id assume react native
Not on desktop, I’m talking about mobile
Electron on Desktop and React Native on Mobile, iirc
Why don’t they make a native app, that’s so much better
what is discord mainly coded in
Web technologies, HTML/CSS/JS @valid frigate
I’d try talking to those people about the code blocks
So I tested a bunch of stuff
It breaks when you chain them
If there's a character inbetween
It won't break
a, b
a,
b
Just wondering if this is how it's gonna be now
Or if it's just a bug
Hope it is just a bug
alcala
How do I get my bot up whit put have to create those files on my laptop then opening command prompt and all that
update: It also breaks if it's chained with a different form of markdown
I dont know how to get my bot to work?
@abstract musk you need to program it and run the program

Just wondering, when did you guys start getting traffic in your support server ?
@abstract musk wht you use host
i use Hosting glitch
so ezz
wdym @earnest phoenix
try use glitch @abstract musk
glitch wont help a lot if they dont even know how to code 
@abstract crow react (hooks) for frontend, asp.net core for backend
lel


.
const superagent = require("superagent");
exports.run = async (client, message, args, ops) => {
let {body} = await superagent
.get(`http://random.cat/meow`)
let dogembed = new Discord.RichEmbed()
.setColor('#FAE1DB')
.setTitle('***Cute Cats :33 :sparkling_heart:***')
.setFooter('Made by heavenless ☾#5000')
.setImage(body.file);
message.channel.send(dogembed);
}```
guys
?
i tried making cat command
it doesnt work
idk
any errors?
(node:6948) UnhandledPromiseRejectionWarning: Error: Bad Request at Request.callback (/rbd/pnpm-volume/b143163b-c7b2-4f12-a93f-9a962c8e3ce1/node_modules/.registry.npmjs.org/superagent/5.1.0/node_modules/superagent/lib/node/index.js:857:15) at /rbd/pnpm-volume/b143163b-c7b2-4f12-a93f-9a962c8e3ce1/node_modules/.registry.npmjs.org/superagent/5.1.0/node_modules/superagent/lib/node/index.js:1100:20 at IncomingMessage.<anonymous> (/rbd/pnpm-volume/b143163b-c7b2-4f12-a93f-9a962c8e3ce1/node_modules/.registry.npmjs.org/superagent/5.1.0/node_modules/superagent/lib/node/parsers/json.js:22:7) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) (node:6948) 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: 6)
Does it work for discord.js v12 because when I'm in a vocal channel, he tells me that nojs const voiceChannel = message.member.voiceChannel;
voiceChannel has become voice.channel in v12
ok thx u
How can i repair this?
Error:Unhandled Rejection TypeError: Cannot read property 'animated' of undefine d at new Emoji (./node_modules/discord.js/src/structures/Emoji.js:18:27) at new ReactionEmoji (./node_modules/discord.js/src/structures/Reactio nEmoji.js:14:5) at new MessageReaction (./node_modules/discord.js/src/structures/Messa geReaction.js:42:19) at module.exports.run (./events/raw.js:35:15) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:85:5)
Code:```const { d: data } = event;
const user = client.users.get(data.user_id);
const channel = client.channels.get(data.channel_id) || await user.createDM();
if (channel.messages.has(data.message_id)) return;
const message = await channel.messages.fetch(data.message_id);
const emojiKey = (data.emoji.id) ? `${data.emoji.name}:${data.emoji.id}` : data.emoji.name;
const reaction = message.reactions.get(emojiKey);
if (!reaction) {
// Create an object that can be passed through the event like normal
const emoji = new Discord.Emoji(client.guilds.get(data.guild_id), data.emoji);
reaction = new Discord.MessageReaction(message, emoji, 1, data.user_id === client.user.id);
}```
I have no idea I work with Python
if you cant help dont respond
how can i change this ```js
const serverQueue = queue.get(msg.guild.id);
i have to change this msg.guild.id
Wdym by change
If you are trying to give the variable a new value use let const can’t be redefined
just a quick question: is there an way to move a member from a voice channel to another with the help of a command?
i just want to know if it's possible
yes, it is possible
Hm I honestly didn’t know that kek
Np
have a great day
Binding Files?
have any ideas how to run my bot 24/7 without a RaspBerry Pi
or heroku
or anything like that
This applies to both you and whoever posted the previous screenshot: get a VPS.
Here are some suggestions:
@sharp lotus @stray garnet @earnest phoenix
i dont wanna pay reee
Then have fun troubleshooting that error lol, I’m sure that problem won’t exist if you try it out another computer. @stray garnet
It’s in the pins for this channel @earnest phoenix
@stray garnet how did you install node-opus?
I believe in glitch you have to install packages from their "add package" button
Installing with npm wont work
Idk if glitch even supports audio lul
glitch does support audio
yea
as soon i do !play it joins the channel and then this error
and an Link got provided
@opaque eagle so I meant a free way
cause
yeah
maybe I can turn my PC 24/7 on
u guess
but
im not rly allowed :/
@sharp lotus Glitch.com
oh
Its not the best but it works
@sharp lotus they wont
ok
LOL
is an account forced
@sharp lotus it works good for me... ok just because i use uptimerobot
If a hosting company uses your files, thats a major privacy breach and even criminal behavior
Of course they cant do that
@sharp lotus and why u think so?
im worried XD
Ok, basicly.... Use Heroku. or Glitch.
use local hosting
@quartz kindle btw whats with my error
Always better than free hosting
I'd rather buy a RaspBerry Pi
Did you try installing with their add package button?
npm uninstall node-opus -s
Replace “Raspberry Pi” with “a regular PC” and you’ve got yourself a pretty ok solution @sharp lotus
Exactly, that’s why it’s a bad solution
no
Same with Glitch and Heroku
Do you have an RPi?
no
Ok
cheap isnt always a bad solution
ikr
free is more often than not the bad solution tho
Yeah but in this scenario cheap is either RPi/Glitch/Heroku
All three of which happen to be sub-par hosting solutions
if im not allowed to use those websites or even a PC turned on 24/7
RaspBerry Pi is my only way
nope
And I’m not sure how well it scales
if I take the best version of RaspBerry Pi 4
Have you tried it? @sharp lotus
no
I’ve tried it with my RPi 3 Model B+ and it didn’t work
btw im waiting like an hour rn for my bot XD
I mean it worked, but the audio wasn’t clear
btw I cant even make my bot a music bot
when I make it a music bot, it say I need PyNaCl module
if I install it
and I import it
it says I dont have it installed
If you want cheap you can always use a £3.59/month vps from OVH.

They are stubborn about getting a free solution @uncut stirrup
Host it locally then.
^
^
^

Preferably with something other than an RPi
I’m not saying that because I’m hating on cheap solutions... I’m not. I’ve done it before with my RPi, and I didn’t really like it, so imo it’s not really a feasible option.
Also if you have the GitHub Student Developer Pack you can host your bot for like a year and a half
If you have a debit card or any other bank card you can always sign up to google's console and get £250 free for an entire year. I use that currently for their API system and 1 instance which hosts my bot 24/7 without issues.
Google Cloud Platform has a free forever plan
As long as you verify with a card
Never tested it before myself, however.
You can always try Vultr or Digital Ocean. Use one of their codes for free money basically. You can also use AWS but wasn't a fan.
Also about what I said earlier, GitHub Student Dev Pack has free tie-ups with several hosting solutions
And the student dev pack is free to get
I'm currently using a google server but it's like £40/month i'm still using the free credit and it runs my bot with almost 1000 guilds over 150 command 24/7 without an issue. https://img.cakebot.net/7fd0z8v.png
That’s surprising
Considering how bad Google is as a cloud provider lol
Lots of Discord’s outages mention Google as part of the problem
in galaxygate the windows server option its a remote desktop server?
and whats a root password and hostname
40 a month in google? Wtf
My bot was in the google free plan, with only charges for bandwidth above 1gb
I was paying like 1$ a month
With 1500 guilds
i have a windows server now and i thought just to go with something i know
Hostname is the server name whatever you want
cuz i think a vps its hard to setup and everything
but i never done this
ok
A linux vps is a great learning experiencr
i think ill go with ovh cuz its the cheapest i see
i had a remote desktop linux server
but with cmd and shit i dont think its that easy
Why do you need remote desktop?
idk
I mean
Would a server's firewall affect it from connecting to itself in any way
Working on linux from a command line is not as hard as it looks, and makes your server much more efficient, its just a matrer of learning and getting used to it
If youre interested in using hosting services and learning to operate them, learning cmd linux is a good thing to invest your time in
ovh is the cheapest? cuz im not earning at all from my bot atm and i dont know if i want to spend that much money on host that dont worth it
ill go with linux then thx
Google vps is the cheapest for starting
Free for 1 year, then they only charge for bandwidth if you go with the free forever plan (600mb ram)
The most i ever paid on google was like 2$
but my bot has music commands, and recaptcha verification thats why i need the site to work on nodejs
its enough 600mb ram for all that?
It is if you know what you're doing, there are ways of optimising discord.js. but if youre worried then go with ovh
My bot has image generation, and i nevrr had problems with it, bjt idk about audio, i never used audio
I mean, linux has a huge ass comunity, you can find information and tutorials everywhere
If you need help with using cmd linux, yoi can always ask here as well
Yes
ok
As long as its mysql and not mssql
its mysql
So yes, mysql is cross platform
what os is the best lol
And if you ever have any Linux troubles you can ask here lol
Loads of us are familiar with it
arch
One message removed from a suspended account.
One message removed from a suspended account.

One message removed from a suspended account.
In Java is there an equivalent to .shift from other languages?
how much time it takes till the server is ready in ovh?
when i launch my bot and login via ssh again i can see the console?
it'll be a new session
If it's a JavaScript bot, you can use a process manager like pm2
ok
if its not in js then docker might be ur best bet
its js
pm2 can run literally anything, not just js
Nvm, Figured it out.
What's the best resource to learn Java? I wanna self-study for AP Comp Sci, but I don't want to take a separate class for it b/c the programming theory/concepts are the same from other langs, so i just need to know the syntax.
i'd recommend systemd (or whatever service manager your distro has) to manage stuff outside docker
and docker for (duh) docker containers
lmao
why cant i see the password in putty im copying and i dont see nothing and i even write it and it sais access denied
What's putty
yeah isn't there supposed to be a built-in ssh command in all consoles
there's an ssh command in my bash terminal
p sure zsh fish and all the others have it too
i cant see the password and i write it or copy it and i cant log in
in the cmd too
If it's a programming related question, ask here
This is a community hangout for programmers who create Discord bots. I don't see how we can help you with some random bot on the internet.
I'd go ask in their support server.
We can't help you with other Discord bots.
It's like asking a plumber to fix your car.
Again, we can't help you with CouchBot.
Go there
I answered that question before you even asked it, were you paying attention?
Yes, yes you are, like I've told you many times already.
oh im really sorry for disturbing you here
Np... again go ask in their support server:
yes sir, thank you so much
p sure zsh fish and all the others have it too
ssh isn't a shell feature
it's just a program
ok
why doesn't his shell have it then
well idk if his does
but some ppl online apparently don't have it by default
like how bad of a company/org do u have to be to not include ssh by default
windows below vista
@opaque eagle you sometimes need to install it
You can use the package openssh-client
how to fix this 😅
One message removed from a suspended account.
One message removed from a suspended account.
invald format
show what you put in
One message removed from a suspended account.
the text you wrote
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
pff all you 
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
you do need comma
One message removed from a suspended account.
still invalid format
One message removed from a suspended account.
One message removed from a suspended account.
lmao idk how 
One message removed from a suspended account.
:/
comma and a space prolly
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
sick
One message removed from a suspended account.
np 
Anyone know this error?
Yes, but the bot is still able to read it, but it's just that it puts this error
Show code
hi.
Hi.
my bot does some strange thing, I need a bit of help.
Explain in more detail
firstly there is no code for that;
when anyone types there, bot tries to execute addrole function
no code, cant help
Is your bot on GitHub?
Well if you didn’t code it, then it shouldn’t happen.
So, you clearly wrote the code for it.
i did check everything, nothing seems to be suspicious about that
which code I should show then?
the code where te error is 
command handler perhaps
Amen
amen
b r u h
we don't even know what the issue is
he just said, "my bot does some strange thing"
His addrole command is executed when someone says there
bot.on("message", async message => {
let botconfig = require("./botconfig.json");
const prefix = await bot.prefixes.get(message.guild.id) || botconfig.prefix;
if (message.author.bot || message.channel.type === 'dm') return undefined;
const args = message.content.slice(prefix.length).split(' ');
const command = args.shift().toLowerCase();
const commandfile = bot.commands.get(command);
if (commandfile) commandfile.run(bot, message, args);
});
is that what you wanted to see^?
no
go to your commands folder
and send the code for the addrole command
also you don't need to return undefined
just do return; and you're good to go
^
ok
const Discord = require("discord.js");
const errors = require("../utils/errors.js");
exports.run = async (bot, message, args) => {
if (!message.member.hasPermission("MANAGE_ROLES")) return errors.noPerms(message, "MANAGE_ROLES");
if (args[0] == "yardım") {
message.reply("Kullanım: ld.re <kullanıcı> <rol>" + "\nBelirtilen kullanıcıya, belirtilen rolü ekler.");
return;
}
let rol = message.mentions.roles.first()
let kullanici = message.mentions.members.first()
if (!kullanici) return message.reply('Rolü vermek istediğin kullanıcıyı belirt.').catch(console.error);
if (!rol) return message.reply('Vermek istediğin rolü belirt.');
kullanici.addRole(rol);
return message.channel.send(kullanici + ' adlı kullanıcıya ' + rol + ' rolü verildi.');
};
exports.help = {
name: "re"
}
name: "re"
yeah youre not checking if it actually starts with the prefix
you just slice that length away
so it responds to any 3 letter prefix
and the is a 3 letter word
so it triggers on there
oh, thx
This is why we like to double check what you say is correct... we would’ve never solved this problem if we assumed the code was alright
Does anyone know wtf is happening?
https://cdn.discordapp.com/attachments/582539407756886016/617395332677894173/unknown.png
https://cdn.discordapp.com/attachments/582539407756886016/617395214382006275/unknown.png
pm2 logs shards is spamming this.
Good day, so does it matter if closed tickets never get deleted.
bc i am having issue were i close open tickets and they stay in the open category
read the errors
it means your code is using "g" somewhere but it's not defined
oh actually it's because you're running evals lmao, don't worry about it
this is what "gameRoom" returns when logged
but when i run this if statement it returns false
this is the channel id log
where do you log them? Any chance it's before the ids are pushed to the array?
the if statement is before*
it's at the end
log it above before you log "ch id"
okay brb

