#development
1 messages · Page 1413 of 1
the more background shit rtx voice has to filter out, it loses quality
like an mp3
one guy had a leaf blower, and he put the leaf blower right up to his mic
oh lol
you could understand him and only hear him but it was like he was in a tin can
yeye
but for a busy house, where you got someone microwaving dinner, and kids screaming and fighting, and oven on, loud fans in pc... it filters all that out real well
and it barely uses any cpu
or gpu
thats the main reason i got it
yeeeyee
because that screen is 1920x1200
ohh
that stream is using RTX voice
Suggestion, game down a little and mic up a little, or closer to you
you gotta just talk to yourself until someone joins lol
when i played VR stream i was talking shit to the peds lol
you got a greenscreen brain?
look at 7:40 and wait till the car goes past, can hardly hear you @green kestrel
Yeah I got a greenscreen
Nn
You probably meant to use the .updateOverwrite method instead of .overwritePermissions
see here
This does not match the signature of the .overwritePermissions function because the first argument should be an array or collection of overwrites.
However, it does match the signature of .updateOverwrite
oh
let me try it
@sudden geyser yeah it actually work, everything is good but the only problem is that it didn't really create the muted role for my server.. 😂
do you know how to fix it
It didn't create the role with the correct settings because you didn't pass an object with the correct structure: https://discord.js.org/#/docs/main/stable/class/RoleManager?scrollTo=create
The object has a data key, which is where you'll store stuff like the name, color, permissions, etc.
So, instead of .create({...}), use .create({ data: {...} })
@sudden geyser thank you, it's done, it added muted role to my alt account and it muted for some time, but my alt can still type... 😂 I'm really sorry-
this is my code atm
I'm using discord.js. I want to write a code to check if there is a message starting with the id of the user who sent the message in the specified channel, but I do not know how to do it. Can anyone please tell me how to do that?
let id = bot.db.get(`${reaction.message.guild.id}-close-${user.id}`) id.delete()
if i set the database as an embed that was sent how would i be able to edit that embed or rather delete it
can you check if the channels have the role disabled from sending messages and adding reactions?
@sudden geyser yeah I checked and the muted role doesn't have them disabled
it's completely like the normal new role without disabling permission
If you delete the prior roles and try again, does it add them?
@sudden geyser it works!! thank you so much!❤️
use message.content to check the contents of the message, then apply this on it
https://www.w3schools.com/jsref/jsref_startswith.asp
@jaunty surge avoid using var on your code
How can I make a webhook integration, so that i can see servers my bot is added to?
you dont need a webhook, discord emites GUILD_CREATE event whenever a guild has added ur bot
just use the bot to post it on a channel
you using py?
hmmmm i can't find GUILD_CREATE in the 'ocs
GUILD_CREATE are events emitted by discord
then there you have it
that should be fired whenever you join a new guilçd
it probably returns a guild object
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
did you know... technically clients can own guilds
yes, under 10 servers
or something along those lines
but thats completely offtopic to what you asked
i'm scared of fucking this up, lmao
hold up
this is so ez
im not gonna verify this bot
nah, not giving up my privacy for some bruh bot
and get into legal issues. Sounds like a good plan
can't get into legal issues if they don't know who you are
it's like ddosing without an ip address
hmmmm
anyway
yeah surely the governament doesnt have any way of tracking you
not doing it so it won't matter
welp, its your problem
im arguining that your reason is invalid
if you simply dont wanna do it, its on you
and i respect that
@opal plank thank you for the help
Idk if you've fully made up your mind, but Stripe and Discord are both very reputable companies. They only use your passport in case your bot is a legal issue, and if they'd have to be in contact with the government.
See, I don't like mass-surveillance
That's not mass surveillance.
You shouldn't worry about it unless you're bot violates the law.
They only use it in accordance with federal government, which already has your information, it's just so they can put a name to the bot.
Stripe already has your credit information. Because you have Nitro.
Discord doesn't use the data from your passport.
@umbral zealot who said i paid using credit card?
thats holding you accountable for shit you may do in the future
i can see that
I'm just not interested in this current time to give my privacy away
However you paid for it, Nitro would need billing information, and it goes through Stripe.
once your bot gets in too many servers it can cause a kurfuffle
But hey if you don't want to grow your bot, that's 100% up to you.
You gave your privacy away the second you made a Google search 🤣
I don't use Google
Ik this is kinda off-topic, but I personally feel like it doesn't matter. So what if they show me effective ads? Big tech is just making money of my data, there's nothing criminal they do with it. lol
thats precisely what i said before. If you dont wanna do it, i respect it. Im arguing that your reasoning is invalid imo
im not trying to convince you to do it
nor to not do it either
You don't need to "deal" with it anyways - if you don't verify, your bot stops at 100 guilds, and no one can add it.
Saying privacy doesn't matter because you have nothing to hide is like saying free speech doesn't matter because you won't speak
yup
Let's stop this conspiracy theory "us vs them" conversation ^_^
to put very blunty, we all here are nobodies. We are too small for anyone to even care about us. We are simply a number on their graphs
perhaps i shall look it over
this is my bots users
think every single one of them thinks: oh, there are bots here, its probably storing all my messages and selling it to advertisers?
theres a clear line where concern becomes madness
Exactly lol
not only you are liable for stuff, the companies are also legally binded
they want you to be held liable so THEY dont have to deal with it
like Youtube
with copyright strikes
why should youtube deal with pirated content on their platform?
Ye, they can't do anything with your data or two things would happen:
• PR lol, the worst disaster any company could deal with way worse then legal 😂
• Lawsuits lol
screw it, let the creators deal with the problems they created themselves
if your bot goes on a rampage deleting every server and there is legal stuff involved, discord wont wanna have a pint to do with it
they'll throw all responsability to you
most likely*
working on new bot, i cant wait for my new server to come in so i can switch from this low power cpu
Anyway
Hey, I'm having some issues with this because of "invalid syntax" can someone help me out? async def discord.on_guild_join(guild):
yes that's not valid
You're probably looking for the @client.event decorator.
remove the discord. part and add the @client.event decorator.
client should be whatever your client has been defined as (e.g. bot, client)
i love you

Like this? @client.event async def on_guild_join(guild):
@sudden geyser
should be fine
What about if i only wanted humans to trigger bruh?
it's unrelated to the current question
It's got to do with my message.content, it's totally unrelated from my first question.
Whats the difference between doing: if(!message.author.id == `my id`) return;
and
if(message.author.id !== `my id`) return;
The first is invalid, the second is not.
Because, the first means if(false === 'my id') return
Ohh, So if(! something ) is saying if something is false/not true == something?
So what does !== do then?
No, what this means is that ! means "NOT" and it automatically converts the thing into a boolean
! anything that's truthy will turn it into false
Whereas !== means "NOT Equal To"
! by itself converts something to true/false. !== checks if something is not equal to something, which is the equivalent of writing (if (!(message.author.id === "myid")))
so (!a == b) means (NOT a == b) but (a !== b) means (a NOT == b)
Oh ok
it's... actually to be honest, javascript is usually read in the same order as english
as long as you understand the syntax
"if a not equal to b" reads much better than "if not a equal to b" 😂
I'm attempting to post a channel when a new guild is joined. This is the code:@bot.event async def on_guild_join(guild): channel = bot.get_channel(782070830649704459) await channel.send('Nice! Bruh-bot was added to another server. Info about the guild. Name =`' + str(discord.Guild.name) + '`. ID = ' + str(discord.Guild.id)) but it outputs this: Nice! Bruh-bot was added to another server. Info about the guild. Name =<member 'name' of 'Guild' objects>. ID = <member 'id' of 'Guild' objects>
discord.Guild is a class, you need the object, guild is your object
so just guild.name
so i got one question
@earnest phoenix king
for example i want to do a command "<random"
bot says me: say a random number between 1 and 5
you'd need Math.random() for that
i say number 2 and bot says me great job
https://stackoverflow.com/questions/4959975/generate-random-number-between-two-numbers-in-javascript
oh
that's not the main question tho
i want the bot to react on my answer
for example if i wanted to do reaction role commands
it says: choose a channel
That's a completely different question lol
then i write a channel, and it goes to step 2
What you need then in awaitMessages
here's an example (a very basic one) : https://anidiots.guide/examples/miscellaneous-examples#examples
channel.push(`channels`, "782078354902745129")
TypeError: Target is not an array.
i am trying to use .push to the DB but i can't
It's quick.db
push() adds an element to an existing array, nothing else
I'm getting an error with this: requests.post, it's giving me a syntax error
i imported requests
what's your code though
requests.post('webhook', 'message')
@earnest phoenix
not enough to see the syntax error
here's the full code:
am i allowed to make the Join Support Server button more rounded, and if so how
I'm now getting this error, I found the other one out @earnest phoenix "content": "`" + str(message.author.id) + '` / `' + str(message.author.name) + '` just added the bot in `' + str(guild.id) + '` Awesome for them!' NameError: name 'guild' is not defined
what's your full code
Guild is certainly defined because the bot uses it earlier..
my guess is as good as yours if you dont show the code, how am i suppose to work with this
hold on
i think i may have figured it out
Yes, and increase the border-radius value
alright
What css selector do i use
wait shit did i have @ on
the selector should be #support

thank you!
Does anyone know how I can login to one of my postgresql users called exo_user in linux? I want to login to exo_user and then create a database inside that user
Servers get tokens?
but you wont get it yet because you need a approved bot
server?
Server doesn't have tokens
webhooks
I'm assuming there's a documentation on it?
About webhooks, yeah
but you will need some coding experience for that
otherwise, there's bots that do something like this for you
is there anyone here who uses tiny.db on py
plz ping me
i have a weird issue where the name of an element in a list changes to null a while after i change its name in the json file
it happens on random occasions and it is messing up my bot a lot
plz help
Anyone help me how to code to set status of bot
If you mean dnd or online etc. it's setStatus() or setPresence()
.setStatus('dnd')
message.author.send('test');
Gives me a warning cannot read property of null
hi
author is null
message.author?
well, i get the dm
then that's the wrong line onwhich thr error occured
if i remove the line there is no error
uhh what
there is also :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().
dm wat?
n00ds
i have hosted my bot but when i on my pc then only it run's my bot how to make it 24/7 online
host it on a VPS
and also on is not a verb it's a preposition
nvmd,i am back
that's the error
then it just says that i'll have problems in the future
@earnest phoenix
We all will
lol
Try logging the object
U sure its { image }?
Nah! setImage exists
I Know

now its message.channel.send
broooooooo
change await to async
Bro!?!?!?
you dont need {}
you really dont
That is called object destructuring
yea
how not?
Is anyone here free to help
I know nothing bout making bots
I've reached the developer portal
And created a bot
Thats it
Can anyone help me convert my python code into this bot thing pls?
Its no major coding in python...... only some if else statements and a few lines of the datetime library
? bruh
are you sure you know what is python 🤨
English isnt my first language
mhh ok so to be able to interact with discord
with python
you need a wrapper of the discord api
Ohk.....
and since you're using python, you can use discord.py
there is a small bot example
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='>')
@bot.command()
async def ping(ctx):
await ctx.send('pong')
bot.run('token')
Ohh
replace 'token' by the the token of the bot you've just created on the developer portal
I've never used the async
Why this code don't get me all bots?
const botssize = message.guild.members.cache
.filter(m => m.user.bot)
.map(m => `${i++} - <@${m.id}>`)
.join("\n")
is your bot over 100 servers ?
Yes
Have you the server members intent ?
Oh..... like I've seen codes using it... like people do asyncio.sleep(and they lut time here in seconds)
its a privileged intent
*put
No
I really need to learn
My bot is verified
without that intent, over 100 servers, the cache will become messy
I know nothing
verified means nothing, verified != having privileged intents
then learn python first since discordpy is quiet a difficult library
Bro i have anti kick
But don't work?
I am know some basics
Like very basic things
If else, for while loops
So technically i know nothing

then you should really learn more about python before trying to make a bot with discord.py 
How i can turn on intents on verify bot?
You need to request them
For supporter?
join discord-developers server and check how to request privileged intents
I used to play a game once.... it is in chinese so u will not understand, but i made a calculator for that game premium currency using python little bit knowledge that i have
mhh yea this is some basic programming
Yes
learn about more advanced concepts, like classes, functions, decorators...
and decorators
Yes
for example, this @bot.command is a decorator
Yes
I'd need to decorate it with @bot.command
Oo
How can i make a loop that runs a specific amount of times? (Py)
for i in range(amount)
or
Specify the amount of times it runs +1
Ty
i = 0
while i < amount:
i+=1
Coz for loop run is n-1
for i in range(len(array)): works?
yes
Ohhhh right
Yes we can def multiple functions inside one another
So that will be used
Im trying to understand
Ty larko
In the meantime is there something that just takes my code and spits out a bot lol
LIKE THIS
for example
def smart_divide(func):
def inner(a, b):
print("I am going to divide", a, "and", b)
if b == 0:
print("Whoops! cannot divide")
return
return func(a, b)
return inner
@smart_divide
def divide(a, b):
print(a/b)
what the fuck is that screenshot
this will output this
>>> divide(2,5)
I am going to divide 2 and 5
0.4
>>> divide(2,0)
I am going to divide 2 and 0
Whoops! cannot divide
Ohhhh
and discord.py actually uses these decorators to register commands, events...
and you can also have multiple decorators decorating one function
so you need
@earnest phoenix store the message object of the embed
^
and then do message.edit(editembed)
Do you know site where i can host my discord.js bot 24/7 free
there are no good ones
something.host ?
cheap alternative would be a raspberry pi or a NAS at home (if aviable)
never heard of them
anyone help me how to code a status of bot like this
your screenshots are really cursed man
lol
check the docs of your bot's lib to set a status like that
My bot is with changing status
using discord.js I guess?
Streamin {servers}
glitch
bruh what?
i use discord.js ;)
glitch.com is not a lib
it is
its site
then just read the docs
the heck are your screenshots?
get lightshot or snipping tool
oh I thought you were the one asking for help
no
this man is lost, he doesnt even know what is a language/lib
lemme just screenshot what @cyan mulch is probably referring to https://cdn.hopefuls.de/FtaH
something like that
wow thats ugly ;)
at RequestHandler.execute (/rbd/pnpm-volume/c6816d60-b989-4870-9a98-e134ec16d4cc/node_modules/.registry.npmjs.org/discord.js/12.5.0/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
at async RequestHandler.push (/rbd/pnpm-volume/c6816d60-b989-4870-9a98-e134ec16d4cc/node_modules/.registry.npmjs.org/discord.js/12.5.0/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
at async GuildMemberRoleManager.remove (/rbd/pnpm-volume/c6816d60-b989-4870-9a98-e134ec16d4cc/node_modules/.registry.npmjs.org/discord.js/12.5.0/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:125:7)
(node:11860) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11860) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
we cannot help you without knowing the lib you're using
ok this is a joke 
I prefer make something like Playing !help or Playing(number of server)
glitch.com is a website
no
he is trolling 100%
const activities = [Giveaways in ${client.guilds.cache.size} guilds,"fg!help",over ${client.users.cache.size} users!];
setInterval(() => {
let activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setActivity("G!help", { type: "PLAYING" });
}, 20000);
};
at RequestHandler.execute (/rbd/pnpm-volume/c6816d60-b989-4870-9a98-e134ec16d4cc/node_modules/.registry.npmjs.org/discord.js/12.5.0/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
at async RequestHandler.push (/rbd/pnpm-volume/c6816d60-b989-4870-9a98-e134ec16d4cc/node_modules/.registry.npmjs.org/discord.js/12.5.0/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
at async GuildMemberRoleManager.remove (/rbd/pnpm-volume/c6816d60-b989-4870-9a98-e134ec16d4cc/node_modules/.registry.npmjs.org/discord.js/12.5.0/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:125:7)
(node:11860) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11860) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
help me
You use glitch for website where to code but what lenguage is your code
role doesn't exist
glitch
😂
/why not understand?
why are you asking us how to set a status if you already know bruh
u guys are so stupid
What?
probably a copied code from someone's bot
they're trying to help you
no
not like you coding language glitch
Good one
someone kick this asshole from this server
They aren't able to help you though if you don't cooperate
No need to become aggresive
imagine being toxic when someone is trying to help you
Larko was so nice when he asked me for help
why don't you be like him

imagine not being thankful for the fact that anyone even tries to help you in the first place
you see the ready.js at the left of your screen
like visual studio code
discord.js is website
discord.js is a library. JS is a language
no its website
finally some progress
and you should learn about JS before using discord.js
its WEBSITRE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
http://sc.aymdj.me/cdn/8cy7qqm7.png "node.js module"
you can read the docs for this
how to use
I have code for status but not the status you want
https://discord.js.org/#/docs/main/stable/general/welcome you have the documentation here
okay
where
is it totally running into botZ?
Five
how many commands does he have
// Set the client user's presence
client.user.setPresence({ activity: { name: 'with discord.js' }, status: 'idle' })
.then(console.log)
.catch(console.error);
``` here is a code snippet to set an activity
like ~120
the name of the activity is what is displayed on screen, the text
@cyan mulch do you know what it mean when something is with //
it's a comment lol
no?
and the status is like the "Playing" or "Watching"
i know
but i am interested if he know
okay
@cyan mulch Have you ever study programming ?
ntohing?
but the app i make is nsfw lmao
what ?
whatever your code is trying to do with roles, that specific role does not exist
who is testing the bot for approve ?
give me the code of status
you can't just continue copy pasting code without knowing anything about programming mate
if you're unable to do that yet, come back to it once you have more experience
yep thats why i dont want to give him the code
mantion
I see the unfortunate happen
yes mantion
there is a role
post your code then
you're also not allowed to, only through examples
stop mentioning
no but stop
now
okey wait
let rolname = "⛔ | Cezalı Üye"; // BURAYA KULLANICININ TÜM ROLLERİ ALINDIKTAN SONRA VERİLECEK ROLÜN İDSİNİ YAZIN YAZMAZSANIZ TÜM ROLLERİ ALIR SADECE.
///////////////////////////////////////////
exports.run = (client, message, args) => {
if(!message.member.hasPermission("ADMINISTRATOR")) return message.reply(`:x: Bu komutu kullanabilmek için "\`Denetim Kaydını Görüntüle\`" yetkisine sahip olmalısın.`)
let member = message.mentions.members.first() || message.guild.members.get(args[0]);
if(!member) return message.channel.send("**Lütfen kullanıcıyı etiketleyiniz veya idsini yazınız.**");
if(rolname.match(/(\d{17,19})/g)) {
member.roles.cache.forEach(role => member.roles.remove(role));
member.roles.add(rolname);
}
else member.roles.cache.forEach(role => member.roles.remove(role));
return message.channel.send(`**Kullanıcının tüm rolleri ${rolname.match(/(\d{17,19})/g) ? `alınıp \`${message.guild.roles.cache.get(rolname).name}\` rolü verildi.**` : 'alındı.**'}`);
}
exports.conf = {
enabled: true,
guildOnly: true,
aliases: [],
permLevel: 4
};
exports.help = {
name: "karantina",
description: 'Birini jaillersiniz.',
usage: 'jail <kullanıcı>'
};```
@small plume
@rustic nova
someone needs to ban this kid
@cyan mulch spri se be shti eba mamata malko keleme takova.
?
Bruh
d/
@tame kestrel we got a spamer
/d
@coral trellis please
@cyan mulch stop spam
pls spam stop!
@coral trellis
@lost berry ^
-b 691222873330810891 Spamming and toxic
Banned Stitch#6611 (@cyan mulch)
@small plume thx
gg
thx
thanks 

@rustic nova
Please tell me also toxic and spam @small plume
@earnest phoenix can't really help you, i only know how to partially read errors
No clue about js in general
what is the error?
@earnest phoenix Turkish ?
@earnest phoenix you need to use role's id instead of name. Also please learn basic js. According to comments in this code, you dont know js
@earnest phoenix http://sc.aymdj.me/cdn/41jyvugk.png you can't just use the role name to add it to a member
How to get the badje that is on Kyoyu next to bot developer badje
left or right?
bright
@broken sentinel early supporter? You cant
oh wait nvm
i will travel :)
"Missing Permissions"
no permission to send messages i guess
or any another action
Ok
well you could get it by looking up the error code
yes
I am Bulgaria :)
Ok


Yes someone used to use it before all these ide's came
pog
Hi, i have a mysql server, i wanted to connect to it with nodejs
i configured the server cnf for remote connections
this is my code
i filled the host .... fields
Are you creating a db every time your bot starts
no im testing
i get this error
it connect but error on query
Try establishing a pool
var db = require('mysql') .createPool({...});
So just replace your createConnection() by createPool()
Anyway I could get all guilds a user is in ?
@old cliff You can only get the guilds that the bot shares with the user
No other way ?
Nop
Even with oauth?
But is implementing oauth for giveaway requirement checking worth it ?
when you spell reson in your code in beginning and all the rest of your code dont work :(
thats sad moment
Mhh depending on your use case I think. Could be worth it if your bot is hosting important giveaways.
Hmm then it wil be a good idea to generalize the oauth checking and storing that data and not only for 1 single giveaway
I'll implement that
Make sure to respect discord tos when dealing with this type of things
Yeah
hi
does anyone know a good way to change a specific element in a list in python, which is conncted to json
coz when i do
list = ["a", "b", "c"]
list[0] = "d"
it converts the changed value to null in json for some reason
wdym?
idk it just does that for some reason
An example ?
yes = {"ok":["yes0", "yes1"]}
yes["ok"][0] = "meow"
^ changing the yes0 to meow
wtf
That wouldn't be an issue with Python, but whatever you used
That snippet is completely valid
he already got the issue and fixed it
I'm curious what the actual issue was and how they solved it tbh
would guess inserting the data in a different Schema to the DB and then experiencing the issues
Im using js and I want to have it list all the roles in the embed and this is my code:
message.guild.roles.forEach(role => {
return role.name
})
}
let e = MessageEmbed()
.setTitle('Roles')
.addField('List', caller(), true)
message.reply(e)```
error: cannot read property of 'forEach' of underined
where did you define the message?
pass the message object into your function
how?
did you know how to define functions?
i defined it like this
function NAME() { // code }
i think its a issue with passing roles
is usertag a thing in d.js v12? im too lazy to check the docs
function caller(message){
console.log(message.guild.name)
}
if it was the message it wouldve said "cannot read property of 'guild' of undefined "
also did you got the intends you need
I do yes
i think just tag
oh okay
yeah ik how that works
let k = message.guild.members.cache.get('id')
k.displayName
i wanna create a bot that will help to view a particular game’s player stats
like...
make sure the game got a usable Public API to look them up
ohh
if there is none it makes it way harder to make such a bot
i have no idea whats that
is it possible with cod cold war?
An application programming interface (API) is a computing interface that defines interactions between multiple software intermediaries. It defines the kinds of calls or requests that can be made, how to make them, the data formats that should be used, the conventions to follow, etc. It can also provide extension mechanisms so that users can ext...
if you don’t know how to code in js, py, or something else I’d recommend learning js
https://tabstats.com/cold-war there is an API
atleast its in the works
just because that’s generally one of the easier languages to make a bot in
ohh
you can use the node-fetch library to make your requests
actually i have 0 experience in all these stuffs
did you know any programing language?
nope
I don’t recommend making a bot then, to be honest.
😅
ok
Javascript is easy to learn
js or Javascript?
same thing
ok
js is short for javascript
JavaScript
do i need a pc for developing a bot?
makes it indefinitely easyer
you can do it on a phone but it will become frustrating
coding on mobile is not fun
iPad?
still probably not ideal
you can’t run a good text editor on there such as Visual Studio Code
at least as far as I am aware
wait... imma ask my big bro to join in here.. he knows some coding language
Alright so
my brain is not strong enough for this LoL
you dont
you stream them
Oh
thank you @misty sigil @lusty quest
How
one last queen
Like is there something like Spotify for developers
question*
And they allow scraping ?
how do i get the bot developer badge?
Because I'm not sure tbh
You can't get it anymore @earnest phoenix
oof
I’d reckon the best way to play Spotify songs is by using lavalink
Lavalink is tough af
not really
And I remember you taught me about mongoose (or MongoDB)
Thanks for that , now I use that only
nvm do anyone know any bot that can show you the stats of a particular game?
or have you not tried it
dont look into the google api then
Maybe there is a lavalink wrapper on npm that I can use
hAh yea google api is something else
there is.
erela
do anyone know any bot that can show you the stats of a particular game?
specifically designed for discord bots
there should also be command examples
https://github.com/Solaris9/erela.js/blob/HEAD/examples examples here
😑
Bruh , erela-discord is something else lmao
I thought they were same
Thank you
I can get the docs for you too
hey guys i think that i need some help. I made a !raids (pokemon name) (level) bot. However, i added the list of weather boosts, and since then it didn't work anymore. It doesn't show any errors nor problems in the console.
https://solaris.codes/projects/erelajs/docs/gettingstarted.html#example-usage @delicate shore here’s the docs too
Official documentation for the Lavalink client of Erela.JS
these might come in handy
Alr thanks
I need to download lavalink ?
On my vps
Or is there any online way or smth
Because I have 400 mb space left on my vps kek
yea you do need to setup Java 13 and download the lavalink jar
jar can be downloaded here https://ci.fredboat.com/viewLog.html?buildId=lastSuccessful&buildTypeId=Lavalink_Build&tab=artifacts&guest=1
Powerful Continuous Integration and Build Server
like which one
https://github.com/Frederikam/Lavalink/blob/master/LavalinkServer/application.yml.example and this is an example application.yml (placed in the same dir as the lavalink jar)
if you don’t wanna fill stuff in you don’t have to
I do recommend changing the password tho
Use top.ggs search feature
Are there any crates for mongo wrappers that aren't 4-5 years old for rust 
How can I do the message sending command when I vote for the bot
use the dbl api
I couldn't. If anyone has such a code, can he / she throw it?
do they have an API?
not sure
would be the easy way
the two websites where i am pulling all my info from
can't i just scrape the weather boost text directly?
its the same website just 2 different api endpoints
api would be way easyer
writing a scraper is more complicated
im not sure if you can scrape it this easy
umm i wanted to ask that what to do when my dynos stop working on heroku?
@sturdy vine stop using heroku
Either Heroku is having issues or your quota is exhausted
my quota is exhausted
because i was using free dynos
I think I need to buy hobby dyno
And you don't have a credit card attached to your account?
i am going to buy dyno
So my bot has a message latency of 0 (written in serenity) and I'm not sure if it's actually got 0 ping or not. It compares the !ping message timestamp to the Pinging... message timestamp and then edits the Pinging... message with the new latency time in ms. I have checked the message IDs and they are indeed not the same message. Sometimes it's 1ms. Is this normal behaviour and I have 0 latency or is my coding bad?
dont buy a dyno. get something like a AWS VPS with 1 year free or a GOOGLE VPS with also 1 year free
but heroku is only $7 / month
Digitalocean is 5$/month
:0
and way more reliable
private-hosting has like a 4-6€ vps
Can you show how you are calculating the latency?
amazon AWS is around the same price range and with 1 year free
digitalocean is better than heroku?
Yeah
way better
ohkk
I prefer to stay be the stance that Heroku is more of a testing environment for web applications
but you need to know some basic linux stuff
and DigitalOcean is more for, well, hosting projects in production
:0
It's literally just timestamp of !ping - timestamp of Pinging (pc off rn)
how did you measure the ping?
Not at my pc rn sifsbishgidbf
so command message created timestamp - message send timestamp
first timestamp = user sends message => second timestamp = bot sends message => subtract => return latency
for getting latency js const ping = Date.now() - message.createdTimestamp;
So in Python code, pretty much
time1 = time.time()
msg = await channel.send("Pinging...")
time2 = time.time()
await msg.edit(content=str(round(time2 - time1, 2)))
?
time.time() returns timestamps in float
Ah I'll try getting a UTC date
Rust!
Also wouldn't the message sent timestamp function as the date/timestamp?
why did you want t use utc? usually you get unix timestamps
It is unix
Aaa
It derives the Unix timestamp from the UTC date
there's a timestamp method
hi
Mongo vs mysql vs sqlite for my boat ?
mongo or mysql probably
👌
i found the code yaay
let m_timestamp1 = msg.timestamp.timestamp();
let m_timestamp2 = message.timestamp.timestamp();
message.edit(ctx, |m| {
m.content(format!("Pong in {}ms", m_timestamp1 - m_timestamp2))
}).await?;
all of them suck use JSON database
found?
i boot el PC
How? Its a feature
a placeholder arg
like those found in arrow functions in js
and i've never seen it before
it’s rust is it not?
Now you have
oh idk
does .map() adds it? or replaces it?
pls tel me here

Help me
can't help you then, then you're not ready to do that yet
come back to it once you understand documentations
no, i m searching i didn't got
so i tried to install the fetch crate but:
error: failed to run custom build command for openssl-sys-extras v0.7.14
literally read the documentations, if you know what you want to do, then you will find it
if js, then https://top.gg/api/docs#jslib





I don't rely on that
