#development
1 messages · Page 639 of 1
No
If your token was on your github just regen your token
The old token is not important
So I do not really have to put in github?
No
If you don’t have experience with things like that you can put your token in a file in the parent directory and require it from the bot file.
It’s not the best practice but if you don’t understand it and can’t figure it out it still works
HOW tha fuck i can download quick.db module
npm i quick.db
npm i quick.db@latest
@earnest phoenix What is this
Idk github is trash
yes :/
why do you insist on using github?
Because idk
^
oh thats shit
cant you give heroku access to private repos
so you dont have to worry about token leaks
What is repos ?
plural of the word repo (repository)
You don't need github for heroku
It's optional
yes
duckduckgo ? : )
Use the heroku cli
How ? :/
Follow those steps yes
Ok
Thanks ❤
@late hill look
:/
Method Not Allowed
Oh
I change github on private and now it's good 😄
Finally

depends on whats your environment, where did you write it?
Which libraries/language are you using?
@earnest phoenix You have now asked the question 3 times in #general , in here and in my DM's please accept the answers we give in following guides as you aren't providing information (ie libraries/languages) to us.
@earnest phoenix f5
Someone know how this error happened ? (node:1948) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Access
(Causes)
Its when the bot try to do something without permission or other thing?
ok its good thx
Or trying to access a deleted channel/message
Basically it can't access (get to) something.
Okay so, how i can check if a user has the right permission to send a image in a channel?
In djs
oh nvm i'm dumb
guildmember's permissions property o.o
Hey guys can I ask you a question that will ask you if I can ask you a question?
Can I ask you a question that goes like "Can I ask you a question"?
@spare goblet yeah ik i'm just tired ahah
yeet ask2ask
By asking if you can ask a question, you have already asked a question so simply just ask the actual question. State exactly what the problem is so someone can help you as soon as possible.
If you're gonna do it, do it outside of #development
does this go in dev I don't know
bt
big problemo
``` else bot.user.setActivity(Type ]help to begin... , { type: 'PLAYING' }).catch(() => {});
^
TypeError: Cannot read property 'setActivity' of null```
worked for the past 2 months (since creation date)
now it doesn't
One sec
client.user.setActivity('YouTube', { type: 'WATCHING' });
@earnest phoenix how did you define bot?
it worked for 2 months so I don't know why u askin but
1sec
like all ppl do js const Discord = require("discord.js"); const bot = new Discord.Client(); const fs = require("fs");
what event are you doing the .setActivity thing in?
i got two
bot.user.setActivity(`over ${bot.guilds.array().map(g => g.memberCount).reduce((c, n) => c + n)} users...`, { type: 'WATCHING' }).catch(() => {});
bot.user.setActivity(`Type ]help to begin... `, { type: 'PLAYING' }).catch(() => {});```
my best bet is that the code is running before the ready event, therefore bot.user doesnt exist
Perhaps
yw
nah, the bot application would be deleted and you would get an invalid token error
👍
does the ready event not get fired or something?
yes
any errors?
nothing
probs cuz i log it somewhere
bot.on('ready', () => {
log(
`Guilds: ${bot.guilds.size} | Users: ${bot.guilds.array().map(g => g.memberCount).reduce((c, n) => c + n)} | Mem: ${Math.round(process.memoryUsage().rss / 1024 / 1024 * 100) / 100} MB`
);
cUse();
});```
the cUse(); is the activity changer
and log is a custom logger
that outputs date
anyone here hosting at glitch?
yes
now let me guess
your bot doesn't eh?
let me guess again
Discord banned glitch
thats the only idea i got
fak
@earnest phoenix they didnt ban glitch
phew
thats good
They only ban most of glitch's ips
Because of retards misusing glitch for bots
Like the porn ones, raids, etc..
hmm any alt
so my glitch ip got banne for sum reasun?
Glitch projects can use the same ip lol
😠
who used my ip REEEE
Did the ready event log anything?
no
Make a new "app", contact glitch support or just stop being poor and get a VPS
Add a catch to the .login()
Why not need? Doesnt login return a promise?
any recommended vps?
It just rejects
it is a promise
aight
A promise rejection wont give you anything useful if you dont catch it
@earnest phoenix hm is your plan?
is it worth?
Well for one bot the 3$ or 5$ is enough
ohhh okay thanks
If you arent sure just ask the support on there
UnhandledPromiseRejectionWarning: Error: Something took too long to do.
@earnest phoenix doesnt sound like a ip problem but yeah try catch behind the login
bot.login(config.token).catch(console.error);```
correct?
yes
can confirm, my dead bot hosted on glitch is down
nah my website on glitch is up
Website isnt discords api gateway
Ya stoopid
so glitch only has problems with discord ok nice
yea discord bans all of glitch's ips
and thats why u dont use glitch says a guy who uses glitch
for discord bots dont atleast, just bots in general. glitch is a good practice platform
Weird, I usually use glitch for some of my smaller bots, specifically ones that are small and it's fine.
Does anyone know if there is a limit in changing the playing status of the discord bot?
5 times per minute
One time per 20 seconds
other people can change their playing status more than that even without any approval for more
It says a file is missing
which part of your code is this erroring out? figure it out
don't think it's a node module, i think you probably requested to run/open /.../util/Util.js file in some sort of file
oh guys i fixed!
congrats.
okey thx
good work :)
@robust acorn bots like dyno and mee6 (which you may be referring to) have special rate limits. also, you can go ahead and bypass rate limits all you want but you risk being banned from the api
some libs wont even let you breach rate limits
Mhm, once every 20 seconds is more than enough.
Guys my Bot dont Work anymore... No Errors in the Code, the Server works fine, No Problems with the Database.. It dont come Online again. I already changed the Token and pasted the New one the Token Folder but it still dont works. Any Help?
is it hosted on glitch?
if it is i think glitch is banned now
idk
@Cyber28#0001 yes
f
What does that mean?
use a vps
@pearl jasper
@pale marsh Why?
im gonna try galaxygate
Idk
Weird Shit
btw does it work like glitch?
What can i AS a Free Alternativ?
use aws
Ok
guys i need loader.js
Hm?
@royal herald We don't share code or code something for you there. Since I noticed you're Turkish, burada kod paylaşmıyoruz veya senin için kodlama yapmıyoruz.
so the thing
like an hour ago
that never ready thing
catching the login does nothing
says same thing
"Something took too long"
@earnest phoenix where are you hosting your bot?
Any Free hosting Stuff for my Bot?
@stray garnet nope
Ah Shit
i feel like discord is blocking glitchs ips
i have 4 old bots still hosted on glitch, and only 1 of them is online
Why is Discord doing this?
there is nothing really out there for free to host a bot, at least nothing worth it
@west spoke i don't have a Raspberry
heroku works as long as you dont need disk storage
even then heroku isn't that great
Mine is based around storage
@mossy vine glitch
That's why I have 30gb set aside for my bot's files
since i got no money and glitch is the only one that saves files
Repl saves, but is insecure
wdym insecure
Token
ive always found glitch finnicky
@earnest phoenix thats the problem. i think discord is blocking ips where the spambots are coming from, which are in this likely hosted on glitch
@west spoke actually repl can be secure if you can do it right
;-;
Sometimes
no i wasnt really talking about that
thats insecure, no?
@earnest phoenix its actually super secure, i know the guys that work at replit. but anyways, what you can actually do on repl.it is u can use dotenv and itll keep it secure from anyone that isnt you. if you want to protect your code tho, youll have to pay and upgrade that
hmph
and how can i bypass glitch's ip banne :v
cuz i'd love to keep my code pribate
cause then just 50 copycat bots pop up
or the best part would be me forgetting to ENV the token, and someone using it for spambotting
my account getting deleted
no thank you
nvm it is
@earnest phoenix there's really no way to evade a ip ban from glitch except appeal via their support
i thought i read it somewhere
i'm talking about Discord banning glitch ip
there's no way to evade it
^
Why not use google/amazon?
Both offer free hosting for 12 months
@earnest phoenix i did happen to look more into it, i only found this which was a while ago, the best suggestions i can give you is to use a vps, aws from amazon, or google developer hosting
glitch staff comment on the thread
It looks like some IP addresses may have been banned recently, certainly not all, due to problematic bots. Unfortunately this can impact other bots which weren’t doing anything incorrect. If you let us know the name of the projects then we can review and move those like that for you.
but discord banned glitch alltogether
i still have a bot on glitch thats online
They probably only banned some of the IPs
If you get lucky and are running on the right one it will still work
yeah but she/he was ip banned
Glitch staff said theyd move projects to unbanned ip addresses from what i understood
Same
So ...
Me and a friend are working on a Smart Home Bot with discord for the hack week
how would that be tested for DBL?
since the commands won't really work unless you have like smart lights, etc
Weirdly, my issue fixed itself, I did absolutely nothing but my bot is back online.
must have had an outage
no, only that out of 4 projects work
oh well glad it fixed itself
and the uptime dropped to 80%
@azure rain make a live stream a d have the bot commands control the house in the live stream
Something like twitch plays
"Discord plays house lights"
if (!bot.channels.get(obj.pcid).permissionsFor(ch.id).has('SEND_MESSAGES')) incirrect how?
oh
oops nvm
Anyone can help me with that.
that's the stacktrace, what was the error
it is mostlikely a module that isnt installed
and is that in glitch?
yes
it is glitch
scroll up to the start of the error
idk how to add packages in gltich
glitch has a terminal?
add it in package.json
a glitch inside of glitch
hey, i create a simple bot in java, now, how may i move him to my discord? So i can test it?
Can u fix it i will send the link to edit ok?!
created*
This isnt the server that will do it for you
@urban vapor have you made a discord app?
ye
invite the bot to a guild
how?
never ever send your site to people who aren't trusted
where can i find him?
second he definetely never installed discord.js
added
that's all you need
still error
i'm not here to spoonfeed i forgot
-_-
@amber fractal thanks, it worked!
👍
Remix projects if bot not online
for glitch
Already told you the answer
where error
I seem to have an issue with this
client.on("ready", () => {
console.log("Bot Initialisation Completed")
setInterval(function () {
axios.get("https://api.torn.com/torn/?selections=stocks&key=KEY")
.then(function (response) {
console.log(response)
console.log("BB Ping FHG Executed")
if (response.data.stocks[14].available_shares > 500000) {
let q = response.data.stocks[14].name
let w = response.data.stocks[14].acronym
let e = response.data.stocks[14].available_shares
let embed = {
title: (q) + " (" + (w) + ")",
color: 938492,
description: "<&@591703566864089089>, There is currently " + (e) + " Available Shares for " + (q) + "."
}
message[591699619717578762].send({ embed })
.catch(function (error) {
console.log(error)
})
.finally(function () {
});
}
})
}, 10000);
});
(node:9076) UnhandledPromiseRejectionWarning: ReferenceError: message is not defined
at D:\Discord_Bots\ID_Bot_Test\ID_Bot_Test\idbt.js:27:21
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:9076) 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: 3)
^C
message[591699619717578762].send({ embed }) this line in particular I may have issues with
uh ye
it's not defined
as it says
also you just gave out an api key to something
which you'll want to regen
if you're trying to send to a specific channel you have to get the channel then send
client.channels.get('channelid').send('some message')

Alright thanks
guys how to dowland watcher.app?
yep
is that even related to discord bots?
yep
This is probably the stupidest question but I forgot how to make my bot ping tags, I tried doing this <@&591725617255546884> but it doesnt work
users: <@id> roles: <@&id>
Removing the & does that
trying to ping a role?
Aight Idk why but it just started working
By putting the server Id in role tags
you tried
Nice try
i mean i did what Codingpro said to do
One message removed from a suspended account.
@sage bobcat Try use pastebin as it helps with spam 
Or use the Synex so it helps other Devs locate issues better
Code blocks are a wonderful thing lol
can someone help me with dblpy
i did pip install dblpy but it says i didn't
does this mean pc = broken
What does it say
Are you trying to install the latest version?
I would have to see the error you are getting to figure out a solution
How are you running your bot and how are you installing dblpy
Yep
There were examples on the GitHub repo but okay 
One message removed from a suspended account.
One message removed from a suspended account.
Logging messages without the users' knowledge is against the Discord ToS.
^
One message removed from a suspended account.
if d.js idk how
One message removed from a suspended account.
I am trying to make my bot add a 1⃣ reaction but I am having trouble finding the ID for this emoji. It works with other ones but this one just seems kinda different
One message removed from a suspended account.
^
Didn't work
Should work, what lib you using?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
I miss understood, I thought you were also saving the actual file to the bot.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
MarkusawToday at 11:45 PM
I am trying to make my bot add a :one: reaction but I am having trouble finding the ID for this emoji. It works with other ones but this one just seems kinda different```
the emoji is constructed from two unicode characters, digit 1 and an enclosing keycap
1 + ⃣ -> 1⃣ -> 1⃣
Thanks, gonna try it
bot.event
ok
dblpy uses discord.py's events system
;-;
Thank you Cry, it worked. MVP
Goto your bots page, hit edit, scroll down until you see api section and hit test
@somber verge
lemme try it
It will send a test webhook to the specified url
For self hosting, it would be something like <ip> all depending on your code of course.
so if i'm self-hosting, i just put my pc's public ip?
I believe so.
And if you're listening to a specific port, you can simply add <ip>:<port>
you usually need to port forward home routers
I'm the last person to ask about port forwarding, once spent 2 hours trying to figure out how to forward to a specific port then figuring out my router doesn't even support it
my router does support port forwarding, but my dad (who configured the router) forgot the password
and even if i tried, i can't get that to work
I think you can reset your routers' settings (and password) by inserting a pin into a small hole somewhere on it
the problem would be that, we'd have to entirely reconfigur the router using an ethernet cable, and my pc doesn't like that router (i plugged another routher into that one and then connected my pc to the other one)
also my pc is the only one which would be close enough to not cause any problems
True true
DBL's website is https://discordbots.org
@royal fog No
Hey could anyone help with coding my bot, im trying to add in a welcome message with a picture like this (not this exactly like but similar) but want the welcome message to be customize like if someone does !welcome (welcome message) im not the best with coding and having difficulties with this
Wow
@stark flume try canvas-constructor
Its a npm package
Very simple to use
it work like embed
ok thxs
@stark flume that is part of an api btw
I personally use JIMP
ok, i can use javascript i prefer python but javascript is fin
One message removed from a suspended account.
Yes
One message removed from a suspended account.
One message removed from a suspended account.
Decent knowledge of it.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
I've already told you, i have made a mistake.
One message removed from a suspended account.
One message removed from a suspended account.
Honestly yes, but besides
One message removed from a suspended account.
You could fetch x amount of messages from the current channel, then map the collection to only grab the message content & author user+tag (if needed) and then use fs to write it all to a text file (joined by \n\n) and then of course send the txt file
why not POST the text to hastebin
and send the hastebin link
saves you from working with filestreams
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
I wouldnt respond to a user who isnt allowed to use a command. potential for trolls to abuse rate limits.
the d.js docs should have the function for grabbing a set amount of messages in a channel
One message removed from a suspended account.
One message removed from a suspended account.
link me
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
<textchannel>.fetchMessages({limit: 10}).then(messages => {
idk JS very well, but enough to help u.. I'm not sure what clean would be? is text => just a dynamic function?
FileNotFoundError: [Errno 2] No such file or directory: 'FUN_FACTS.png' how can I import the file?
Looking at so, I think you'd have to create the actual file yourself.
put the picture file in the same directory as the class that's calling it?
i tried it
output your directory, to make sure it matches
i don't understand sorry
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
<textchannel> is just a place holder, you'd have to replace that with the actual channel property yourself
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
@slender thistle good job
One message removed from a suspended account.
One message removed from a suspended account.
How is the bot supposed to know what channel you're referring to
One message removed from a suspended account.
And where is guild defined?
One message removed from a suspended account.
Discord.js doesn't define it if you don't define it yourself
One message removed from a suspended account.
maybe message.channel ?
One message removed from a suspended account.
guild isn't a defined property, you need to get it through another property
like message
One message removed from a suspended account.
message.channel is not a function
@indigo geyser use fs
fs if its a local file, superagent (my favorite) if its online
await channel.send(file=discord.File(fp, 'new_filename.png'))``` this?
oh
Yeah, don't think python has fs
But you can easily google alternatives
python alternatives to fs
ok tnks
try it
ok
One message removed from a suspended account.
@sinful lotus alot depending on the speed of your disk
How much connections do you recommend?
Connection? Are you using something like MySQL?
const createPools = [
{ name: 'settings_1', options: { connectionLimit: 3 } },
{ name: 'settings_2', options: { connectionLimit: 3 } },
{ name: 'mute_1', options: { connectionLimit: 3 } },
{ name: 'mute_2', options: { connectionLimit: 3 } },
{ name: 'api_1', options: { connectionLimit: 3 } },
{ name: 'api_2', options: { connectionLimit: 3 } },
{ name: 'api_3', options: { connectionLimit: 3 } },
{ name: 'api_4', options: { connectionLimit: 3 } },
{ name: 'patreon_1', options: { connectionLimit: 1 } },
{ name: 'patreon_2', options: { connectionLimit: 1 } }
]
connection pools
bascially I separated the pools
uwu
so Im wondering if how much connections I can have to optimize speed + perf
the connection limit is the # of connection available
I think the obvious solution is to have your bot have a shard for each user and each shard should a minimum of 500 connections
500 is too much I thinnk so lmao
and I cant also have more than 32k connnections per mariadb instance
Im always having troubles on optimzing my maria db instance
lmao
What are you doing that you have to worry about mysql limits
It depends on how well your tables are made, indexed
The structure of your data etc
And most people make a pool of connections and keep reusing them
const createPools = [
{ name: 'settings_1', options: { connectionLimit: 9 } },
{ name: 'settings_2', options: { connectionLimit: 9 } },
{ name: 'mute_1', options: { connectionLimit: 5 } },
{ name: 'mute_2', options: { connectionLimit: 5 } },
{ name: 'api_1', options: { connectionLimit: 3 } },
{ name: 'api_2', options: { connectionLimit: 3 } },
{ name: 'api_3', options: { connectionLimit: 3 } },
{ name: 'api_4', options: { connectionLimit: 3 } },
{ name: 'patreon_1', options: { connectionLimit: 1 } },
{ name: 'patreon_2', options: { connectionLimit: 1 } }
]
for settings, its the command guild id as unique key
Different databases?
No no but the library is weird
It makes a pool for every table?
Rather than making a pool for the whole database
thats the pool to a database
basically thats my pool at that db Kashima
whole in whole
this.pool = this.client.poolCluster.of('settings_*')
settings will use the settings pool only
mutes will use the pool for them only
something like that
Well you usually have a pool of connections for the whole database
And then you run queries that affect each table
yeah it is a pool for the whole database
const createPools = [
{ name: 'settings_1', options: { connectionLimit: 9 } },
{ name: 'settings_2', options: { connectionLimit: 9 } },
{ name: 'mute_1', options: { connectionLimit: 5 } },
{ name: 'mute_2', options: { connectionLimit: 5 } },
{ name: 'api_1', options: { connectionLimit: 3 } },
{ name: 'api_2', options: { connectionLimit: 3 } },
{ name: 'api_3', options: { connectionLimit: 3 } },
{ name: 'api_4', options: { connectionLimit: 3 } },
{ name: 'patreon_1', options: { connectionLimit: 1 } },
{ name: 'patreon_2', options: { connectionLimit: 1 } }
]
its just categorized so a module of my bot will have their own pool to the database
Oh why
basically the api part will only get the pool on the api named pool
I doubt that this is needed
so settings have 18 pool in the database
mutes has 10 pools
api system has 12 pools
patreon has 2 pools
of connections in the database
its just so if one of my pool clusters fails and reconnect they can still use othe other pool
something like a high availability stuff
before I used to cache the settings in a map
but it gives me a bit of problems so Im gonna let it query directly to db
Well that could cause bottlenecks and lag, it isn't recommended
You can use something like that https://www.npmjs.com/package/node-cache
And invalidate the cache entry each time the settings of the server get updated
How many guilds your bot serves
yeah thats what I used to do before on map but sometimes its failing to sync causing issues
Im thinking of what they say as redis as cache
but Im not sure how do that work with mysql
Or you can use redis to store everything
that should have been my first choice if not for my sneaky co devs that want to use sql
now I need to redesign a lot of things again pssh lmao
Caching with redis is basically the same thing with this https://www.npmjs.com/package/node-cache
Both of them store data in the ram
yeah but probably I might just use redis directly although Im still thinking about what should I take as a design choice
I can also implement partial caching like when the settings does not exist in cache thats when I should update it
fetch it
but webdashboard will be my next problem there
You can use redis over mysql to cache things, but your application is probably not that huge
Like, mysql can handle tons of requests
The only bottleneck would be the latency
its local hosted
But it depends on where you host your mysql server
so I dont think latency will be a problem
Go ahead then and query the database in every possible msg that can contain a command
6ms per req
but I'll probably switch to nosql in future
depending on how things escalate
also last thing if you dont mind
Mysql is fine, you can probably upgrade to mariadb
also I use mariadb right nnow
since I believe it is the more optimized version of mysql?
Yeah
Also one last thing, mariadb has settings as far as Im aware of?
is there a good setting there that I might want to change
Nah not really, you don't have to modify anything
I have been serving thousands of visitors with a single mariadb instance
It can easily handle millions of rows
Just don't do things like SELECT * FROM guilds
And then loop over in ur code till you find the guild you want
yeah im gonna logout now if you want anything else let me know
sure thanks 
i need someone to join my glitch project and help edit $ to e@
what?
wdym
nvm i finished it
Rofl glitch

Is it possible fo change the discriminator of a bot?
No
Yeah, you pretty much just have to get lucky.
How I make a invite of a server that my bot is in
eval bot.guilds.get('id').channels.random().createInvite().then(invite => message.channel.send(invite.url) );
Thx
It didn't work yo
@earnest phoenix
error?
change random to first()?
random is better
I gotta wait until my bot goes back online
first() is generally a category
not all times
Its working for me @earnest phoenix
Show me what do you do
This is what I'm doing
e@eval bot.guilds.get('584813944611274752').channels.random().createInvite().then(invite => message.channel.send(invite.url) );
I get no response back
Tf
It says missing perms
Possible way:
- Invalid id
- No channels
- You have client and not bot
Or missing perm
yes
I have let bot = client
Is it not set up correctly
[ '414229698445574144', '251123922005786624' ]11:46 PM
What
Why do you send an array??
Wait how did I lose my devs
I had var devs = [ '414229698445574144', '251123922005786624' ]
I lost it
okay??
and how i can help u
Shits still not working
Because the bot doesn't have the permissions on the server
Maybe a private server
So dont insist
Ok
Yup ur right it's private
what does vps do?
hmm
i tried galaxygate
I recommend Contabo
if you are finding a cheap vps
As for what vps is
its somewhat a "Dedicated Server" but at the same time it is not a dedicated one.
on a vps, you are all sharing a part of a dedicated server
basically VPS offers more power
than a shared hosting as long as its not open vz
cause openvz is usually overselled than kvm
Is there a function to get all the role ids of a member
No, but you can loop trough all roles of a member and get their ID
Thought so, thank you

wat
its muted seems legit
Muted for responding to other bots
how would I add a bot I have created to DBL?
]]faq 1 --clean
My bad, I forgot adding anti-bot messages while remastering my bot! Fixed now 😄
Unmuted!
Thank you!
not really
the image isn't appearing
or rather not that much
also make sure the embed was not deleted
embeds can be deleted now
probably
@echo pasture > It's just a user who accidentally tagged you instead of e@ban.
ok lol
this is why you dont use @s in bots
finally was able to add the background to my server page, you have to set a server invite banner for it to work!
How so?
Did you add it to the website already>?
]]faq 2 -c
it depends on how many bots are waiting
At the moment it’s looking like a week or two but it could change as the moderator count is going up.
yeah, it won't take a week tho trust me. The moderators are active and know their job is important so a lot of them hop on and go through a dozen bots or so and then stop. There are also a lot of new trial moderators and moderators in general that started.
Mhm, but please remember that we go in the queue so at the moment it should be getting quicker.
And how long the queue is.
Hello, who help me to do a command that it verify if a user has vote de bot.
You can check the DBL API docs in your bot editing page on how to do that.
I clikc in Generate Bot api key?
You'll need an API token to access the API, yes. You can do that on the bot editing page
Then don't use the authorization field
okay
Hey, I have a question, I have saw bots around on DBL with the description like this, could someone send me the html usage of this cause I've been looking into it.
it's markdown, not html
if you don't know anything about markdown, try using some generator or something like this:
https://www.tablesgenerator.com/markdown_tables
you can make tables with html i think but my html sucks so
it does render as html tho, so you can inspect element it
Markdown supports tables?
yeah, mine uses md
TIL
it does, but its a pain to write
true that
let channel =message.guild.channels.find(channel => channel.name == "name");
const dbl = new DBL("TOKEN");
dbl.webhook.on('vote', vote => {
channel.send(`El usuario con ID ${vote.user} acaba de votar el bot`);
});
Is this correct?
don't use .find("name", string), it's deprecated btw
Yes, but the rest are okay?
message.guild.channels.find(channel => channel.name == "name");
let channel =message.guild.channels.find(channel => channel.name == "name");
const dbl = new DBL("TOKEN");
dbl.webhook.on('vote', vote => {
channel.send(`El usuario con ID ${vote.user} acaba de votar el bot`);
});
and how I create it
and define dbl
I'm fairly sure they meant the DBL one
Fair
What TOKEN i need put?
You can get the auth in edit page as well as token
I'm on phone so can't really help much rn
okay 😦
If it is possible to print some icons in messages like emoji?
I'm parsing items for game from API and would like to print every item with small icons assigned to them.
yes you can
how?
ah.. i would like to print them from url
You can make it an emoji
like the image?
right
Then paste it in there
.jpg image from external site
Then delete the emoji lol
Like make the bot create emoji, send message, then delete emoji
@native thunder
If not then make it a tiny image and make it show up as image preview
iaraToday at 12:08 PM
Like make the bot create emoji, send message, then delete emoji```
for people who haven't seen the emote and don't have it in the client cache it would appear as regular text
Oh right didn't think of that 🤔
So i would like to show small icon like 
From url https://cs11.pikabu.ru/post_img/big/2018/04/22/6/152438895015866094.png
create a guild, invite your bot to it and upload your icons as emojis, then you can use those everywhere else, since bots are able to send custom emojis anywhere
as external server got few thousands of icons... i cant download them all
You can use your own emojis for it
<:NAME:ID> for non animated emojis
<a:NAME:ID>
for animated emojis
then again
once you upload use these ^
Bot can use other server emojis in all its other servers
so you suggest to upload ALL icons?
This is not the good solution
it's the only solution
Ok, but i don't want to create 50servers to upload ALL emojies
Yes
Then I'm afraid you haven't found a solution to your problem
Just make the bot make a few servers and then create emojis of the url
heh.. i was hoped there are some better way to do it
Depends on what you're trying to do in the first place
i was hoped will be some way to print icon in message without importing it to server
A tiny icon, you'll need an emoji. Wanting to embed it or show it as avatar in embed, then you use an embed
There's no other way(s) in my knowledge for my understanding of your needs
Wait @spare goblet, is there anywhere I can actually see how to use the DBL markdown format.
Cause the generator does not look the same as the DBL ones..
Well it does work but the generator looks weird and seems to be complicated to use, I'll probably figure it out tho.
@earnest phoenix hi. Normal markdown is basically the format. If it seems to not work you can always find another but it generally looks like this
| titles | more title |
|---|---|
| stuff | more stuf |
| rows | more row |
It's just easy to use a generator if you don't know any md
Yeah I managed to do it 😃
Can someone help me with an error I have? I use Js for my code.
I'm getting an error that the discord.js module can't be found, but it is there and fully up to date. If anyone can help me with this thanks so much
Oh that worked. Thanks so much
No problem. 
What version is canvas package? e.g.
You must select one of the libraries
In the library drop down
@earnest phoenix lost on what you’re asking
i mean
You want to know the version of canvas rn?
Head to npmjs.org/package/package_name and there’s a versions tab
thanks!
So in your case https://npmjs.org/package/canvas
2.5.0
what here
@slim heart not exactly
it basically means that you are fine with updates of that version, as long as theyre not major
wrong one lol
@earnest phoenix
@slim heart this is lib?!
Hello
hey im not good in english
as in making a dashboard?
so what put here!
Yes
@slim heart yes?
@royal fog leave it empty
XD
Sorry look above I was wrong about the ^ cyber corrected me
well
@mossy vine
👌 just was pointing it out instead of messing you up in the possible future
so when 2.6.0 comes out, the package will be basically updates
Yes @mossy vine making one
thanks
Any article or guides ?
@brave anvil if you have a specific question you should ask it. i highly doubt anyone would guide you through completely making one
i dont think there are any
I made a guide on my yt but it’s trashy lol
Basic understanding you’ll need is endpointing, as in things like express, you’ll need an open web server and a place to host the website and you’ll write front end JavaScript to interact with the endpoint
Making a status page on my web
I have an open webserver
Its rethink db
I have currently 3 servers connected to it
3 pcs making 3 server points
That’s not a web server that’s a database. But you’ll have an express server to interact with via front end to interact to your backend database
Yes
Look up some guides in express if you don’t already know how to, and you’ll pretty much be set, the hardest part tho keep in mind, is authenticating users because you don’t want to just leave it open
Yea so you check that when they send it in an auth header is recommended
Yeha
I could send dashboard but its
Ummm
Hosted locally and Its gonna be put through to a Nginx and droplet soon
Using Nginx and Digital Ocean
Ok well good luck, sounds like you know a bit what you’re doing, if you need any specific help feel free to come back and ask
👍 if you wanna show it off go to #memes-and-media since it’s not dev related but gj so far.
Thatnks


shit i forget people use other things


