#development
1 messages ยท Page 519 of 1
i think i fixed it maybe???
'' + bot.latency + '' xD
just type me what to write
then you can do m.edit(content="hi")
use need to asign bot.latency to a latency = bot.latency then use str(latency)
you can figure out how to make a variable
i dont need to spoonfeed that
await ctx.send(bot.latency) make into a variable
<var>.edit(content="")
python is kinda a ugly language for bots
why?
layout.
Some one who know discord.py DM's Please.
ignoring what i said because i dont want to spoonfeed basic code
@knotty steeple dude..
just listen to what he says
i mean
he did try to give you the first step. didn't he?
Is here any simple way to get name of twitch account via twitch integration in discord?
use the twitch api
you might be able to get connections
then run that through the api
You can't iirc
Ohyea
I just want to gete these information via discord api
oauth the user
How then does MEE6 automatic roles for twich subscribers?
twitch api probably
How?
can somone teach me how to mass message an announcement
in disocrd.py
into the default channel of every server my bot is in
oh
go and get banned and save discord the hassle
toni being a meanie
use an announcements channel in your server for stuff
i do that
or make a command
I think that default server channel is no longer supported in discord.py
That is correct
its not supported anywhere on discord
^
you can literallydelete every channel in a server now
noice
So, is here any easy way to see this via discord.py?
you can't
bot accounts cant get those
you have to use an user account and that's selfbotting
which will get you banned
How do people get a bot in the bot certification program?
therefore they can get your connections beforehand and save them
@compact ravine https://discordbots.org/certification
thank you @sick cloud
Why it's not allowed to see users integrations for bot? @bitter sundial sorry for the ping
Does it have any practical reason?
because the discord api is mean to bots
Still, it would be really nice to see those integrations via bot
@terse pier use oauth2
Well, its not mean
Just have them click on a link
its security
I don't want some bot collecting info about my other accounts without my authorization
Identify scope iirc
if bots had access to those, they could mass message you on those platforms
or track you, etc...
https://goo.gl/QeL6LS
OAuth2 - Discord - Developer Documentation
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
@terse pier
I'm here but I'm wondering how that would help with my problem
Well what do you want to accomplish?
Automaticly set roles for twitch subscribers
You could have them have to log in using oauth2
To get their twitch
If they are connected to twitch
That wouldn't be practical to do with every server member ๐
Okie
They are users, not clicking machines
Yes, but bots can't acces these integrations ๐ฆ
Yes they can
Using oauth2
The user just has to go to a screen like the add to server one
And hit accept
But every user should use that oauth
I'll check your link, now I really need to go to bed
oauth isn't that kind of think that you can implement at 23:18 ๐
Oh yeah I'll let you get off
Iirc there is a medium article that can walk you through it
Can you please give me some example for now?
All your users would have to do is hit accept
Then your back end code will do the rest
anyone with eris experience able to explain why images won't send?
are you sending a buffer?
i am
Can someone help me get custom fonts into Canvas?
I did Canvas.registerFont('./fonts/UniSansHeavy.ttf', 'DiscordBold'); but nothing happens when I use it.
I'm doing the same thing as @hushed snow (https://github.com/AdityaTD/PenguBot/blob/master/commands/Profiles/profile.js).
canvas-constructor
var {registerFont,createCanvas} = require('canvas');
registerFont('sym1.ttf', {family: 'sym1'});
^ node-canvas
That's what I'm doing with canvas-constructor.
Help
Yes
i cant find anything about using registerfont with canvas-constructor, but my guess is try doing it the same way as with node-canvas
requre the registerfont function from canvas-constructor instead of using Client.registerfont
also, you're using the Impact font anyway, so your custom fonts are not even being used

any 1 know how to Change game status (streaming)
This is what i got so far @bot.command(pass_context=True, hidden=True) async def setgame(ctx, *, game): if ctx.message.author.id not in owner: return game = game.strip() if game != "": try: await bot.change_presence(game=discord.Game(name=game)) except: await bot.say("Failed to change game") else: await bot.say("Successfuly changed game to {}".format(game)) else: await bot.send_cmd_help(ctx)
Uhhh
# Streaming
await bot.change_presence(activity=discord.Streaming(name="something lit"))
# Listening or other
activity = discord.Activity(
name="whatever makes me feel happy",
type=discord.ActivityType.listening
# type=discord.ActivityType.playing
# type=discord.ActivityType.streaming
# type=discord.ActivityType.watching
)
await bot.change_presence(activity=activity)
game = game.strip()
if game != ""
Also that's rewrite @tepid jasper
They need async
@whole urchin game=discord.Streaming(name="Some stream") iirc
Thank you
they should update to rewrite :D
How to know if have rewrite
$ python
>>> import discord
>>> discord.__version__
'1.0.0a'
Thx
to install it I think. It's usually a good idea, that way you won't have to update later. Make sure you use the rewrite docs too: https://discordpy.readthedocs.io/en/rewrite/api.htmlpip install discord-rewrite
(if you decide you want to update)
?
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
Official d.py rewrite
ah, alright do that lol :P
the one on PyPi was uploaded by someone who is not related to d.py devs
and they don't keep it up to date
So use the command I sent
couldn't remember how he installed it

it was a while ago
STM, i c 
yes
its an svg
it wont embed in discord chats
you can only use it in img tags and such
Webp version when
never
@slender thistle the best way imo (is also what I do) is to just have the discord library in the same folder as the bot's files
Preferences
which language/lib?
use a setTimeout and message.edit()
Hey
Hello
Someone know how to fetch an user with a sharded bot (discord.js) ?
I apologize for my bad english, if I checked the bot voters and if so, how can I do if I want to give him the role of supporter?
const res = await client.broadcastEval('client.users.fetch(id)');
res.filter(a => a)[0]
Maybe
@dreamy goblet
Thanks !
I didn't know why it was not working. I changed " to ' and it now works xD
Is there an easy way to get a member object in a specific server if I already have a user object?
...
You can't edit non own message
@ruby dust guild.get_member(user.id) 
That's what I've been doing, but I thought there's a better way instead
you need to send the message first duh
The most powerful way :^)
Can someone please show me how to use this?
https://discordapp.com/developers/docs/resources/user#get-user-connections
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
Hmm, what does it refer to as "connections"
Is there anyway for me to get a bot to delete another bots messages after a day?
Oh I get it now
A user can delete a message if it has permissions, no one will give you exact code for it, you have to figure out that yourself
@terse pier you have to create an authorization url
It's even harder than creating google OAuth2 client ๐
I don't uderstand that redict_uri parameter when I only need that for my bot to acces twitch integration account of user
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
from what i understand, you cannot do that with a bot alone
you need a webserver to accept the redirect uri
you can run something like an express server in your bot file
I don't have money to run my own website ๐
your bot generates the url, person clicks the url, person receives the discord authorization thingy, when authorized it sends the person to the redirect url, which will be received by your bot's express server
I know how OAuth works but it just don't give any sense to me how it's implemented in discord.py
Thank you anyway ๐
Could anyone give me advice on how to get my bot whitelist command to work?
it would help if you showed your code
@dreamy goblet Uh
Fetching a user doesn't change whether you are sharded or not.
Maybe they wanted to see if they are cached
@earnest phoenix store whitelisted user ids in a config, make command handler or inhibitors check if list includes id
Array would be easiest
@terse pier if your bot runs on a server, you could redirect to that IP
alright
Although that's somewhat a security flaw
@quartz kindle https://pastebin.com/AcbvL7Vw
ok
could i store it in the code?
I mean you can add some people that are already whitelisted
Further, why a Collection
Just use an array or a set
Collection is key -> value
While you only have a set of values
lmao im a beginner in coding, i need it simpler lmfaooo
And you can define a predefined array
Like
bot.whitelist = [your id, another id]
And then on whitelist
bot.whitelist.push(id)
Although, it gets reset every restart to the initial list
You can use a database
Like rethinkdb
let roleid = message.guild.roles.find(role => role.name === rolename);
if (roleid === undefined){
const embed = new Discord.RichEmbed()
.setTitle("โ ๏ธ Embed limit exceeded:")
.setDescription("There is too many members to list!")
.setColor("RANDOM")
message.channel.send({embed});
}
let users = message.guild.roles.find(role => role.name === rolename).members.map(m=>m.user.tag).join('\n');
if (users.length > 2048){
const embed = new Discord.RichEmbed()
.setTitle("โ ๏ธ Embed limit exceeded:")
.setDescription("There is too many members to list!")
.setColor("RANDOM")
message.channel.send({embed});
}```Any idea how I can fix my code not catching these errors??
But as a beginner imo it'd be better to first get a firm grasp of JS before trying
okay
@high tinsel expected behavior, actual behavior?
@earnest phoenix because otherwise you start a lot of things without the basics
if you enter the name of a role that does not exits "if (roleid === undefined){" should catch it, and if "users" is too long the second thing should...
O
?
@earnest phoenix upload to https://hastebin.com
k
I'll have a look
@high tinsel if (roleid === undefined) -> if (!roleid)
idek how to use hastebin
the rest looks fine
hastebin:
paste everything
press ctrl+s
done
share link
also I meant the code lmao
your error is a ReferenceError I got that
prob idk
thank
the heck is var find = client.whitelist.find("whitelist", guild.id)
const find = client.whitelist.has(guild.id)
k
that's the command
working now ty :3
check for whitelist:
k
into a command you want to be limited to whitelist
Anyone know whats up with this? Error message in cmd: https://hasteb.in/ikacigan.css My code in bot.js: https://hasteb.in/valaluhu.js
connection issue
@tight heath hi rave
@hushed berry hi nik
hi rave
hi whoever you are
hey can i use json files as a database
or you could learn sql like everyone else lol
na ill stick to json
instead of literally the industry standard?
json files are horrible for storage
- easy to corrupt
- no way of querying it for data
- you need to read and write the whole file to safely update a value
or mysql
or sqlite
or mariadb
you dont even have to learn sql you can use mongo or rethink (that one is shit)
rethink bad
my man
can't even get it on ubuntu 18.04
what's so bad about rethonk
it's complete garbage for any lang besides js
I mean what if you use js
Anyone good with HTML on my dbl page i just put a image and i want it to stretch not make 2 images http://prntscr.com/livp6m for the bottom of the page it added the image again
@here hey
some one can help me with discord.py?
i need command to tempmute on discord.py
what happened to good ol fashioned discord.js???
I dont know
just got familiar with py
im new
so
any help
Im trying to make a setting with variables but its going to other groups
so if a = true in this server
it will equal to a in another server
I keep getting this but Iโve already installed FFMPEG
did you restart?
Yes
Js
js is a language not a library
Ik that
what lib are you using for your bot...
for the bot 
they use d.js iirc
Js
JS IS NOT A LIB
IDK
IT IS A LANGUAGE
I havenโt coded in like 2 weeks
how can you make a bot without knowing what lib you use...
oks o like
did you even code it
Iโm so confused
main file
or use something like discord bot maker
require('what here')
d.js
It is
no
how did you even start coding without knowing what lib it is...
did you just copy code from other bots/websites
I havenโt coded in 2 weeks
not an excuse
I gave up on my bot
you cant forget what lib you use in 2 weeks...
I gave up on life yet i still know my name
No but I get confused
xdd
excuse for forgetting library is havent been coding in 2 weeks

lol
basically
i didnt update my bots for 4 weeks 
Okay I get it okay I have 2 people says js isnโt on why canโt you just d. -> js

YOU ARE CONFUSING ME
...
AND MAKE ME FORGET
how old are you ๐ค
okay I use d.js
even a 10 year old would be able to understand that lol
install ffmpeg
I did
did you npm install ffmpeg-binaries
Windows
Only windows because I can remote
you download it and put it in your PATH
or just dont even use ffmpeg and use d.js's native voice system and improve performance
sigh windows
if you rlly need ffmpeg run npm install ffmpeg-binaries in the dict you are making ur boat
No way am I recoding my music on my 1mb/s download
sigh running your bot on your computer
Itโs so slow
wut
doubt
do what i said
debian*
you download it and put it in your PATH
windows servers are more expensive but
ยฏ_(ใ)_/ยฏ
im allergic to windows
I mean windows isnt that bad for daily use
wot do u use for desktop
i use debian/macos dualboot
i use arch
oh my
can't stand telemetry + lack of full disk encryption
and i dont play video games
same
leave discord please
no u
discord is a voip application at itscore
Even though it says a gamer chat
do crossy road, fruit ninja, and angry birds count
and none of them want to use my irc server
cuz i play those sometimes
Or you can use discord to chat
There's nothing wrong with not being a gamer and use discord
^
nothing wrong with games I just don't have the time
I don't either
99% of people I know online use discord
so it's easier for me to use it than have everyone switch to something else for me
Yes
๐คท
The only reason why I started to use discord, because my robotics team need a form of communication and someone said discord, and here I am
Opusscpirt?
Idk maybe
Are you trying to make a music bot in discord.js?
Yes
its node-opus
Are you following a tutorial?
Finally it works
No I just got my VPS started and I needed to put my bot on it
And modules donโt stay
Sometimes
Ok
It should always be installed, its installed in the dir you installed it in
What vps are you doing? @earnest phoenix
What
What vps are you using?
Google cloud
-_-
What
How long have you been programming for?
Clearly not long enough
Then I have suggestions for you
First one is before continuing programming your bot, I suggest you take an online course on Js, and bash/shell, second I suggest you use node.js to run your bot first before using a vps. If you couldn't remember the lib, that could mean either you copied and pasted, and you learn nothing from it, which I know that isn't true, so it means you need to learn more.
codecademy has a decent js course
Yes
After you do that you can take a master course which I will be doing around christmas
If you really want to
If you want to expand if codecademy wasn't enough would be sololearn
me: i cant get past the java course
others: 
It doesn't hurt to learn/review stuff
https://pirple.thinkific.com/courses/the-nodejs-master-class offers a good master course and the pricing depends on where you live @earnest phoenix
For me it's 40 USD
WEW
I like free stuff
welll thats lots of money for me
lol
Might want to ping him
@earnest phoenix did you get all that?
God damn I want to take this class or whatever
Lol
40 dollars USD ๐ฉ
I prefer free stuff
So in JavaScript, I'm making currency. How can I stop the enmaps resetting when the bot restarts?
But is there just a way to log all the users data?
You mean the user data that you can get,
btw, I've asked that once already but try #2, in d.py is there an easy way to get a member object in a specific server if I already have a user object?
I am not a py Dev, so idk, I only do js and java
besides the <Guild>.get_member(user.id) way
๐ถ
I just thought of <Guild>.user would be an equivalent to that
can it be true
It's only for one server, and fixed now anyway
I mean your trying to get a member object, be more descriptive about please
bot.on("guildDelete", (guild) => {
const guildowner = bot.users.get(guild.owner.id)
if (!guildowner) return;
const supportserver = bot.guilds.get("399688888739692552")
if (supportserver.members.has(guildowner.id)) {
const autoowner = bot.channels.get("451537426867814402")
let guildownermember = supportserver.member(guildowner.id)
let role = supportserver.roles.find("name", "Server Owner");
guildownermember.removeRole(role);
autoowner.send(`Removed ${guildownermember} ${guildownermember.id} Server Owner Role On Deleted Guild`)
var guildList = bot.guilds.array();
let giveback = false
guildList.forEach(serv => {
if (!serv.owner) return;
if (serv.owner.id == guildowner.id) {
giveback = true
}
})
if(giveback) {
autoowner.send(`Added ${guildownermember} ${guildownermember.id} Server Owner Role On Still In Other Guild`)
guildownermember.addRole(role);
console.log("User given back server owner role on still owns server")
} else {
console.log("Checked if user still owns server, returned false.")
}
}
})```
What's goin wrong here? I've had this function in place for atleast like 5 months and only now stopped working. The actual removing of the role works perfectly fine, but for some reason if I'm still the owner of another guild it wont add the role back like it should?
It even says "User given back server owner role on still owns server" in the console and still sends the message to the autoowner channel, but it just doesn't add the role?
Is there an error that returns
What is serv?
From what I am seeing is that you made this in a guild delete event, which will only happen if the server was deleted
in d.js its also when the bot leaves a server iirc
how can I be more descriptive than that? I'm just asking if such ways exist because I don't feel like doing the way I said before is right, it's more cringy to me than anything else to have 2 values of practically the same thing in cache
Yes
Like I said this has worked for months before
It only just recently stopped working for no reason that I can gather
Check if some of the keywords are not decrepit
But like it just makes no sens edfienqw. Because 1, obviously guildownermember works fine because it still removes the role in the first place. .addRole() still works obviously because I use it in other bot.on events and it works perfectly. It's detecting if I own another server correctly because it's logging it not just to console but even straight to discord.
It's just not adding the role
no error thrown, no information on why, no obvious reason why. jndwqwq
try changing let role = supportserver.roles.find("name", "Server Owner");
to this style: collection.find(val => val.username === 'Bob');
Well I mean it still wouldn't work
Because I used the same exact code for adding a role with other parts and it works percectly
Like I'll do that anyways but yeah it still doesn't do it
<user>.send()
no like channel.type
what
Hey guys, how would I check if someone's status is a certain status?
like
if Context.Guild.GetUser(ID).Status is online,
I'm trying to have the bot perform a function of someone's status is online
I'm coding in C#
nvm
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0393EFB0>
anyone know how to fix this error
in discord.py
?
@bright spear YES
@storm oak is that printed in your terminal?
if so thats usually just what aiohttp posts
Yes
Naisu
its printed on my terminal
@trim saddle what do you mean "if so thats usually just what aiohttp posts"
im a little new
so
im using pycharm also
ide shouldn't matter if it's printing to the console/terminal
then its alright
HEALLLLLP
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
if(!message.content.startsWith(prefix)) return
if (message.channel.type === "dm") return;
if(message.mentions.members.size == 1) return
let declinedas = args[0]
let membera = message.mentions.users.first()
if(message.content.startsWith(prefix + "decline")) return
if (message.member.roles.has('459540292069097472')) {
message.membera.send(`You have been declined as ${declinedas}! Sorry!`)
} else {
message.reply("you can't use this command!")
}
});```
this doesnt work even though it doesnt have an error
spaghetti code
message.membera
Im trying to get it so whenever I do !decline @mention a, it makes it so it dms @mention
message.membera.send(You have been declined as ${declinedas}! Sorry!)
idk
im discord.py
find the error
ยฏ_(ใ)_/ยฏ
thats not it
it is
cause I defined membera as let membera = message.mentions.users.first()
OK
it still doesnt wokr
Im trying to get it so whenever I do !decline @mention a, it makes it so it dms @mention `You have been declined as a! Sorry!
heres the code
Client.on("message", async message => {
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
if(!message.content.startsWith(prefix)) return
if (message.channel.type === "dm") return;
if(message.mentions.members.size == 1) return
let declinedas = args[0]
let membera = message.mentions.users.first()
if(message.content.startsWith(prefix + "decline")) return
if (message.member.roles.has('459540292069097472')) {
message.membera.send(`You have been declined as ${declinedas}! Sorry!`)
} else {
message.reply("you can't use this command!")
}
});
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
if(!message.content.startsWith(prefix)) return
if (message.channel.type === "dm") return;
if(message.mentions.members.size == 1) return
let declinedas = args[0]
let membera = message.mentions.users.first()
if(message.content.startsWith(prefix + "decline")) return
if (message.member.roles.has('459540292069097472')) {
message.membera.send(`You have been declined as ${declinedas}! Sorry!`)
} else {
message.reply("you can't use this command!")
}
});```
at end of sentence
what
message.membera.send(`You have been declined as ${declinedas}! Sorry!`)
yeah i tried that

are you still using a seperate listener for each command?
mentioning in dms
@empty owl are you new to javascript?
yeas I started a few months ago but stopped and restarted
I fixed it tho
I have received much help from @Zan#0001
Who will help me with my Jevil bot?
?
how do i make my bot stop responding to bots
i forgot the code since i havent worked on a bot (discord.py*)
can anyone help with pinging bot every 3-4 minutes? what i mean is after 5 minutes of inactivity my bot goes offline. I know GlItCh Is A BaD hOsT.
If you wait an hour i can give you the code snippet that makes the website ping itself everyone 5 minutes
that would be nice
i'm i obliged to have a website for my bot in order for it to be certified ?
if i put a full documentation on my bot's dbl page and then put my bot link in here
is it accepted ?
i made a github page with the documentation only
documentation means all the commands + description right ?
yeah, whatever your users should know
can u send me a link to ur github page ?
let role = message.guild.roles.find(role => role.name === rolename);
let users = role.members.map(m=>m.user.tag).join('\n');
let usercount = role.members;``` users works, but usercount returns "[object Map]"
Because it's a collection, which extends map
oh I forgot ".size"...
@earnest phoenix im a bit late but
const express = require('express');
const app = express();
app.get("/", (request, response) => {
response.sendStatus(200);
});
app.listen(process.env.PORT);```
this requires the npm modules `http` and `express` so put those in your package.json file
http comes with node
also where is http being used @mossy vine?
plus, that's very not going to work
lmfao yes just copy code and give it to others
smh
i also dont see why uptimerobot wouldnt work
i dont know what noodp does
but here's an article explaining all the things it does
Noodp = No Open Directory Project
DMOZ (from directory.mozilla.org, an earlier domain name) was a multilingual open-content directory of World Wide Web links. The site and community who maintained it were also known as the Open Directory Project (ODP). It was owned by AOL (now a part of Verizon's Oath Inc.) b...
@languid dragon
Doesn't add it there
Should be irrelevant by now.
what
Mmm
some one can help me with discord.py?
i need command to tempmute on discord.py
how can i log when a reactioncollector's max (the collectoroption) has been reached? does collector.on('end') trigger when the max is reached?
@earnest phoenix What exactly is your question?
@slender thistle my question is: if someone can give me code for a command "tempmute"on discord.py
Oh, nope
I could tell you how it works tho
Add mute role to user, await asyncio.sleep(x), remove role
No one is going to spoon feed you
people here aren't going to give you there code. they might help you develop one, but will not spoon feed you code. you don't learn anything from that
yes
@earnest phoenix i suggest you learn py using an online course, before continuing working on your bot. from what your asking and wanting, shows that you don't know how to program, so if you do know how to program then you wouldn't be asking for someone to spoon feed you. a good online course for py would be codecadmy, and if you want expand and learn what they are and do, sololearn is good for that
or learn a real language like C
c is not common discord bot language
discord bots arent real programming either
i wish it was, since my primary language is CPP, but db doesn't have any real docs for C/CPP
they should
the closest is java
im tired of python its so crap
same
py is not going to teach you how to program right
best lang would be java, and js
@vernal rivetwhere can i get the online corse?
codecadmy would be a good one for free
sololearn will teach you what each thing is and what they do
if you want a better support from others, javascript is going to be best to use since js is primary dominant here.
I've run in a bit of a thing to think about, I'm my codes I used to put variables in thxt like "The number ${number} is your number", but than when I needed to write more and quick, I started just doing "The number " + number + "is your number" do you think it is worth rewriting, if so which way is better?
So again, is there any way to stop bot from going offline? (on glitch.com)
i believe ""+"" is slightly faster, but ${} is much more readable
it is faster indeed, but imo not enough to be prioritized over readability
@earnest phoenix Don't use glitch.com for bot hosting, because its terrible?
^
@earnest phoenix https://uptimerobot.com just make it do a http request to https://projectname.glitch.me and make sure its set to every 5 mins
i already found solution
app.listen(8080);
setInterval(() => {
http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
}, 300000);
before code begins
Can someone help me i am failing trying to make a globalchat
that will only send to the first channel named globalchat
you'd need to loop over channels, or have a database keep track of them
yup
i need someone to help with making an economy module
bot type: discord.js
with what exactly
what have you tried?
the whole thing
so you tried copying it from somewhere and it didnt work and you gave up and now you have nothing?
well, start with a database then
?can someone just join the project and help me
?no
sure, if there is money involved
how much are you paying?
same
i'll do it for 25/hour
nope
Lol
sorry for interrupting the convo but can anyone give me a tl;dr of github licenses?
#YouTube
wait nvm found it
Non-judgmental guidance on choosing a license for your open source project
yeah i found it thanks
btw licenses arent really related to github lol
nah i meant the ones github offers in the dropdown menu
i'm trying to go through a json and make a new line in a richembed field for every item there is, and i've got no idea what im doing. i've got the embed and the json layed out already
yeah i got that far but my problem is trying to figure out how to only change the field value without creating an entirely new field each time it iterates through
you can also use Object.entries()
How do u check if someone is in a voice channel?
just dont create the fields before, let them be created during the loop
but then, say theres 12 items, the number of fields should be 3 always. wont i have 12 fields with 1 value instead of 3 fields with 12 values?
...
if (message.author.voiceChannel = true) return
never ask that
How do u check if someone is in a voice channel? @bright spear I stated my question above
whats the problem with that
first of all, you're setting voiceChannel to true
o
instead of checking if it is true
so what do i do?
@hearty tree if you want multiple values per field, just apply a bit a logic
3 =s?
like this?
if(message.content.startsWith(prefix + "airhorn")) return
if (message.channel.type === "dm") return;
if (message.author.bot) return;
if (message.author.voiceChannel === true){
}});```
you can use a for loop with Object.entries and apply a new field if current iteration reaches a certain number/value
voiceChannel returns the voice channel object if it exists
so the value will never be true, it will be either undefined or object
just check if it exists instead
so how do I do that?
if (message.author.voiceChannel)
ok
@quartz kindle Reading up...whoa
25 an hour...
That is quite a pretty penny to ask....
25 dollars could get me a nice udemy course 
Hahano
I'll do it for 24.99
For discord bots?
per hour
for js in general
Kids here don't even work. lol
but im not a kid and i have bills to pay :^)
so I was surprised when you said that
Im trying to make it so my bot counts how many servers its in
Using discord bot maker
Can someone help
so look
we help using programming languages
but Discord Bot Maker should be easy hecking enough
Not tools that write code for you
^ what he said
@tight heath that is a good rate
11.25 an hour
Higher than minimum wage here I think
lower than amazing minimum wage
aka discord.js @tight heath
disgord >>> *
our minimum wage is proposed to rise to 12.50โฌ
and I'm like
are you crazy
@iron crag client.guilds.size
Amazons minimum wage here is 15
disgord wth
$
yeah
here ish 8.50
iDk discord.js so what do i do with that
disgord is golang
Amazon hiked minimum wage here to $15
that's your server count
ik
do whatever you want with it
but what do with it
idk you tell me
and then proceeded to advertise the fuck out of it
disgord vs discord.go?
hOw to put it in sTatus MeSsAgE
client.setActivity(that)
in what file
can you read the docs first please
idk how your files look
on ready event would be smart
@zealous veldt they did it in a shit way tho. They removed most of the employees perks
yeah
I wanna die
ewwwww
ew
What the fuck
@iron crag did you use discord bot maker
Look at the events folder
*file
@iron crag dont use discord bot maker, just learn to code
@iron crag put into Bot.onReady, https://github.com/zaleo-yt/savagebothost/blob/master/js/Bot.js#L71
hey @iron crag
but please just learn actual js
you're token is exposed
oof
it's so much easier
LMAOOOO
f
kms
yayayayaya
gitignores really aren't that hard
^
idfk ok??
using DBM and posting ur token publicly
leave me alone
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
@tight heath idek what the difference is but I think disgord has more stuff
can you stop it xd
๐ค is disgord new?
Yes
@bright spear https://i.died-for.science/8qyndh.png you mean like this
cmder
it's nice
lmao
thanks
o
can you stop
no u



