#development
1 messages ยท Page 412 of 1
So what makes your application different from the others?
How does it make you not use the abstract standards used in actual business?
Oh really now
yea
I just need a model
and location
tell mw what's the reason to use it
lets say all my actions will ever only need those headers
For my Discord.JS bot, I want to get each mentioned user from the message and have a member on each. The command expects one or two mentions. How would I go about doing this?
the guild of the message
the guild where the message was sent?
oh
that's pretty easy
message.guild.get(id)
then loop through the mentions
Well, there come a few things to my mind applying to all standards. First, they are tested. They just work. Second, the overhead is minimal. With todays technologies not noticeable in usage. Third, you save money. Fourth, if you have questions, there is a wide audience that can help you.
I want to extrapolate the IDs of each user, as they will be used in a database
Alright well if you want to make your own payload and protocol stuff then go ahead but imo it's more a headache than it's worth
I just don't think you're understanding
I fully understand ;P
I am 100% I don't need any more data in any of my payloads
it's a way to format data
nothing is to be done
The method I am currently using for fetching the mentioned users is:
target1 = client.users.get(Array.from(message.mentions.members)[0])
but it ends up as undefined
but if my application may ever only use those headers
why implement etf
headers/data
client.users = cached im not sure if that would work
@strange cliff
I think there was a method
to get a guild member
somewhere
Isn't it
guild.get
?
wew that's a spam
it may be.. I'll try
or maybe
guild.members.get <--- yea it's this
and then to get the mentions you just do message.mentions.users
if you want to loop through then you do message.mentions.users.array()
I'm still getting undefined from it. If I understood right, this should be my new line:
target1 = message.guild.members.get(message.mentions.users.array()[0])
message.mentions.users.array()[0] = user
you gotta add .id
get(<id>)
message.guild.members.get(message.mentions.users.array()[0].id)
try that
I feel like I am getting slightly closer... but now it appears to be dumping something else
Am I allowed to post a screenshot in this channel?
I think so
it appears to be logging the client?
lol
That's the output of console.logging the object
Is there a good single-line method to get either the user's nickname, or their normal name, depending on which is available?
I'm using nickname right now, and it returns null if there is no nickname for the user
what lib?
also this server is breakin mah bot because something returns null yet there should be a value for everything except the server icon 
discord.js
@strange cliff read up on condition variables
let nickName = user.Nickname != null ? user.Nickname : user.Username
Something like that, im not certain of the js syntax but your code would be close to that
You mean ternary operators?
js also has a null coalesce operator i think
let name = user.Nickname || user.Username;
yea it would like exactly like that
"let nickName = user.Nickname != null ? user.Nickname : user.Username"
(the ternary operator usage, not the actualy library d.js code that is)
how do you get votes?
Make a good bot people want to vote for
You can make a webhook server to accept incoming hooks from dbl.. or anywhere for that matter.
btw I need some help too
I keep getting insufficient perms error while the invite link asks for Admin perms
they might not give your bot administrator perms?
still it gives that error twice every second
How can I mask links in an embed on Discord.py async?
holy hell, thats a lot of declined bots in modlog!
haha yeah, does modlog also list approved bots?
cool thanks ๐
ah okay got it
poor guys they must have a TON of bots to go through each day
yeah looks like it, and they seem to be doing it quite timely
Could you tell me the manual to create bot - timer
is there a convention or good practice for the Bot-Command Prefix?
try to come up with an easy-but-unique prefix so that it doesn't collide with other bot prefixes
So I am using this:
let cooldown = new Set()
let Mcooldown = new Set()
It says set is undefined, how do I fix it?
By any chance are using glitch.com
In embeds, is there a way to make the thumbnail appear before the fields?
I don't think so
DBL API?
@low owl how so?
Huh?
You pinged me.
Oh, the voodoo magic
Well, I don't do much advanced Python so it kinda looked weird. But despite that, there are like 4 (or more?) loops in one method and things like that are most of the time are a good hint something is going on.
Does anyone know how to create a say command in discord.js?
All it does is get the default channel.
You also defined your lines by hardcoding them in and the overall behaviour of the method raised the impression that it does too much or does something I would normally not do. e.g. hard coding these strings and performing the checks.
I could simplify it, possible. But the loops are there for a reason. It's a multi step process.
I'd split up the method into multiple methods then
It would make it look cleaner, yeah. It works though.
Not like it matters for this specific case, but good code can be determined by 3 main categories. Readability, functionality and maintainability. While functionality clearly is there, it would be much more readable if it is split up and each method has a descriptive name. And it would be more maintainable because it's easier to find bugs and access smaller methods than seeing one big thing.
Just for future reference, if you work in this alone you can do whatever you want of course ๐
Yes, but if I was to work with you I'd need a "long" time to figure out what's going on
But yea, you do yours
Actually talking about functionality, what mainly made me think it's voodoo magic is that you have these strings hardcoded. I'd only determine a default channel by permissions and then just take the first one I come across.
I think it's a cool idea to also consider the names though. Have you ever heard of utility theory?
Hello ๐! Does anyone have any suggestions for databases with the dblapi? I am using them to get votes and want to remove them in 24 hours
# fight command
@bot.command(pass_context=True)
async def fight(ctx, user: discord.Member ):
action = ["whacks", "punches"]
weapon = ["chainsaw" , "knife", "bottle", "meme"]
embed=discord.Embed(title="Fight!", description="**{} {} {}** with a **{}**!".format(author.name, random.choice(action), user.name, random.choice(weapon)), color=0x176cd5)
await bot.say(embed=embed)```
Only terminal error is my broken error handler.
I need help, https://hastebin.com/apicenenat.js
Even though pickaxe is 0 it still says (you have already bought this item)!
@night imp i honestly think you could just store everything in a variable
in memory cache
:p
@low owl that is what it does but it trys to find the channels like general or lounge first.
@ashen quail that's a report command not a buy command
@gilded thunder You use async ๐ฑ
also, use f-strings, it's better and actually faster than format() ๐ค
it would look like
embed=discord.Embed(title="Fight!", description=f"**{author.name} {random.choice(action)} {user.name}** with a **{random.choice(weapon)}**!", color=0x176cd5)
It also does str converting on its own if needed
python 3.6
I want to know about this funny steam discord bot making application. https://store.steampowered.com/app/682130/Discord_Bot_Maker/ I think that is just kind of a scam because bot making is pretty easy tho.
Discord Bot Maker is a powerful bot development tool for the #1 text and voice chat service for gamers: Discord. With this tool, you and your teammates can take your social experience to the next level!ExplanationOne of the most prominent feature...
$9.99
198
what do you mean what does the bot use to make them
language
Yeah
It's not worth getting the program if you're thinking about it
It's also JavaScript
You'll be better off learning programming and making the bot by hand rather than using the program
I am not
wasn't talking to you
I already am
wait DBM uses d.js or eris?
d.js iirc
but what i know it looks gud but isnt gud
It's not good at all
ยฏ_(ใ)_/ยฏ
It's useful for those that have absolutely no programming knowledge
but it isnt worth
But it also has terrible practices as a whole when compiling the whole bot together
learning is cheaper and can help u when ur doing other stuff
Convenience > Security in DBM's mind
yes
it puts the token in an obscure location
which people miss
and put on github
which makes everyone sad
It's not even kind enough to include a .gitignore
and if it did people will be like "Wtf why is the bot not working when I redownload from github"
honestly, I am surprised it doesnt pack up the entire bot into a single file
xD
Is there any can solve problem about npm package?
Explain
oh
ok
Also my friend's prob
My friend made package with npm publish
And then
when he install it and try to require
ERR
What's the error
Did you check if it's on the website
wait a sec
I'll ask to him
screen shot of when it installed
file: ../parser
@topaz fjord Not available on NPM website
Hue...
I solved ...

https://hastebin.com/qozexehuqa.js ok literally my bot isn't responding to any command, does someone see the problem?
you add two new listeners on every message btw
60-66
also try using breakpoints/adding logging to see where it stops handling the command
move them outside the message handler
do the exactly same as you did for the ready one
dont put them inside any function
@quasi hearth did u get votes figured out?
@solemn obsidian https://gyazo.com/5ce71a4530f16846d3d268f9901be8e5 like this?
Uh
They meant move it outside the ready
you move the client.on(....) parts outside ready
you should learn JS and read the lib docs/some open source bots
Not the actual function itself
just like ready currently is
Okay... So, I have multiple js files for different functions of my bot and all of them login on startup... I'm guessing this is probably a lot of API spam and I'd like to avoid any problems... I keep everything in seperate files to avoid constant crashing from one section and ruining everything else but also being able to edit and restart specific parts of the bot instead of restarting EVERYTHING... I'm curious if there's a way to do this while still avoiding spam
Why in the heck are you logging into the gateway numerous times like that
^
Just include each file and hot-replace them when updates happen
Use try/catch and such to make sure nothing breaks your gateway
(and yes you can hot-replace interpreted languages e.g. JS)
but also like my console is being spammed from multiple things and keeping them seperated is kinda nice too
ver truth
but still
Is there like a way to log specific things into different places or somethin
Maybe? idk
there's gotta be something tbh
Natan probably knows how to answer that
if not someone should make it
I don't worry about logging to other places if I use JS so I don't know what's out there
(I imagine it could be as simple as opening a file for write and just keep writing to it)
But that also may not be efficient
but like into seperate console windows
prolly a way of doing it with http requests over and over but like, ew
ik but like a console would be nice idk
Log files are better
stdout only lasts as long as the program is active
Even then I think the console has a limit
It can only log X amount of lines at one time (then starts removing old)
ight ye
Also another question
Is there a way to store a content.match in a json so like store /(thisistest|thismaybeistest)/gi
in blah.json and then message.content.match(blah.whatever)
no like so i have swears.json and i want to put the whole content.match in there so i can spread throughout multiple content.match's
Regex?
ye
so like this
swears.json:
"var": "/(thisistest|thismaybeistest)/gi"
}```
index.js:
```bot.on('message', async (message) => {
if (message.content.match(swears.var)) {
console.log("oof")
}```
but it just doesnt idk
you can't store regexes in a string
inb4 eval(json.key)
you have to call (new) RegExp on it
So just add if content.match(new RegExp(...))
and ... is swears.var or no?
not quite
right now swears.var is your regex literal (i.e. includes //g)
you just want it to be the pattern
i can just do like content.match((thisistest|thismaybeistest)/gi)
also i'd avoid massive regexes
but i have multiple content.match's that look for the same thing and i have to change all of them when i want to change it
Use a set
just make a new instance of regexp
Set has O(1) check time, and regex is O(n)
thats some nice regular expressions
no clue how, any of this works lmao sorry

thank u guys
I transferred my bot to a VPS server and sometimes there is a few seconds delay with the bot response, I tried logging when the command executes but that shows up instantly, even tho the response only shows after a few seconds.
It randomly does it, sometimes it responses instantly and sometimes there is that delay. Any ideas? Please @ me.
@glacial sentinel that could be where the vps is located
What is the best location for it?
ny is a good location
Yes US is the best
So should I check the ping to see if it's the location or another issue?
My bot is in New Jersey and it runs very fast too 
@elder rapids wats ur ping
websocket latency ...?
@glacial sentinel if you have bad ping you would have delayed response
to dicksword
or a ping to discordapp.com
latency
Yes so if the ping is fine then it's another issue right?
yes
How do I check the ping in discord.js? xD
<Client>.ping
whats REST ping
If you want the REST "ping" aka ping to discordapp.com I'll have to quick login to my server
REST "ping"?
REST ping would be for example this
start = get_time();
await sendTyping();
rest_ping = get_time()-start;```
which some people use to ddos bad websites
icmp ping barely matters tbh
they ping the website a bunch of times
pffttt it does though
easier to spam http requests
dicksword ip nice
they cost more to process
also how the fuck did you get less than 1ms in ping to discordapp.com
You must be in the same datacenter
that's cloudflare
My bot is located at the USA, is that good?
Yeah but CloudFlare being < 1ms
Or any ping really < 1ms
Means you're in the same datacenter
maybe same city
That's quite hard to achieve without basically being in the same datacenter
I guess same city maybe
maybe same location
@elder rapids magic
i get ~12ms to cloudflare
im located in NY
@inner jewel What is get_time()?
pseudocode
and that is..?
so how to use it
You actually make the code that does what the pseudocode is doing
pseudocode is just an example of how real code would work
By no means is it even valid code
I think there is something wrong
๐
The bot is located at the USA, is that not a good location or is the host just crap?
host prolly
my internet?
where in the USA tho
^
my vps have 500mbps network
What host are you guys using?
Galaxygate
SamuraiSolutions
Yea thought so :/
YOO i just noticed my computer is 1 day behind LMAOO
Should I ask to move it to a diff location or just move host?
1 day ahead*
USA Virginia state, Loudoun County is the current location
all these messages said yesterday
The location shouldnt make THAT BIG of a difference
it's most likely your host
Are you using like free hosts?
No it's a paid host
with what
Youd be better using a free trial host LMAO
really? which one lol
i used to do that imma try and find it
The support said I could move it to UK or Singapore, will that help?
a free trial host for a whole vps server tho? sounds weird
yea
just for the bot
is good too
how do I set it up tho if not with a vps server?
it's not a vps
ah okay
command line hosting 
or something leave me alone idk
hmmm I'm not sure, I dont want to change host again
If the ping is that high there is nothing that can fix it?
its some cloud "layer" thing thats about all i can remember
oh wait wtf
maybe it took some time to load after restart
but it's still lagging like before
ight ther ya guh
So what is the issue
๐ค
Yea it also didnt make sense before because I was logging when commands were executed and that was instant
but sometimes the response message just lagged a few seconds
Pay for it
Pay for what
hosting
gud
So what could be the issue
also the host could be undergoing a large amount of stress at random times ya never know
client.ping
well free hosts can be just as terrible because they can go over even more stress because of more people flocking to them
It's paid
talking to @slim heart
either way there's no real way to know ig
and if the host is slow than wont the ping be high?
yes
so what should I do lol
the higher the ping, the higher the latency is
async: ```py
@bot.command(pass_context=True)
async def ping(ctx):
resp = await bot.say('Pong! Loading...')
diff = resp.timestamp - ctx.message.timestamp
await bot.edit_message(resp, f'Pong! That took {1000*diff.total_seconds():.1f}ms.')
**rewrite:**
```py
@bot.command()
async def ping(ctx):
resp = await ctx.send('Pong! Loading...')
diff = resp.created_at - ctx.message.created_at
await resp.edit(content=f'Pong! That took {1000*diff.total_seconds():.1f}ms.')
Using Python 3.5 or below? Replace the f-strings with 'Pong! That took {:.1f}ms.'.format(1000*diff.total_seconds()).
(note: might be overall less precise than ?tag ping command*)*
hmm
oh I just did ping again and it's going around 300-500
thats kinda normal i think
is your ping command coded properly
not the fastst
300ms =.3 seconds fyi
client.ping is the code
yes we know how ms work kek
i said it isnt the best
yea I dont think its' soemthing with the host
but its like, bareable
it's fine
it's good
300 is good
if it's like 1k (1 seconds) then that's bareable
I tried logging a command and the log comes out instantly even if the response msg is with a delay
so the log will be instant but then the msg only a few seconds after sometimes
It could be discord connection as well
it depends on wut ur tryna do
cuz like i have a censor bot so it needs to be fast
but if its just like some play bot it doesnt have to be like 2ms (its a joke)
hollup does discord have their own discord bot?
I can dm you an invite if you want to see
It's really weird because it's not consistent
Sometimes the response is fast
sometimes it lags
its most likely hostinger's stability idk
any shared host can have highly fluctuating response times
@inner jewel It's a VPS server
its still all hosted by the same machine
thas why its __V__PS
wow
so quick question im trying to make a simple music bot but it joins the voice channel but plays nothing anyone know why?
please use a paste service like hastebin
no u


I never used ytdl in js before sorry
o
How long does bot approval take?
1 hr to one week
๐
can I integrate the dbl API into my bot before it is approved?
so the server count and stuff will show up
umm idk
if you have an api token then I don't see why not
ok
so quick question im trying to make a simple music bot but it joins the voice channel but plays nothing anyone know why?
https://hastebin.com/umewiviyoy.php
error?
what is server.queue[0]
oh i know why now
yeah how do you use object not array?
nope it doesn't work
btw i got a error
servers.queue.push(args[1]);
^
TypeError: Cannot read property 'push' of undefined
at Client.bot.on (/Users/joe/Desktop/AI/index.js:39:19)
at emitOne (events.js:116:13)
at Client.emit (events.js:211:7)
at MessageCreateHandler.handle (/Users/joe/Desktop/AI/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/Users/joe/Desktop/AI/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (/Users/joe/Desktop/AI/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/Users/joe/Desktop/AI/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/Users/joe/Desktop/AI/node_modules/ws/lib/event-target.js:120:16)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)```
var servers = {}; should be that, not the suggested []
servers doesnt have queue
They have an object called servers, and adds a queue array to them. (if I'm using the right words)
yup
https://media.turtle-bot.com/f/OEXO7.png you cant shift something thats undefined
u didnt define what server.queue is
They do define it
yeah
it says it doesn't know what push means
^
TypeError: servers.push is not a function````
@glossy mason server.queue isnt a thing yet
@topaz fjord how do you make it a thing then
o wait
Why not?
its a typo
where?
the last error you posted you were trying servers.queue.push... when it should be server.queue.push...
I'm talking about that one
yup works except it doesn't do anything
well that's another thing xD
Where does it even add the link to the queue?
the server.queue.push(args[1])
it joins the voiceChannel then immedietly leaves
@earnest phoenix
@glossy mason it joins the voiceChannel then immedietly leaves
can't download it fast enough to play the song
ytdl is just broken
yes
right there
If it instantly leaves that usually means you dont have the opus lib, no sound was played or bad code lol
in this case
whatever is in the queue
or the queue itself
is undefined
ive tested the code
and
well
There
so
i dont know
you don't need that string wrapper
@quiet bobcat hi cute boy
how is it broken if i got it to work
the latest version helps
ohh
0.20.x
i have latest tho
i just re-updated
okay so
im on latest
and
it doesnt work
it just instantly ends the stream
even after doing npm isntall
@topaz fjord args[1] is the second thing but the first args[0] would be play
depends on the way you do it
i split my content into an array so args[0] would be the first part of the content for me
does this look like an RSA public key to you?
114887935139882574862728480767187394063659171930427504707340237699374996413020964063595438801252838859478074157817161266616611657540174621472059277047074195223243514118874837804786966449833761606439926477936379877837940856382634671827798781890419832426149959608466381224405333865310513505042556704799348206331
you could say that
I'm using the bigint library
then I'm doing .toString()
but it looks different then normal rsa keys
maybe I need to encode it using anscii
It's just numbers
@topaz fjord but the first one would be the one that says play then the second would be the link so that had to be the link
o
so quick question is there a way to fix this or something else you could use that works?
(discord.js) In a ReactonEmoji whats the difference between identifier and name?
@quasi hearth
for future reference you can use https://discord.js.org/#/docs/main/stable/general/welcome for docs
in discord.py, can ctx.guild be used in on_message and on_member_join events?
@abstract mango I still dont understand what it means tho.
@ruby dust if one of the arguments is ctx
@ruby dust at least i know for on_message, yes
the Message class should provide message.guild or similar
then I have to define the guild manually, thanks
(idk if it's Message but i'm assuming)
like what would name look like, and what would identifier look like as a string
so name would be ":" + "foo" + ":"?
i'd say it'd be just foo
ah, ok
i've never really worked with d.js because i use python most of the time
should be similar tho right?
ยฏ_(ใ)_/ยฏ
what does bot.on('messageReactionAdd') do? I
nothing
listens to the event of somebody adding a reaction yeah, not like it does something
it would register a listener if you provided a callback, but you didn't
well i do have a callback, but it doesn't log anything if i add a reaction to my message or log the correct emoji
even if i sent a message after bot starts, nothing happens

taking that
show us the callback @quasi hearth
hmm, now it seems to be working :p
console.log(rct.emoji.name);
console.log("ping");```
that's javascript
In the background: That is a point for Antonio. He's currently in the lead with 2 billion points in the game that everyone knows, POINT SOMETHING OUT WHEN NO ONE ASK!!!!
removes those 2 billion points
โค
:D
๐
...it would appear i might be bored enough to remake JDA just for an open source project so i'm able to complete certain things easier >.>
Speaking of experience, you won't
you're right xD i'm too lazy XD
That sounds like a great idea and surely solves your issues, but it's so much work
Yeah
@low owl I have time, i just have to not be lazy and find a way to make it fit well with the project xD
It is such a big project you would need A LOT of time and dedication to analyse, design and implement, then reiterate.
you underestimate just how little of a life i have ._.
i have the time xD
But do you have the dedication and experience? ๐
experience eh, i mean JDA is open source so it's just a matter of redoing that code to fit with how i have the project setup, it would look completely out of place if it was just a straight up copy paste
dedication yea :p
Lol
hell, even if it wasn't open source any decompiler would work >.>
lol
true though xD
if you want it to fit a project you might write some wrappers instead of copy pasting the library and editing it and then lose the perk of staying up2date
i'm probably out of date anyways so ๐คท
xD
I don't agree with your method of working ๐
@inner jewel That's not always the case
@floral stone yes
:p
i block bots that conflict with my prefix 
ahI see
bestideaever
I need to edit just the description.
I don't want to remake the embed variable
oh
embed = self.bot.get_cog("Event").pika_embed(None)
#edit embed desctiption to add something in front of it
return embed```
my stats
same

np lol
obviously the embed will not update itself, btw
you have to await msg.edit(embed=embed)
That's not what I'm looking for
I'm just trying to change the description of an already denied embed var
yeah
that's pretty much what i did. i changed the desc of the embed
wdym already denied
defined*
https://hastebin.com/ilekogiloy.pl
It says unexpected You
:p
how would you check if a user reacted to a specific emoji?
make a reaction collector
My bot is on enough servers now I would like to make a !subscribe command and for those that do to have it send info to all the servers my bot is on/ Is there a way to make my bot itself act as a webhook for IFTTT? and does Ouath2 have anything to do with it? Pretty new to all this still and want to improve the experience for everyone that uses my bot.
anyone here experienced in cryptography?
Is it possible to verify an rsa mac/tag using only the public key?
https://hastebin.com/ihigoluyer.coffeescript
For some reason when I react to the message it does not send anything
late but ya know store the message you want to check as an async'd var
no
@earnest phoenix uhm discord.js not sure but Java its quite easy
@ashen quail try adding, /global Set/ before you define your variable
/*global Set*/
ffs discord
if message.channel.category_id == 444270682549780500 is this a good check if the message was posted in a specific category?
Sure
One message removed from a suspended account.
??
@frail kestrel the mute command
i havnt started it i'm not sure how to
js
.....
what
not sure what that is
js is a language
discord.js?!
JS is a scripting language
Discord.JS is bad, use Eris
discord.js
ok
still typing
can you be patient
sure hon
- Presuming it's a mod command - you'd want to make it permission or role-based instead of anyone being able to use it
- Use
memberwhen checking for IDs or @mentions sinceusers are global - You may want to handle mute time (can be done with the
msmodule) and arguments (if there's not enough args provided in the message, do x)
thanks for the help i guess
One message removed from a suspended account.
pages like?
so i'm trying to make a music bot with ytdl-core then i heard that ytdl-core stopped working, is there a alternative to ytdl-core? btw this is my code https://hastebin.com/umewiviyoy.php
can i have a good bot maker list cause i want to make a bot that can do everything
there are no good bot maker that can "everything" you would need to code it
What do you need?
a link to make abot'
xd
:p
so i'm trying to make a music bot with ytdl-core then i heard that ytdl-core stopped working, is there a alternative to ytdl-core? btw this is my code https://hastebin.com/umewiviyoy.php
Lavalink or make your own shrug
When I had my music I didn't use ytdl core, I programmed it all myself even cipher shit
how do you do that?
Lavalink Github: https://github.com/Frederikam/Lavalink
you'll seem some language-specific alternatives in the readme
Anyone help me with this!!!
__
is there some way I can find out which part it finds malicious
... anything scripting related
do you have any browser extensions that could be affecting it?
Browser extension won't cause that

Unless the extension writes stuff into the textbox
yeah I was gonna say if it injects into the page it could cause it
what browser
Just check your description for script stuff
It's not difficult ๐คท
<script> is forbidden unless you're cert and it also likely checks <button click> or something too
You could try using :active for button clicks etc
It won't be exact but close enough
since when is fontawesome malicious? https://i.imgur.com/T1kDk7E.png
non-cert bot doesn't matter
no
Are u sure?
it's @earnest phoenix
As long as the user submitting is certified it works
^
inb4 dbl blocked font awesome
don't awesome
sh
Rip
If your user is not technically certified then prob
ye
ping
well rip
yeah I don't
Pingeth thy tonketh
@bitter sundial
Hes online so what can go wrong
nothing at all
Inb4 all ban
oh
Hey tonky
-bots @orchid horizon
@mint hawk 
@smoky tree 
@half lichen
@buoyant lance
eh
AekaBot Offline ๐
shh
Wut if they do a random check
let's hope they don't I guess
but it wouldn't be removed automatically, just a warning at first right?
You know if it's offline for a legit reason you can drop the reason in #305715157773058058
-bots @orchid horizon
They won't warn you for that
@mint hawk 
@smoky tree 
@half lichen
@buoyant lance
Tonky to the rescue
How wud I get total server count between multiple instances
Py rewrite 
len(bot.guilds) should do
that gets the instances guilds 
welp then maybe make an api and send count there
Create a set and add all the guilds to it and then just get the length of it? I don't know ๐
well one thing you can do, process guilds manually with the discord api iterate through the https://discordapp.com/api/users/@me/guilds endpoint
doesn't work for big bots btw
^ also that
i'd just save each shard's count in a database
okai
d.py gets all servers from all shards with len(bot.guilds), but I'm guessing (haven't tried it) that if you have separate instances of the bot it doesn't
did you use the token that was provided by DBL or the token of your bot?
@lilac owl
๐
Which token ๐ DBL's or Discord's? @lilac owl
DBL
when I run the post_server_count() method
you can see my code here
Did you try using any other method?
no, just that one (since its the only one my bot will be using)
Try as in to see if it is a problem with that method or maybe the token
do you have postman, if you have, try it there
I have Insomnia, basically the same thing
lemme try hold on
whats an example of a request I need auth for?
doesen't require auth ๐คท
Does it not ๐
@lilac owl you want /bot/{botid}/stats
and do a post request
in the header: add Authorization and your token,
then post stats according to https://monika.is-my-waifu.com/FfcodLmfa.png
it wants a server_count parameter
^ look up
it works fine ๐คท
or you can try this: https://monika.is-my-waifu.com/KbvThrMwB.png
huh, then it must be something with your token in the bot, maybe try printing it out and checking
or just the lib went bust, which is bad
yikes maybe try another lib
are there any others?
Just going to tell people now
i had issues using snekfetch to post/get stuff from DBL
i moved to okhttp (https://www.npmjs.com/package/okhttp) and that fixed the error of 403
not sure there is a python version.
well (only thing and) the thing that works is aiohttp
which language? @lilac owl
Python
you can see my code here
that deals with the dbl stuff
lemme look around for ya




