#development
1 messages ยท Page 766 of 1
you van just use http.pingitself
no
Yeah well I need to use 2 bots so it's only 15 days each @restive furnace
it will go down after 12 hours
no?
@lofty vine how do I use statuscake?
@golden condor
I am interested
@restive furnace create a account there!
21 days for EACH bot
simple
i talked to cx
hOw I cAn cReAtE mY bOt ?
lel
@lofty vine how do I setup statuscake
u know how to setup uptimerobo?
Yes
its similar to it
its better for starters
i use visual code for long
js must be a better way i guess
yea
all language libraries have the same features right?
no
So some have more?
no
bruh
all coding languages has mostly same fearyres, but they can differ to each one, and yeah. and if you mean discord api interacting libraries they (almost) all cover the api 99.999999%
yrah i meant discord library

Discord.py, JDA and Discord.JS (Master) covers the api fully
ye
good thing I use discord.py , its much easier than js
python lib
depends on coder, its not really easier, just a coder dedicison
i use c# and c++ mostly
for discord bots?
c# for discord bots
damn nice, I'll learn it in future for game dev
Tbh I want to learn all , every language has its own strengths
but you can try em if you want
i mean not "ALL" lol
c# for discord bots is very nice
not biased at all with 5 c# bots

I want to learn C++ so bad but then people say not to learn it , learn newer languages. bruh
have fun learning esolangs
Learn dogescript
(even tho theyre clients)
I wouldnt mind learning java in advance too altho people say its shit , I want to make minecraft mods 
C langs are still 1st in developement even tho they are little outdated (c/c++ not c#) and then java, py and js
wdym first
I know 5 programmers personally , they all use C++ lol
py is good for data but for rest of the things , ehhh
not c# my dude .net core is on a roll they even have website stuff for c# and you can run shit on linux now so ๐
js is hot as far as i know
.net core is hot

if you mean developing wise , yeah fast
So is c# if you have 
performance? meh
but python apps spped is so sloow
python is slow as shit
oof java
ikr programmers on youtube seem to roast it
Probably not the best choice for discord bots in general
yeah obviously but ive seen someone advertise "Discord bot made with Java"
Idk why you want the speed diffrence
hopefully they used javascript and were too dumb to notice the difference
its important in apps
yeah not much diff.
Like indistinguishable
Talking about programming in general
I mean python is still quick like for most stuff you won't notice
I wanted to ask people here if they use json or dbs
how much faster are databases?
cause I'd want to port over but I'll need to learn
- extra hosting
Well there is legit no comparison
damn
Because jsons arnt supposed to be dbs
Jsons can corrupt easily and are for static data
I mean for storing stuff primarily
wdym by dynamic?
Wether that data will ever change
They only corrupt if you don't use it properly like trying to write to the same file at the same time like different shards
Static basically just means the data doesn't change often if ever
yeah for discord bots its too dynamic
i don't think json corrupts a lot in python as long as I use "with open()"
instead of opening and closing
Can I have some help making a mute command
In-built aswell
Check role perms
get mute role
create mute role if not found
give user role
Simple Cxllm
Which language @golden condor
Discord.jw
well as Buildberb said , same idea
@prime cliff I am not sure how to make role with certain perms
user muting is very easy thanks to discord
Using code
Check your lib docs for channel overwrite permissions
Then just apply the mute role with deny send messages and deny add reactions to each channel
guildCreateRole?
My brain just isn't working...I just want to change a value of a row in my database but I want to require the id first before I change it like `;name [id] :(
Well most DBs require a key to change anyway
You need something to tell the dB which row to change
I'm thinking of starting work on database, any recommendations?
Yeah same @scarlet maple
That's what I'm trying to do
SQL lite is good for python and starting with dbs
Is mysql good enough ?
Any for js?
Mysql is in my school syllabus so I'd rather work on that
Are there any good sources for learning ?
I can't find anything on mysql
so I just need to learn SQL right , because most dbs use sql
and I hope all dbs are similar
Well no
crap
Because the different types have different syntaxes
The dB code itself is the same with sql
But the actual code for python etc is different
learn html
But each module is different
i can use connectors with async fucntions right?
I have 3 year experience in web designing 
3 years gone to semi waste
๐คก Don't wanna interrupt the convo so terribly sorry if I do```js
//require id first before changing value? should I await the message after requiring the id or do it as one command altogehter.
if(u_id === row.id){
//run code?
con.query(updateQuery);
}else{
console.log(e);
}
you're a monster
I am
@scarlet maple most DBs are non async in python
crap
?
like Indentation for what?
yeah hopefully mysql supports async
rip
But it's async just in the way it's coded
It just doesn't need to be in a async function with await
imma going to cry
oh
binarys are the best
Ngl think you're jumping in this is the wrong way
Start with mysql or SQL lite first
Otherwise it'll overwhelm you rather quickly
Yeah... Idc
but yeah theres only 1 "L" most of guys dont notice it xdddd
whatever you do, do not start with quick.db
quick.db is literal shit
good to know 
how can i ask if the id from the user that run the command, is register in the sqllite database?
in java
okey
How do I get all arguments in an array? Js
just get the array?
how to filter users and bots?
@uneven wyvern what language and library
that is the method
Ok
and your can do !== true for users
K ty

you should be able to omit === true
same for !== true
but then just put the inversion up front
ok
read the error
I red it
Missing } in template expression
I don't see any } template
or you tell me what I do wrong
now it is saying it is missing something
or don't send messages
what is it missing
} ffs
Hey, I have a question
just tell me what is wrong
I made a ticket bot for my server but I am not sure whether to put it with a moderation bot, or make it support
if you mean like a category in your bot, I'd say moderation but it's up to you. they both mix
@unique nimbus Thanks, your puzzle helped me a lot
yes
If you want us to spot a missing }
At least post the code
so we don't have to squeeze our eyes reading the screenshot
I made a ticket bot for my server but I am not sure whether to put it with another bot, or make it seperate
I run a server with a lot of voice users, is it possible to have a bot analyze incoming voice data and detect if its overly loud? this would really help my mod team.. i have experience in making bots but I've never used voice.
you would have to read every user's voice stream, have to convert the stream to PCM format and then read that to check for spikes in the current dB value
tldr very hard, if not impossible, if you have no experience with voice, opus and lowlevel byte manipulation
someone tried before
but didnt get far
as after viewing the audio from normal convo and ear rape the diffrence was so hard to tell
that it wasnt gonna happen anywhere close to accuratley
wrong channel bro
Anyone here decent at canvas? (node canvas)
.addField("Heroes", response.heroes ? response.heroes.map(a => `${a.name} - ${a.level}/${a.maxLevel}`).join("\n") : "No heroes")```
this is my code. I get this error:
```js
RangeError: RichEmbed field values may not be empty.```
anyone help me?
Where's the closing )
it seems that serverQueue.connection.playStream is not a function. Why? The code works some weeks ago
learn to debug
@earnest phoenix the module could have been updated and that function may now be deprecated
I have to find the new one but the docs says that this function works so...
i mean, very low ping = good vpn
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
What is the best way to create a music play command in python
My bot needs to be able to change nicknames. I gave it full rights in my text channel. Still says permission denied
Made a new user with no rights, but even then
if lvl_end > 1:
await ctx.author.edit(nick="[*]{}".format(username))
This is my code
it works when targetting the bot itself
Im guessing this is python
o sorry, yes indeed
Fixed it by playing with the roles
Is there a way to get this done on a normal server?
or does discord does this automatically?
@client.command(pass_context=True) async def play(ctx, url): server = ctx.message.server await client.say ('Music now playing...') voice_client = client.voice_client_in(server) player = await voice_client.create_ytdl_player(url, ytdl_options={'default_search': 'auto'} after=lambda: check_queue(server.id)) players[server.id] = player player.start()will this work
Kk
Any Way to get id of everyone who reacted on a certain message(Already Reacted)?
d.js
Uh Actually Before the Bot started
Yup i did that
but can i only find after the bot started
how?
Uh I am doing that
message.channel.fetchMessage("Some Id").then(m => {
let r = m.reactions.find(r => r.name === "๐");
r.users.map(u=>console.log(u.id))
})
use a database, when the bot goes down/ever since the last check you save the users then when it starts u compare the user list
โญ and โญ๏ธ arent the same for example
To get it
if it doesnt show, then use reaction.fetchUsers()
I think this would work why didnt no one tell this before ;_;
@grizzled raven Thanks Man it worked
hey {message: "401: Unauthorized", code: 0} from discordapp.com/api/users/@me
but i have
```js
fetch('https://discordapp.com/api/users/@me', {
headers: {
Authorization: 'Bearer' + code
}
})
.then(response => response.json())
.then(console.log)```
you have to exchange the code oauth redirect gives you for an access token
oh
thanks
oh god
what
all calls to discords api are supposed to be in the backend
frontend users may never see what is actually going on
with a function
make an api and expose an endpoint in your api that the front user can hit
What
then the backend can do oauth shit
aoh
Will i get pinged or notified when my bot is approved/declined
you'll get pinged in #logs iirc
and luca will dm you
Ok
hey since i dont know how to code can some one send me there glitch coding thing
no
ok thanks, any one else?
How can I find a channel by part of name (I need to find all guild channels with names includes "chat", but name can be "main-chat"). Discord.js
fuzzy search? just filter the channels which names include your string
ch name includes "chat"

@proper inlet
message.guild.channels.filter(c => c.name.includes("main"))
Thx
pls don't send the spoonfeeder emoji ;-;
was about to

If you keep doing it after being warned yes
is that a warning?
C# people, is there any functionality difference between, say public int x; and public int x {get; set;}?
No it's not a warning
@slender thistle AFAIK no there's no difference.
who can learn java?
Ok
Kinda given to you by default
@tight glen Google exists
I create some java plugin :u
So it's pretty much the same but the latter being more "explicit"?
How to get the Join Position of a User in js?
hey i have a my bot
Have an array of Member objects, sort by their join time, find the user in array and its index
How do I add to the site
@timid jetty top.gg
@slender thistle How do I use Sort and what's the Function of it?
Just give me a second to open Google
How do I solve this error?
Expected directory: node-v64-linux-x64-musl
Found: [node-v64-win32-x64-unknown]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/home/container/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-musl/grpc_node.node'
I get that when I try to use my firebase
Have you tried npm rebuild?
then why do you want a code in discord.js
for a friend
then probably tell your friend, asking for the whole code won't get him earlier, asking help to be pointed to the right direction would be better.
Well he tried
doesnt you can ask for the code if you failed
ofc I have, but I wont spoonfeed the code I took the effort to do to some people who just leech it without knowing how it works even
in some ways thats true, but most of the people here in discord dont do that anyways
tell him to find open source bots with that feature on github
Then why did I ask here use ur brains people
use ur brains people
here's the person asking for code telling us to use our brains
use your brain to make the command 

Quoting my message from a few hours ago, "Straight up saying "I don't want to put effort into learning so give me ready code""
How to make progress bar in canvas discord.js
Mute command can be made in 1 line, its that easy...
everything can be one line in js
not best mute command, but working one ^
Does he want a mute command in js or English?
I know how to do it in English
@glacial mango you got that error because you were trying to use a binary file that was made for windows not for linux, run npm rebuild to fix that
you have to normalize case
code is case sensitive
just convert everything to lowercase before comparing for example
@quartz kindle you can give the exact code
what language?
js
usually it's something like text.toLowerCase or something similar
tolowercase() ===
<string>.toLowerCase()
tnx
toLoveCase()
That always returns true, because toLoveCase() loves everything equal
a field can't have the title and description on the same line
you can try Embed.setDescription
only one setDescription per embad message ?

yes
yes, only 1 setDescription, but you can add multiple lines of text with \n
but the lines number is dynamic
you can generate the text right before displaying it
K
at the moment you dynamically add fields, you can dynamically create the text to put in the description
@blissful scaffold actually field can have.
embed.addField("title", "value", inline);
on js
and java
that does not put the title and value on the same line
if you set inline to true it puts multiple fields next to eachother,
with inline set to false every field is below the previous one
nah, sehrik tried to put the title and value on 1 line
@summer torrent still i need to generate a string
@blissful scaffold thanks for the idea
it worked

Anyone give me some information?
The sky is blue
What information do you need?
I want to know that which bot can dm all member in server using 1 command?
Please
Those bots are breaking the Discord rules and are not accepted on this bot list
Ok. Which bot is perfect for moderation without MEE6 & Dyno
This is the wrong channel for these questions, #general is where you want to be ^^
Ok
bot.on('message', async message => {
const args = message.content.split('4 ').slice(1)
if(message.author.id != bot.user.id) return;
if(message.content.startsWith(`${prefix}playing`)) {
message.delete();
bot.user.setActivity(args.join('3 '));
} else if(message.content.startsWith(`${prefix}watching`)) {
message.delete();
bot.user.setActivity(args.join('2 '), { type: 'WATCHING'});
} else if(message.content.startsWith(`${prefix}listening`)) {
message.delete();
bot.user.setActivity(args.join('1 '), { type: 'LISTENING'});
}
});
Ok you arenโt supposed to use else if, else and if
When you set your status
Also donโt delete the message
Because itโs not a command a user can type
yeah I want to do it so, when I write #playing mygame then the status is playing mygame
and i dont know how i have to set the Bot status with an other way
ok
@fluid sapphire which lang
@earnest phoenix how can I do it in a better way?
Np
is it better to assign a huge list of variables or initialize them, aka is there better performance on one vs the other? for example
const int one{1};
const int two{2};
...
vs
int one;
int two;
...
one = 1;
two = 2;
...
just looking for performance here
hmm depends on what language
c++
it probably won't matter, but using the variable before it's been assigned is a no no
Cxllm is it always negative or just sometimes, share code.
one line command handler ```cates.forEach(c => fs.readdir("commands/" + c, (e, ff) => ff.forEach(f => client.commands.set(f, require(./commands/${c}/${f})))))
k
yes i want few lines as possible
isn't flawless but close
trying to do like on java, command class, and every command extends it with own propeties
seems harder on js

really
would you like a drink with that
that is API abuse so no
emoji text
can you stop speaking caveman and actually use comprehensible english
ah yes, caveman flags now?
no mute ๐
@weak parrot
@night thicket asks for 
stop
๐ค
How about I decide that rather than you do
gosh dude
@night thicket We do not spoonfeed commands here ("free commands") and sending messages to all guilds is API abuse so I'd suggest not even looking into it
noo
You have to add your bot yourself
me low speak
What is your native language
i don't understand you i don't have english
i think he is turkish
ye
@flat pelican qt if you're free, mind lending this fellow a hand?
It takes around a week for you to be approved
message website
Bot awaiting approval - Please be patient, us humans take time to verify bots!
It takes around a week for you to be approved

really
Like that message says it takes time. Please read #502193464054644737 for bot approval related questions. It currently takes between 1 to 2 weeks before your bot gets checked
oh ok wait
https://eri.party/cmb @night thicket
This is #development not #general. Please move to #general
ok
await ctx.command.invoke(ctx)
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 721, in invoke
await self.prepare(ctx)
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 685, in prepare
await self._parse_arguments(ctx)
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 599, in _parse_arguments
transformed = await self.transform(ctx, param)
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 445, in transform
raise MissingRequiredArgument(param)
discord.ext.commands.errors.MissingRequiredArgument: member is a required argument that is missing.``` ```@bot.command(pass_context=True)
async def play(ctx, url):
server = ctx.message.guild
await bot.say ('Music now playing...')
voice_client = bot.voice_client_in(guild)
player = await voice_client.create_ytdl_player(url, after=lambda:
check_queue(guild.id))
players[server.id] = player
player.start()``` what do i need to do
read the error
I have spent about a week try a lot of tutorials but not a single tutorial gives me a straight answer
MissingRequiredArgument: member is a required argument that is missing.
@outer niche
i did i do not know how to fix it
Read the error smh
python makes it so easy to read
member is a required argument that is missing.
you are not passing it something that it needs
but how do i fix it
whar how
do you not know how functions work
are you sure that's the command it errors out on
You're not specifying a member when executing a command
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\bot.py", line 863, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 728, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\culan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 88, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Bot' object has no attribute 'say'```
'Bot' object has no attribute 'say'
well i can not reesd
'Bot' object has no attribute 'say' and your functions r fucked
uuuuuuuuuu
have you tried reading
bot.say ('Music now playing...') its not a procedure that you've just slapped perenties on its a function
aka
NO SPACES
fug
๐ Read the docs and Learn basic python ๐
Cant reed the docs

I have a disability
having a disability does not prevent you from reading the docs, if anything, it makes it harder but not impossible. stop using disabilities (that you may be possibly faking) as an excuse for not doing something intentionally. thanks.
I have a reading disability cannot read literally
you just read my message
I am not my program is
..your program cant read?
The program reads the stuff out loud to me
you started responding as soon as you saw my message, TTS would have no time to say it out loud by the time you started responding
you can do that same to docs
Except I cannot because the program does not work with internet-based programs such as Google
culan, what do you need help with?
what you're using right now is a website too, it embeds chrome
Well I literally gave you an example such as Google it will not work that's where opens not Discord
there are hundreds of TTS Plugins for browsers
yes, look up
yes we have covered this
ah yes, discord wasnt scrolled down again
Oh my God freaking read the message it does not work on such things as Google in the regular internet
this is an xy problem by this point
shouldnt they be figuring out that say is not part of bot
they got caught up in their own lies
for being lazy
also, if you have a reading impairment, your guardians would make sure that you would be able to use TTS on everything, including websites
so for the sake of not offending somebody, stop lying
there are tons of text to speech apps for blind people, everything can be turned into speech
firefox and chrome both have them built in i believe but also loads of plugins
Unless you're going to come over here and download it on my computer it's not happening
And from what I have seen neither of them have them
this is hilarious
how the hell are you writing code in the first place if you can't "literally" read
All right I'd literally don't care this is not helping me at all
this conversation's been nothing but people helping you with your problems for the past 10 minutes, you're being mad that you're not given what you want instantly
https://chrome.google.com/webstore/detail/chromevox-classic-extensi/kgejglhpjiefppelpmljglcjbhoiplfn?hl=en
This is a chrome plugin created by google
everything has some support for tts
All right I am going back to building in my stuff now
cya!
hey guys
let addOnA = [
"rblxintergrate",
"npm",
"dovps",
"sc",
"ecc",
"none"
]
let addOnsA = addOns.split(" ")
addOnsA.forEach(a => {
if (!addOnA.includes(a)) {
return message.channel.send("Not valid add-on ID.")
} else {
return true;
}
})```
it returns the message
but keeps on going on
with the rest of the code
you can't break a forEach function except throwing an error inside of it
re-read my message
.
i have no idea what your goal is but i'm assuming you want to exit the loop once you find a match?
kinda
i think you can use some
returning true will continue the loop
returning false will stop it
I don't know if it's the same in JS, but in a lot of languages you can break a loop with break
some is a function right
oh yeah
do what you want inside of it
you just need to return a bool to tell it what to do next
async def play(self, ctx, *, song : str):
state = self.get_voice_state(ctx.message.server)
opts = {
'default_search': 'auto',
'quiet': True,
}
if state.voice is None:
success = await ctx.invoke(self.summon)
await self.bot.say("Loading the song please be patient..")
if not success:
return
try:
player = await state.voice.create_ytdl_player(song, ytdl_options=opts, after=state.toggle_next)
except Exception as e:
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
await self.bot.send_message(ctx.message.channel, fmt.format(type(e).__name__, e))
else:
player.volume = 0.6
entry = VoiceEntry(ctx.message, player)
await self.bot.say('Enqueued ' + str(entry))
await state.songs.put(entry)
``` will this work
short answer no because python dont work like that
oof
you're legit cutting off the IF statement blocks
How to get all guild features?
I've tried message.guild.features.map(f => f).join(", ") but does not work somehow
im not sure but does it not should be client.guilds.features?
is voice_client now VoiceClient
read the docs
i am going with yes

that answers your question then
so yes
no
looks like VoiceClient is the class and voice_client is the way to call it
oooooo
same same, its python so its weird ๐
so this is fine voice_client = client.guild.voice_client
try it and see
I have a feeling the next line on this command is wrong but I do not know
try it and see
It is so close
I often start to doubt myself when my code runs without any errors
The error log that shows exactly where I screwed up is calming to me and it gives me work ๐
ok so i know this is part rite how can i fix it client.guild.voice_client
well by reading the docs it will tell you wether its a class or a function
and that will tell you how to fix the line
hint
returns
It is just saying client is not defined
well have you even got the client object in your code
then it's time to define client
or are you just expecting it to pull it out of thin air
Although that would be cool no
Just define client globally across all files 
How
making everything global makes it a lot easier 
how can i do that
too advanced for u rn, but you still gotta get the client object
so where ever your code is
you need to pass / get the client object
i am cunfused
async def play(ctx, url):
server = ctx.message.guild
await ctx.send('Music now playing...')
voice_client = client.guild.voice_client
player = await voice_client.create_ytdl_player(url, after=lambda:
check_queue(guild.id))
players[server.id] = player
player.start()
yes
you havent passed client
or got client from ctx
so what do u expect python todo
how can i pass client
by learning the basics
i dont know python, but I think you can get client from ctx like in most other APIs
yh you can
I might say too much if I think it might be ctx.client or I could be wrong
like i would say you need to learn how functions and classes work in python
I will stop feeding ^^
cuz u seem to be quite new to the concepts
tbf i dont even think you need the client object
well actually you dont
because thats not how client and guild works
Are you serious is it literally just ctx.client
try it and see
i mean you dont even need client.guild
because client does not have guild objects
because reasons
voice_client = ctx.client.voice_client so this
https://cdn.discordapp.com/attachments/272764566411149314/666008498722570260/unknown.png
You posted this earlier, it says it's related to a guild
ctx.client.guild.voice_client so this
the client does not know what guild you are talking about
i have it open
notice how voice_client is under the guild object
not client
thats a very key thing
now if you would talk about the message then it might be a different story
so i need to tack out client
try it and see
I just checked your code and on line 3 you got server = ... that is a very useful thing you got there
so
use it
I'm still confused
Culan, you got this line: server = ctx.message.guild
What can you do with that?
might help you if you read up on python a bit more
than jumping into oop with what aPpears to be no knowledge of classes or functions
I don't see how that wine has anything to do with the line I'm on
Oh wait am I really that stupid
this is basic basic basic basic python
๐ _
I give up
if you need to know something about phython
So instead of voice_client it should be server
learn it or go to the docs
because xy problems are bad
Culan, you really should do some tutorials and read the basic documentation
spider left
yeah
oh?
that's a rip
Then I don't know what you're trying to get at with ctx.message.guild because I does not look like it has anything to do with the line I'm on
LEARN THE BASICS
they posted a short image in #memes-and-media and left
I liked spider ๐ฆ
but please
learn that
stop with d.py for now
learn the basics of python
like functions and classes
then come back
I know basic python I have made an entire game with python
you havent
Yeah I have
you clearly have no idea how functions and classes work
we can get that off the whole thing of you not understanding how client does not have a guild attribute
and that guild is its own object
What's going on in here 
and that you can assign objects to vars
xy problems @twilit rapids
and use them again and again
this can all be solved
by READING THE DOCS AFTER LEARNING THE BASICS
this is beyond an xyproblem
xyz problem
help vampirism at its finest
this is failing to learn python
so this ctx.guild.voice_client
try it and see
very descriptive
i hate music bots to mack
they're pretty easy
i see
'NoneType' object has no attribute 'create_ytdl_player' i can not fined aney thing on yhis
culan, I just saw your messages and it seems like you should re-learn python or something
i am gesing ytdl player suz not exzest
I know it does not exist anymore but I cannot find it in the documentation what to replace it with
Bdscript ?
What is the discord.js property if the user account is new
there is none, but you can probably guess based on the creation date.
You can listen to user join events to get informed when someone joins a server
and to check if the account is new you have to check the creation date
player = await voice_client.create_ytdl_player(url, after=lambda: 'NoneType' object has no attribute 'create_ytdl_player'
let addOnA = [
"rblxintergrate",
"npm",
"dovps",
"sc",
"ecc",
"none"
]
let addOnArgA = addOns.split(" ")
addOnArgA.some(a => {
if(!addOnA.includes(a)){
message.channel.send("Not a valid add-on ID.")
return true;
} else return false;
})``` am i doing something wrong
When do I start saying that your voice_client is None
what
What do you not understand in my message
You are using create_ytdl_player on a None type
ok so
"so" what
it means there is no voice_client
It means whatever that is stored under voice_client variable returned None
Is your bot connected to a voice channel?
How are you declaring voice_client
i think
The question is "how are you doing X", not "are you doing X"
>how are you declaring
>I think
async def play(ctx, url):
server = ctx.message.guild
await ctx.send('Music now playing...')
voice_client = ctx.guild.voice_client
player = await voice_client.create_ytdl_player(url, after=lambda:
check_queue(guild.id))
players[server.id] = player
player.start()
yeah what
function
<-----enjoying the show of the ever broken while loop
nice
Today I am learning more Python than I have ever before and Im not even ready any documentation
I still do not get how that is wrong
Your bot is not connected to voice channel in the guild you're running the command in
Culan, we know that voice_client is a None object
there won't be a voice_client if the bot is not connected to a voice channel like shivaco said
so make sure that you actually SEE the bot inside the voice channel when you use that command
It is connected to the channels
channelS? it can only connect to 1 voice channel
https://hastebin.com/azohojoxef.js
Something here is making the embed get sent to a discord channel multiple times/loop and I don't know what is causing it.
If I could get some help when you guys can, that would be nice. (Google isn't helping me)
Echo is your bot? it looks like it is sending sound now with the green circle around it
Yee
Like I don't know how else to put it than it is connected when I am running the command
@jaunty stump your code is a giant mess
you're doing something weird that makes no sense : await message.guild.roles.filter()(role => {
@jaunty stump you loop over every role and if the role IS NOT the same as your highest role then it sends the message.
That is more than once if there are multiple roles
filter is not a promise, you dont need to await it, and it doesnt return a function, not sure how your code is not even causing errors
@quartz kindle do you have the code of mute and tempmute?
? what code
of mute and tempmute for my bot
there is no "code"
@blissful scaffold I do not get it because it is connected
you have to code it yourself
Mmmmm i say code of glitch
programming is not a bunch of codes that you can copy and paste
it depends on many factors
@outer niche I never read the python documentation, so I know just as much about python as you do
ammmm but i can edit the code for my method
bruh
you need a mute role, then you add that role and remove it
WHy
Mmmmm
why do you not have a condition for your loop? nevermind
i have this
if (!addOnA.includes(addOnsA[i])) return message.channel.send("Not a valid add-on ID.")
does that count
i created a bot oficial , but the code of mute i cant make this , but i dificult for me
let addOnA = [
"rblxintergrate",
"npm",
"dovps",
"sc",
"ecc",
"none"
]
let addOnsA = addOns.split(" ")
for (let i = 0;;i++) {
if (!addOnA.includes(addOnsA[i])) return message.channel.send("Not a valid add-on ID.")
}





