#development
1 messages · Page 461 of 1
ty
is there a way to make it send a message to a channel every time someone votes?
also if it can, then who voted
Use webhooks
@rotund mesa I doubt that's possible, so what you would need is either move your code into the event (I assume it would be on_reaction_add) or, well, bot.get_cog_commands('some_cog'), iterate through all of them and .invoke()
on_reaction_add could do yes
100% of the time, you don't need to use invoke(), you could just make a helper function instead
Only time you would use invoke is if you are making a "run as this person" command
It didn't affect server count and there was no breach in the code
usually happens on discord outages
Yea one of my servers just went out
Also, you should keep track of things like how many humans are on the server and what is the bot/members ratio
Knowing that there are 72 members is meaningless if 70 of them are bots
Eh well, I am not a professional coder, so don't take me too seriously :^)
What formula do u guys use to calculate XP needed for each level?
@tropic ridge are you asking for a specific bot?
@tropic ridge each bot has its own algorithm when it comes to that I think
Try to come up with something you're comfortable with is all I can say 🤷
Hi, is there a global rate limit about the number of messages a bot can send across all the guilds?
you can send 5 messages per 5 seconds globally @proper remnant
Hm thanks, but my question was more about a more global limit than a channel limit
For example: popular bots with spammed commands
Hm some bots send 50 messages/5s with default options :/ but thanks anyway
Actually it's 5/5s per channel
If it was across all guilds it'd be a bit extreme I think
ohk
Does that mean it's globally 120 messages/60s ?
No that'd be misleading
120/60s means you can do the 120 say in the first second but gonna wait 59 more seconds for them to reset
Also how would you even come up with 120 lol
Oh wait
I didn't see the WS one
I think your screen contain the value that I want to find if a bot get very spammed. Maybe the 50 requests/second then
discord.js to vote in command can be done.
@proper remnant most libs though manage ratelimits themselves so you don't have to worry about it
Thank you, may I ask where did you find these infos aside from the bot? (I searched a little but don't found it)
@bright spear @pale marsh Sorry for the late response, I was just wondering what people here use
No problem
yeah
Do you think the curve on which it increases is too steep?
So
5 * (lvl ^ 2) + 50 * lvl + 100
Thats the math formule for mee level max exp?
😮
5x^2 + 50x + 100
Yeah I guess that's a bit steep
is days in bot.uptime rounded by 360 or 24?
@earnest phoenix you didnt say what lib
discord.js
@earnest phoenix <Client>.uptime is in milliseconds, so dunno
looks like python isnt installed?
which lang are u using
python
var botuptime = bot.uptime;
x = botuptime / 1000
seconds = Math.round(x % 60)
x /= 60
minutes = Math.round(x % 60)
x /= 60
hours = Math.round(x % 24)
x /= 360
days = Math.round(x % 360)
var uptime = days + ' day(s) ' + hours + ' hour(s) ' + minutes + ' Mins ' + seconds + ' Secs'
@sick cloud I have this, and was wondering days ?
ok
if anyone's good with html, how do you make a div stretch all the way down to the bottom of a page
my brain is failing me and icr how
Height 
Is it flex?
huh maybe min-height
nope, same result
that means discord hasnt been installed
@lament meteor like what should i do?
that did nothing still :l
@earnest phoenix you probably want discord.js
is it a div in a div Tony?
^
hold on
python -m pip install discord.py @earnest phoenix
Yeah
@sick cloud wat is the max height of <body> ?
Maybe set display to block?
@earnest phoenix Do you want to install discord.py async or rewrite?
block does nothing
wow
I'm completely lost. I would ask on stack overflow/ the coding den -- they have a lot of HTML/CSS peeps
i got a friend who knows 7 languages
lemme see...
but he is the type of guy who you need to do something for him
@sick cloud try to remove the height from the body
wried idk then
mostly div stretch maximal to their content
woo got it
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
overflow:hidden;
z-index:-1;
used that 
-1
horrible workaround
oh.. overflow
wat time is it for u Tony?
12:43am @lament meteor
Also maybe put in the body height to 100%
3 hours ahead oof
As far as I can remember, Internet Explorer was always the problem
🤔😂
what are you trying to do?
So its hidden
U gotta appreciate Microsoft sense of humour
totally
just like a lingering ex
how do u restart a song without dispatcher.end? (discord.js)
you make it like this <client>.user.setActivity(`with you`, { type: 'STREAMING' })� @timber star
np
rip, JDA forces you to use a valid streaming link
just use https://twitch.tv
spider it doesnt.
Just type in the link to your twitch channel.. You can set the text
I need help getting a role by a role mention, and storing that role in d.js
what do you mean?
same thing with channels
getting a role id?
like someone does m::setup role-mention channel-mention i want my bot to store the channel and role that they mentioned for use later as variables
djs right?
but multiple roles and channels, and yes, d.js
i need to extract the channel from the mention not vice versa
since i mainly use djs-commando, i am not exactly sure about how to do that with normal djs args 🤷♂️
ick
doing that with commando is way easier, i recommend it
hmm
im using discord.js and im looking to overwrite a certain channels perms, i got everthing coded exept i cant figure out how to specify a certain channel, any suggestions?
you can get it by name or id
lol nice
Loop and compare
im making a bot setup command that setups of the bot's logging channels and such
so thats why i would want it by name
but thx anyways
Why not by mention?
becuase its creating the channels
Ohh
client.on('ready', () => { // When the bot is ready
console.log('Logged in as '+client.user.tag+`|||Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users.`);
client.user.setActivity('+info | In ' + client.guilds.size + ' servers with ' + client.users.size + ' members.')
});
^ unexpected token ) at the end there
The editor matches the opening of ready with it sonit should be fine
Im working on a better gambling system right now
I dont have the dev rank in here though
ok
How do i get the dev rank
Γειασαςπαιδιά。 Eπέστρεψααπότα600δευτερόλεπταbanμου。 ΣεαυτήτηνώρακατάφερανατελειώσωτηνέκθεσημουσχετικάμετηνΝαζιστικήΓερμάνια。 ΗάποψημουείναιττυταπιστεύωτουΧίτλερκαιτωνΝαζιστώνβρίσκουνσυνέχειααπότους版主αυτούτουchatπυυπράττουνσανναείναικυριολεκτικάοΧίτλερ。 地图90απότους100πόντουςγιααυτήτηνέκθεση。 Παρακαλώόχιαντιγραφή-επικόλληση。
English only please
Γειασαςπαιδιά。 Eπέστρεψααπότα600δευτερόλεπταbanμου。 ΣεαυτήτηνώρακατάφερανατελειώσωτηνέκθεσημουσχετικάμετηνΝαζιστικήΓερμάνια。 ΗάποψημουείναιττυταπιστεύωτουΧίτλερκαιτωνΝαζιστώνβρίσκουνσυνέχειααπότους版主αυτούτουchatπυυπράττουνσανναείναικυριολεκτικάοΧίτλερ。 地图90απότους100πόντουςγιααυτήτηνέκθεση。 Παρακαλώόχιαντιγραφή-επικόλληση。
@inner jewel
Γειασαςπαιδιά。 Eπέστρεψααπότα600δευτερόλεπταbanμου。 ΣεαυτήτηνώρακατάφερανατελειώσωτηνέκθεσημουσχετικάμετηνΝαζιστικήΓερμάνια。 ΗάποψημουείναιττυταπιστεύωτουΧίτλερκαιτωνΝαζιστώνβρίσκουνσυνέχειααπότους版主αυτούτουchatπυυπράττουνσανναείναικυριολεκτικάοΧίτλερ。 地图90απότους100πόντουςγιααυτήτηνέκθεση。 Παρακαλώόχιαντιγραφή-επικόλληση。
Its a spammer
Look at the last words
All the same as the first message
@south finch i see multiple spammers same as above here ^
@cursive stratus also one
theyre in pw too
pw is?
another botlist
block them
you'll get it if/when your bot gets approved, no sooner
Ok
also, not the appropriate channel
Recommended permission needed for a warn command?
Administrator?
no
I used kick
Manage or delete messages would prob be good too
alright thanks
Guys, how in discord.js do you make it move to a new month on new date() if it reaches month's maximum?
if it reaches above 30/31th it says "invalid date"
for your front page of your bot on the DBL website, how would you change the background?
or that
in discord.js when using overwritePermissions how would we set the perms for the defualt role, @ everyone gives me an error
no channel named report-log in the guild
but the line before it is creating it
can someone lend me a hand rq...
@viscid falcon JS is asynchronous and creating the channel is not instant. It might not exist at that moment.
could i run it in an async process and then use .then?
If you specify the function is asynchronous then you can use await. You don't need to specify async if your gonna use .then()
oh ok thanks!
I want my command handler to read a sub folder, but I don't know how to tackle the task. Does anyone know how I could do this
I want it to read ./commands/ and ./commands/help/
try with filewalker
?
Is there a way to stream audio directly from youtube without downloading the video onto disk
How to put a rich presence that says 'Currently on (total servers) guilds' in python?
await <Client>.change_presence(activity=discord.Game(name="Currently on {} guilds".format(len(<Client>.guilds))))
@austere sedge are you trying to do an rpc for a bot?
cuz thats not availble for bots
@earnest phoenix #memes-and-media
Yo
@pallid vault?
how to add mute,ban commands in a bot????????? DM ME IF U CAN HELP
@pallid vault where do you host Ur bot?
@earnest phoenix https://glitch.com/
add this if u want 24/7 hosting
const http = require('http');
const express = require('express');
const app = express();
app.get("/", (request, response) => {
console.log("[" + Date.now() + ": Ping Received" + "]");
response.sendStatus(200);
});
app.listen(process.env.PORT);
setInterval(() => {
http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
}, 280000);
Whatever
I think I might've not been listening to webhooks correctly in C#
Anyone got an example of this?
My bot shutdowns and auto reboots every 2 mins, happening since 2 days, why so?
It should give an error while crahing?
maybe your computer is lagging / bot is lagging or one of the scripts are making it reboot.
WHAT IS THE CODING OF MAKING MUTE AND BAN COMMANDS IN A BOT?
we don't directly give you a code here, you can try do it and if an error happens, we can help you about it
OK
Also why freaking caps

@slender thistle
Ignoring exception in on_ready
Traceback (most recent call last):
File "C:\Users\Server\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\client.py", line 307, in _run_event
yield from getattr(self, event)(*args, **kwargs)
File "D:\Rinax Files\Game data\Discord Bot\Simple bot\Bot.py", line 57, in on_ready
await bot.change_presence(activity=discord.Game(name="-help│{} guilds".format(len(bot.guilds))))
File "C:\Users\Server\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\client.py", line 296, in getattr
raise AttributeError(msg.format(self.class, name))
AttributeError: '<class 'discord.ext.commands.bot.Bot'>' object has no attribute 'guilds'
len(bot.servers) then
Um
Disregard my statement.
Done.
anyone know how would I escape the ' if I put it in sqlite3 execution? \ doesn't seem to be helping
\ should work?
yeah but sqlite3 is raising OperationalError, cause the ' is apparently still breaking the execution
um, i don't know
a google search said you escape it by doubling it
INSERT INTO @my_table VALUES ('hi, my name''s tim.')
that kinda at the same time answers my question and raises even more questions 
try it, if it works it works
I mean I do need the ' to be part of the value that I'm inserting
holy shit, that worked?
if its stupid but it works, then its not stupid
^
alert("H"+"E"+"L"+"L"+"O") //stupid but it works
Lol
var a = ["H","E","L","L","O"];
alert(a[0]+a[1]+a[2]+a[3]+a[4]) //stupid but it works```
This is one of the many reasons I don't use sql
stupid 
jsfuck = culmination of "stupid but it works"
javascript ™
Tim
Tom
👌
that guy who did a presentation on js hacks showed other methods of coding as well
like coding js with invisible characters
or coding js with foreign language characters
google martin kleppe
hes a js god
like this shit
(right click -> view source)
list of his wizardry https://aem1k.com/
I need help
How fix this error ?
(node:5932) UnhandledPromiseRejectionWarning: TypeError: Supplied parameter was
neither a Role nor a Snowflake.
at GuildMember.addRole (C:\Users\Administrator\Desktop\discord-bot\node_modu
les\discord.js\src\structures\GuildMember.js:452:38)
at db.fetch.then.i (C:\Users\Administrator\Desktop\discord-bot\bot.js:121:27
)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:5932) 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)
First tell us what you think it might be, and send relevant code.
but from TypeError: Supplied parameter was neither a Role nor a Snowflake., Its probably you trying to add a role, and you are giving an argument that isnt a role/snowflake when it should be
I checking wait
.addRole('id') works for me
Eren I send you friend request
kk
My bot now has a working Votelistener....
But what is the new method of getting the actual amount of votes the bot has so far?
there should be something useful in docs
Sadly not
I only found a method to get the votes, that a single user did so far....
And the API had a change some time ago and the method of getting all votes is depricated/no longer available
The field points is for the number of upvote
Doesn't really help me on how to get the number itself...
I don't want to make a seperate get to just find that stuff...
fetch it once, then count how many with the webhook in future 
<--- No expert right here
I hat huge difficulties with the webhooks alone...
Why was the simple API-method removed?
i dont use the api apart from posting stats, but im guessing they removed the method that fetched all votes?
and probably because thats not very efficient for them
or anyone
https://discordbots.org/api/bots/{bot.id} here you will get a JSON object with the bot info, in that object is a field called "points"
Actually no, sinec Muted is a higher role it overrides it
Check if there's Admin perms instead
Actually lemme check what you said creepers
I know from experience
And I believe it’s explicitly stated in the discord api docs that is the case
Yeah I was right
Higher roles override lower roles
Except if a lower role has Admin perms
I just tried it dude lol
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
Hmm
Discord pls
I just tried it on a user and he was unable to view a channel when I edited @ everyone and one of the user's roles
@ everyone allowed viewing the channel and the role disallowed it
can someone tell me what's wrong with this?
its telling you whats wrong
prefix = set in line 46 is invalid
you're trying to use = inside an object
have anyone ever have an error printed in python's console with the whole content of 2?
2```
anyone has an idea?
lol
no idea lmao
are you sure you dont have any console.log somewhere in there? (i dont even know if python has a console.log equivalent)
well the thing is, I know for sure that it's a sign that my MemberPresence module doesn't load
but it errors out with the 2 lol
http://prntscr.com/khgir1 tell me why cant i uninstall it from a server please 😢
well
first google result
Where can I find information about meaning of exit codes of "python" process on Unix? For instance, if I do "python thisfiledoesntexist.py", I get exit code 2
that should explain it
also I don't print anything at all, unless command executions that is in a different file
what should i use to host my bot 24/7?
a vps
how much are you willing to pay?
there are very few free options, but you can try those if you dont want to pay
otherwise you can get a vps for like 3-5 usd/month
well tim i have got google cloud for that one and have it set up everything but refuses me to uninstall that version
thats a windows vps?
yes 😦
i sould have but im not good with linex 😦
true well how do i stop it now as google has a free trail
and then just choose linex ?
i believe you can delete that instance of the compute engine and create a new one
as long as you only have 1 compute engine, it should still be free
u might wanna read up on basic commands for linux too
cant just open up my compter and find ur files
^
linux is all command line, so learn how to navigate it
use commands like cd and ls
installs desktop environment
infidel
there are many options, you can google vps rankings and recommendations
many people here use galaxygate
ok
google gcp is also an option
i will look that up
well google give you a free trail for 1 year and then its 9.99$
Using Windows to handle Python development is not exactly a good idea.
yeah i noticed it sorry so what linex verion do i need to take ?
is ubuntu going to work ?
yea ubuntu is good
well i use 16.04
thats the command line interface
by default, linux doesnt have a desktop like windows does
you'll get used to it soon
also linux has a lot of desktop distribution 🤔
yes but not needed for servers
cauz windows server does have one?
I need help with my bot. Its saying this in console
(node:7082) UnhandledPromiseRejectionWarning: Error: 401 Unauthorized
at _response.transport.request.then (/root/Gamer/node_modules/snekfetch/src/index.js:193:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:7082) 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)
wrong/missing token
Im running 2 instances of the bot. One on Glitch for the Vote Notifications / Checker which announces when a user votes. And the other is the main bot. Would that be bad?
Both on the same token
Funny thing is. All of my other commands work but the NSFW Ones
@inner jewel
you can check your dbl token
oh yeah lol
I have NSFW On Vote Only. Would that be why? My DBL Token is incorrect?
Why did my dblToken Change anyway? I never altered anything on it
this error happened to me as well
when i changed my token, it fixed
i got the exact same error
Could this be a website bug maybe?
already did thanks for the help 😄
np
If Windows Server needs a desktop environment, then chances are people who have no idea how to use a Terminal use it.
sad 😔
@eager spoke Sorry for the late response: Thanks for the link.
That helped me a LOT and I finally can show the votes on the vote-images...
Yw ^^
And I also finally found a way to make text allign to the right...
Java doesn't support that by default..
@inner jewel ik but drawString is a bit... different. At least for me
currently i am trying to get my bot to respond to a mention using discord.js, why wont this following code work
if(message.mentions.user.first() == client.user) {.....
Try to put the } { to }{
what do you mean?
instead of doing that
you can just check for instances of <@ botid>
or do === "botid" instead
assuming you're correctly getting the ID of the mentioned user with .first()
thank you
Np
How do i keep a bot to one channel?
remove its permssions to read in every other
Okay....
you're 15 seconds late
Well that one way is going to screw up my server ironically
how
you can also code your bot to make it only accept commands in certain channels
Ah
Depends on what you're trying to do
pshh, coding is for nerds
Discord bot maker is
Im tring to make a bot that does that and see how to do it to other bots
Example: Pokecord
And intro bots
Are you trying to restrict other bots from typing in certain channels?
Yea, not from one bot to another,
Why would you want to do that
Because there are server owners that don't know everything, and i want to give some of these tips from a message in my bot
There's a few ways to do that
Hold up
Do you want the owners to specify which bots to prevent from typing?
Like in the command
It's easier for me to explain if you tell me exactly what you want
Because there's no strict way of doing this
I need a idiot to understand how to keep a bot onto one channel. That would be a command such as h!botspam
Yea
What library are you using
Lemme see
basically loop over every channel and make the bot's id in overrides unable to send messages or read messages, and allow for the channel it's done in
Pretty much
but you need to get the channels first
Hey guys... Having some issues with my personal bot... I'm trying to make it set a specific channel's permissions. But it tends to say can't read property 'channel' of null... Please help for more information you can ask in the dm's I'm using discord.js
Why not joining the discord.js server (i will not link it, you are old enough to google by yourself to find it) and put your part of your code there and they will tell you what you didnt understood about the framework
Btw any null object have no property called channel, might want to be sure you are selecting a corrext instance through the message sent or through a screening of the channels
Can you do Array.from(collection)?
okie
Hmm idek. I use collection#array all the time
I have a command which is ,awwnime and another which is ,aww
When I use ,awwnime it executes the ,aww command though
because I used .startsWith
what do
Discord.js btw
Regex exact casing
Regex is expensive
Would split the message into arguments and get the first one for command
startsWith("aww") && !startsWith("awwnime") something like that
I ended up using message.content.slice(prefix.length).trim().split(/ +/g).shift().toLowerCase() == 'awwnime' thanks for the help tho
How to add a custom emoji in a discord.py?
help me
can you be more specific
its about a code
ok i kinda figured, practicly everyone on here is a dev
alright, i want help with my music bot, i got two seprate commands, i want to make the two seprate commands into one
like they work together
if you only have 2 commands, then just have one main file
no
Bjoin
then you gotta freakin do Bplay bahahaha
i want it to be Bplay (song) then it joins the room then plays that song
hello
Error =(node:6911) DeprecationWarning: Collection#find: pass a function instead
Code = let muterole = message.guild.roles.find("name","muted by 02");
can you help me pls? 🤔
bcs i don't undrstnd
@earnest phoenix d.js doesn't use that anymore
use a function as it says
.find(role => role.name === "Name here")
yep i foun that just now ty :3
Oh nice it has a useful error now
It used to just say "Error: fn.bind is not a function"
...
good someone tells me how to select a channel with my bot for member-log? for example
!setwelcomelogs enable #general
That's pretty much basic stuff
Store the channel in a local variable and in your DB, check the variable each time the event is fired and send your message
Idk if that's what you need or not, but it's not as complicated as you think it is
don't forget to check if the channel is null
One message removed from a suspended account.
discord issues, refer to the message above yours
Im stuck... whats going wrong here?
@earnest phoenix if only you could read...

Yeet. My bot wont login either
all shards just reconnected 
Yay
Whoops. Double time. I just saw that i sent six images instead of three. Mobile, fuck you
only sent once on my screen :p
so dont sweat it
Locale is new?
That sounds like an awesome way to support i18n in web dashes and stuff
yes i know how i can use this
you can make it so people dont have to set it to their language
just detect the locale and do stuff
oh niiiiiiiiiiiice
I'm not yet sure if this is supported on a GET User
not like my bot supports languages but i am working on a dashbaord
Or only on GET Me
so maybe ill start there lol
like just identify?
ahk
/id only returns https://i.imgur.com/x235Hgp.png
Would be nice if it could
Bot's wouldn't language settings but could dynamically adjust language based on Discord
oh thats cool
I mean I'd still have a language setting for languages not on Discord or users preferring English clients
@bitter sundial DBL translations when 
It's quite nice that Discord does this now just a shame it's limited to identify
Maybe I'll try asking if it could be a thing in the future
I'd personally use auto language which you can optionally disable
I'm planning to add setup for my bot into the web dashboard and this was will be mucho useful to detect the users language
Though, you can read browser locale too technically, although this might be a nicer way
I wonder how Discord handles their languages setup
Google? Do they have their own translators working for them?
yea im sure they have their own translators
Any reason this might be happening? It keeps causing mu token to reset and im tired of it.
If I recall correctly Discord went down once just because of Google update
So it wouldnt be far fetched
http://prntscr.com/khqdim anybody know why my .bat file is doing this ?
you're trying to run the js file with microsoft JScript?
if you're using node, you should run it as node index.js not just index.js
@latent heron yes i am
jesus
you have skill
to do it all on a phone
I feel bad for the amount of times you have had to tap the bottom left/right (depending on phone and OS) for symbols
ok
what is it that you want to do?
@hidden patio for a webhook, you need to setup a webserver to listen to a post request from dbl. It will contain information about who voted.
Its at the bottom of bot edit page https://img.69420.me/PcTywCAY.png
I want a bot or any way to make me somehow find out who upvoted my bot and when
okay, there's something called in github, votehook
oh
u can try that
can you send me a link?
i cant rn, just search votehook
nvm
i found it
thanks tho
thanks @earnest phoenix 
where can i get an Idiotic API key?
a wut
@restive silo how long does it take to get approved?
yIkEs
@topaz fjord you dont know what Idiotic api is?
it's says in #460037222331187200 @winter spindle
there's also alot more information in there
i do
it is used for a lot of fun commands such as the beautiful command and others
haven't used it tho
do you know where to get a key?
nop
shit
Is this button editable?
https://discord.finally-fucking.works/snk2TF80.png
the button is a base64 image
you can use display:none, and replace it with a background in css
@earnest phoenix i know where u can get a key
where?
Is this editable, now? https://pornhub.finally-fucking.works/IYIr3JjG.png
right click > inspect element
This is the point where I realize I should learn HTML 😄
Hello friends. I am coding my bot with node. Is there a command like client.guilds.find? I want !support to come up with my server notification. I could not. Could you help me? Sorry for my English
🤦 Translate!
server notification?
I must be doing it wrong then 😄
For example, when you send my bot support command on this server, the bot wants to support a sample user on the support server!
i dont understand what you're asking
do you want the bot to post a link to the support server?
Which style rule is that?
😐
make the bot send a message with your invite link
Dur bir dakika @steel heath burada
message.channel.send("discord.gg/yourinvite")
@slender thistle this is the hierarchy
so #details .container .columns .column .status
Whats better Jimp or Canvas? And why?
canvas is much faster than jimp
sharp is much faster than both, depending on what you want to do
hmm. Whats interesting is jimp has 2x the downloads as Canvas, maybe because it seems easier?
they do completely different things
But I prefer better compatibility and features
Well
They both to image manipulation
jimp is an image editing library ported into javascript, while canvas is the html5 canvas ported into node
hmm
jimp runs on commands, while canvas is directly draws using javascript methods
Interesting
canvas is faster because you're drawing everything in a virtual canvas in memory
jimp is using external manipulation libraries ported into js language, which is not fully optimized for that type of code
@quartz kindle https://hastebin.com/hokehexiqa.js
so if you're doing simple things like cropping and overlays, go with sharp
or canvas
canvas is good when you need to draw something from scratch based on user input or saved data
Hmm alright
i'd use canvas
Because I noticed the BFD Widget module used Canvas
and it did it fast and with quality
But also, is Canvas Constructor better to use than raw canvas?
😦
Constructor seems to be easily done such as like Jimp, but is canvas
@craggy roost
guru.guilds.find(name, "Guru Bot Support Server"); -> guru.guilds.get("support server ID");
Eh, #bot-details-page .status worked for me 
i personally use raw canvas
hmm
Hmm
canvas constructor is easier to use, as its an abstraction layer
Constructor just makes it easier, but still requires Canvas
canvas constructor doesnt have all the methods canvas has 
Like whats missing
canvas constructor is to canvas the same as discord.js is to discord api
@quartz kindle let destekduyurukanali = desteksunucusu.channels.find(name, "📃support-notifications"); This command is a finding support channel (İs this wrong?)
also @slender thistle , its fine if it works in this case, but that selector will look for ALL status classes anywhere inside that ID, so its both slower and can possibly affect things you dont want it to
that would look for the status class anywhere in the page
all instances of that class
the more specific you are with css, the faster it will be, and less possibilities of affecting things you dont want to affect
also, the more specific you are, the higher priority the rule has
👍
for example .column .status will overwrite .status if they have the same rules
What is the client secret for?
oauth
What about it
getting access tokens
@craggy roost if your channel never changes, use this desteksunucusu.channels.get("support channel ID")
Understood. Thanks for an explanation
@quartz kindle Ok 👍 Thx
Anyone have a list for the methods on canvas constructor?
you should be able to find them in their github page
also, if you're loading images from disk, do so only once, and keep them in memory
hmm alright
@cerulean zinc https://canvasconstructor.js.org
docs are there
@quartz kindle
Im assuming constructor is better than reg canvas?
its not better
hmmmmmmmmmmm
its just easier to use by adding an additional layer on top of it
Ah
that simplifies commands
CC is just easier, it's like using a RichEmbed builder instead of making a raw embed JSON property
if that makes sense
@craggy roost guru.guilds.channels.get(${ayarlar.destekkanali}); -> guru.channels.get(${ayarlar.destekkanali});
i prefer raw canvas because i dont want additional dependencies
also my bot uses a lot of complicated canvas code, so im used to it
canvas trigonometry anyone? xD
How the hecc do you guys get pictures from rule34 for the bot
IVE BEEN LOOKING FOR 2 DAYS BECAUSE SO MANY PEOPLE HAVE BEEN BEGGING ME FOR IT, also thank you
Anyone that uses RethinkDB can help me with this?
(node:21397) UnhandledPromiseRejectionWarning: ReqlDriverError: None of the pools have an opened connection and failed to open a new one.```
i dont use rethink, but... wrong password?
Im getting this deprication warning... Anyone know what I am needing to change? Just let me know what piece of code you need
O I think this is the line thats depricated
let donatorRole = newMember.guild.roles.find("name", "Moosic Premium")
anybody aware of if discord.py allows rich presence code?
Do you even know what deprication is @earnest phoenix?
@gilded plank
weird
its not documented
here
i use this because of role names being changed
what is deprecated is the <Collection>.find("property", "value") usage
it isn't supported in d.js v12
huh
@latent heron Setting activity to Rich Presence or fetching the info from Rich Presence?
setting
so the valid syntax is <Collection>.find(r => r.name === "Moosic Premium");
@earnest phoenix
Not possible
wow really?
Why didnt they keep it the same?
i truthfully question that aswell
Its stupid that way
it looks like if you still have problems
you might need to map find it
because with find you cand do more things, like <Collection>.find(r => levensthtein.distance(r.name, somename) < somename.length / 3)
with .find(prop, value) it only do a strict equal
okay
@earnest phoenix is your solution solved yet?
or problem
Indeed. Thank you
i think you should thank @deep yoke
Is there another apierror? My bot wont recieve the ready event
skysilk just made a vps that cost $2.50/mo with decent enough specs: https://gyazo.com/8b8610e97c2ac4e1531cfbf7dc23494e
still beta so its free atm
You already mentioned that in another channel nut
So is discord having api trouble or not?
i am not sure
im not having issues
same here
Fuck. Its always my bot
I'm re building my bot. Today
oh okay
Same account tho
i have a module system for mine
it makes my coding alot cleaner
Idek what to call my system, you can check it out on https://github.com/railrunner16/mini-me.git
Hey ^^
i have a probleme :l
How to ban with Id ( like zt!ban [ID] )
Bcs i have !ban @[user] but if i try id , isnt work XD
get the ID from the mention 
precisely ... if the member is not on my discord and I want the ban with id
🤔
@earnest phoenix oh let me get u somthing
hm?
@earnest phoenix i can find it sorry
np ^^
@earnest phoenix if they provide an ID (ie args) just use <Message>.guild.members.get(<The ID>).ban( ... ); (if your on discord.js that is)
oh
that was it
dang thanks tony
but
mine was a tine bit different
oh ty :3
guild.ban("ID HERE",'ban').catch(() => {})```
@earnest phoenix
that isn't how you use it
GuildMember#ban
so it's like, <GuildMember>.ban({ /* things */ })
hm
@sick cloud i was trying to remember
im on mobile aswell
@sick cloud isnt there a guildOption aswell?
any reason my bot wouldn't be recieving the ready event?
yes
i was just double checking
// Ban a user by ID guild.ban('some user ID') .then(user => console.log(`Banned ${user.username || user.id || user} from ${guild}`)) .catch(console.error);```
that is not a thing in v12, which is why <GuildMember>.ban() is a better choice, as it works both on d.js v11 and v12
Is there a hastebin API? i googled and i saw multiple so im asking which one most of you use
there's only one official hastebin API
ok thanks
dang, there removing nearly everything
whats the base url
@knotty steeple https://hastebin.com/ i guess?
ok then 
idk
Honestly, Rethink is dead for me? I've never set a password, suddenly it's saying "Wrong password"
I've NEVER set one. Like now, nothing at all works
(╯°□°)╯︵ ┻━┻
yes its on my account, but I've never set an admin password
somehow it now exists
Ignoring --initial-password option because the admin password is already configured.
and trying to override it doesn't work
okay woo
i did something fancy
mysql is screwing up for me but ive managed to slow it down
@sick cloud no idea, what you did... I use RethinkDB myself and it works well.... 🤷
Can someone help me? I'm trying to send a "join-leave" message but when i'm trying to find a channel with that name there is warning:



