#development
1 messages · Page 885 of 1
well v12 is different from v11 ya know
I guys I would really really need a way to make my bot quit all the guilds he's in, anyone knows how?
loop through guilds and leave each
@knotty steeple I've tried many times but could't figure out, could you help me?
how are u doing it
Wait
Can't spam my server there
try {
let toSay = "Bot is under maintenance please KICK HIM FROM THE SERVER and reinvite him later today. Join the discord support server for more info ---> "
client.guilds.cache.forEach((guild) => { //for each guild the bot is in
console.log(guild)
guild.owner.send('Bot is under maintenance please KICK HIM FROM THE SERVER and reinvite him later today. Join the discord support server for more info ---> ')
});
}
catch (err) {
console.log(err)
console.log("Could not send message to a (few) guild(s)!");
}
``` code here ```
I've tried to send a message to each but it aslways errored
you cant send messages using a forEach loop
well ur not actually leaving the guild in that
that will send them all at once and get you rate limited
well ur not actually leaving the guild in that
@knotty steeple yeah ik just trying to send a message but won't work, should it work if I use guild.leave()?
yes
you should still not use a forEach loop
Ik but I just launched it on top.gg and I need to fix some thing
He's just in 3 server
lmao
I need to switch database completely
you should still not use a forEach loop
@quartz kindle what do I need to use?
a for loop with async/await
for loop
for(let entry of client.guilds.cache) {
let guild = entry[1];
await guild.leave()
}
use 2 versions of your bot
1 public version and 1 private/testing version of the same bot, under a different prefix and/or locked to owner only
when the private version is good enough, push the code to the public version and restart
K thx
now I gotta figure out how to install mongoDB on a ubuntu server xD
Luckily I think I found a guide
can yt blacklist your ip for having music commands?
maybe
hmm
How i can record audio?
if you want to record audio from a voice channel i believe that's against the TOS when making a bot
it is yes
but correct me if im mistaken
and u already asked that
Terms of Service
you agreed to them when you signed up
it's a massive breach of privacy to record somebody's audio
what does this mean??
An error message
yeah but what does it mean?
the console ony logged that
my code ```js
if (message.content.startsWith("k/play")) {
const voicechannel = message.member.voice.channel;
if(!voicechannel) return message.channel.send("**Necesitas estar en un canal de voz para usar este comando**");
try {
var connection = await voicechannel.join();
}catch (error) {
console.error(error);
return message.channel.send(`Log del error -> ${error}`)
}
const dispatcher = await connection.play(ytdl(args[0]))
console.log(`${message.author.username} [${message.author.id}] Ha puesto la canción ${args} con el comando play | En el canal #${message.channel.name}`)
dispatcher.on('finish', () => {
console.log('Canción terminada');
voicechannel.leave();
})
dispatcher.on('error', error => {
console.error(error);
return undefined;
});
dispatcher.setVolumeLogarithmic(3 / 5)
} else if (message.content.startsWith("k/stop")) {
message.member.voice.channel.leave()
return undefined;
}
v12?
yup
try instead end to finish
like that??
that doesnt help
tried?
look at the code again, is that good?
can you try first?
ok
msg.guild.members.get(args[0]); is not an function help plz
@earnest phoenix now this
@earnest phoenix are you on v12?
yeh
?¿
Can I join a server throught it's ID?
No
k
joining servers through your bot without authorization from someone with relevant permissions is a breach of privacy and against tos
How do you use fetch_message in discord.py? I've tried casting it to a channel and the Bot object but neither of those work.
have you tried this thing called: Reading the docs
I honestly have. In the API reference the function is located in the text channel category, but when I try using fetch_channel to get a channel object and then fetch_message on that channel, it doesn't work.
OK.
channel = bot.fetch_channel(channel_id)
message_id = reaction.message_id
message = await channel.fetch_message(message_id)
This is in an on_raw_reaction_add() function
fetch_channel is a coroutine

Emoji in my code change to '??' :v
?¿?¿
update to v12
i am in v12
clearly we're missing details
it's probably just discord asking for the bot to reconnect
or u have bad net
i record audio with this?
<channel>.createStream
?
👏 in 👏 what 👏 language 👏
Recording audio is against tos so you can't
11 volts
my bot was accepted :D
Recording audio is against tos so you can't
@golden condor mee6 can
it can record actually
wait for me
When using discord.py, why will this script not DM someone? Are my server perms messed up?
async def on_raw_reaction_add(reaction):
message_id = reaction.message_id
message = await channel.fetch_message(message_id)
author = message.author
user = await bot.fetch_user(reaction.user_id)
if channel_id == 702110928656662528 and str(user.name) != "GeekBot#1601" and reaction.emoji == '✔️':
author.send(f'{user} will be attending your event!')```
@minor valley thumbs up!
That's why .setSelfDeaf exists
it can record actually
@pale vessel ?
they have a feature for that is what i meant
oh what
i might remember it wrong
so i cant?
I don't remember that
No you can't
We won't help you to break the ToS
But do if you must, you have been warned.
yeah !record
u cant record without the user knowing
but the command is posible?
yes
str(user) = "CmdrNorthpaw#1716"
mmm
Yes, but I need to check if the user name isn't the bot. So that the bot doesn't DM me that it is joining the event.
always compare ids not usernanes and discrims 👏
OK.
user.bot sounds appropriate
So and not user.bot?
Looks good
👍
Also you might wanna use all
What does that do?
So if all(user.bot)?
No no no
Instead of doing x1 and x2 and x3 you can do all([x1, x2, x3])
And use newlines in the arg to make it more readable
all([x1,
x2,
x3])```
Still no DMs from the bot.
What's channel_id declared as
channel_id is reaction.channel_id
console always shows 'unknown emoji' :V
\📜
{
message.channel.send("test").then(async (message) => {
await message.react("✅").catch(console.error);
});
}
hmm?
my console shows 'Unknown emoji'
are you sure that's the correct tick?
yes
try js .then(sentMessage => { sentMessage.react("✅").catch(console.error); });
https://pantsu.review/UmuQQBC.png i have quite possibly made a massive mistake with allowing people to do this
but hey-ho
message: 'Unknown Emoji',
method: 'put',
path: '/channels/699656456122794075/messages/702511526288031744/reactions/%3F/@me',
code: 10014,
httpStatus: 400
"Unknown"
Well python is too hard for me XD
what db would be best for storing objects like this example for every guild?
{
required: 3,
requiredremove: 2,
blacklisted: ["171823917291871929", "89191029380108273819", "..."],
whitelisted: ["829199192837371819", "99281928101818372891", "..."],
roles: [
{id: "19292891901038191", stars: 25},
[Object],
//...
],
bitfield: 128 /* settings bitfield */,
prefix: "star ",
emoji: "⭐",
stars: {
first: "⭐",
second: "🌟",
third: "💫",
fourth: "✨"
},
lbdata: {
//...
"738817387173727738": {
stars: 237,
downvotes: 7,
global: 21,
starboarded: 79
},
"828271873871738830": [Object],
"372636191038371910": [Object],
//...
}
}
depends
sql or nosql
~~i literally gave you what im storing what do you mean it depends
~~
@summer torrent so a database 
if you need the fields to be independently indexed and accessed, go for nosql
if you will only even access/index the entire object at once, go for sql
mongodb 
for example, if you have a key to index the object, and you only ever access it by this key, you can use whatever db you prefer
what about setting the fields? would any of them need to change the whole object?
dont know why but yeah
but if you need to access specific fields in a specific object, then you need a database that supports json indexing, such as mongo
if you go for sql, most likely yes, unless its a db with native json functions
hm
well it does depend, like for some commands i would just get a field, but for some events i would take the whole object
i guess i might stick with nosql actually since the fields arent that deep
in my opinion, the easiest and probably most performant way would be to store the entire object in any kind of db, and keep a cache of loaded objects for accessing specific fields
okay
but i think most nosql databases can be extensively optimized for that
is it against the tos to ask for roblox exploits?
im making one
but i need help
c#
i need to add antiban and such but yeah i dont know how to and there isnt a guide to be found about this
Don't you think you're just violating ToS/community guidelines of another service
how do you make an economy system with discord.js
Does anyone know why the Discord website says If they (a member) have a nickname there will also be a be a ! after the @. if it's not true? My bot has no nickname (in all guilds) and the mention is still like <@!id>.
i only use it for personal educational use
Does anyone know why the Discord website says
If they (a member) have a nickname there will also be a be a ! after the @.if it's not true? My bot has no nickname (in all guilds) and the mention is still like<@!id>.
@nocturne grove Because it used to be like that
You can never know what Discord will do with their mention formats
so that is deprecated? What are the new rules?
Currently the <@!id> is always used
^
you should still check for with and without the exclamation mark though, better on the safe side
^^^^
okay many thanks!
this one
it's weird though, as you can still do <@id> which will give @nocturne grove
if you're sending from your mobile?
can you try mentioning yourself? i want to see what it would output on desktop?
nope yeah
yes this is from pc:
@nocturne grove
add a backslash
oh sorry didn't understand you
nice
interesting
gotta click it first
well now it didn't add an extra mark on PC
interesting
discord being discord as usual
use a regex on this one
I will test it really quick and notify you
^<@!?id> (^ if you need to make it the first thing in the message)
ohh I did it seperate right now, but that looks cleaner 🤔
btw, having a nickname and typing \@mention on pc will give a !
bots seem to always receive with !
interesting
wait no this is scary
my bot receives it from pc with ! and phone without !
if I'm just doing a real mention
😅
well thanks for your mental support on this one
^<@!?id> (^ if you need to make it the first thing in the message)
@pale vessel I should use something like that, like this, right?
else if (message.content.startsWith(/^<@!?${client.user.id}>/)) ...```
but that doesn't work
okay thanks will try
i just do if(startsWith(<@>)) || startsWith(<!@>)) xd
yeah that works too
oh well I had that
more performant than regex
yeah
Guys can I find a fast and good vps for 0.99€?
you need a little more than that
fast and good? probably not
read pins
depends
I see many of 4 euro's, but idk if they're good
k
however you can find some pretty good stuff for 2.50-3 euros
kk
like if you wanna have a vps with nothing running, then yes
can you suggest me a site for buying vps?
read pins, again
do you need it to be in europe or can it be in usd?
i'm european
the two most common currencies
French ?
european servers might be cheaper but they have higher ping, because discord's gateway is in the us
contabo has one for 4 euros
@earnest phoenix #memes-and-media
Quick Question, to separate lines like ctrl+ enter does, apparently i cant use \n, is there anything else i can use besides writing a lot of single message.member.send lines? couldn't find anything on google, they all keep saying use \n
why can't u use \n?
I guess you're using discord.js, right?
weird then, but try \r\n
👍
newlines depend on the platform you're developing on
\n works on linux
windows uses \r or \r\n
node.js offers a constant for platform-specific newlines
newline = require("os").EOL
bad
i can speak spanish here?
nope
but you can speak spanish in #memes-and-media
You can always put it through translate and we can try help
How do I do that if the bot exceeds 2000 characters, the message will send it in .txt?
But try only include the specific parts of the code, and make sure to hide any tokens
tokens?
i mean
the bot send in .txt
not me
Hallo ich brauche Deutsche Hilfe
sorry for ping
well what is this
Why is this DM script not working?
async def on_raw_message_react(reaction):
channel_id = reaction.channel_id
channel = await bot.fetch_channel(channel_id)
message_id = reaction.message_id
message = await channel.fetch_message(message_id)
author = message.author
user = await bot.fetch_user(reaction.user_id)
author.send(f'{user} will be attending your event!')
What part of thie is wrong?
How can I randomly select a few of the users on the list?
Have you tried python's rand library?
I have a question... Lets say... Someone dm'd me wanting to help me with my bot. And They asked for the bot token. would I give it to them? Because I thought the token only ran the bot. so why would they want the token...
No, i used js
@clear wraith Don't give them the token. They can write code and test it with their own token, but if you give them yours they could steal your bot and repurpose it as a spambot.
@clear wraith they can use your token and do malicious stuff to the guilds the bot's in
Oh boyyy
by the way, what's your bot token? let me check for leaks
@finite plover I'm using javascript, can you help?
Nope, sorry, I use discord.py
make a loop and pick a rando
The same user can come across
.random(3) for example
then make it a number?
show error
I did not understand anything lol
connection.play(ytdl(`${YouTubeLink}`), { volume: 1, filter: 'audioonly' })
connection.on("end", end => { })
``` - This is correct to do something even the video ends in v12.2.0
@proven beacon .random(3) doesnt exist in js
you need to put your list in an array or similar, then do array[Math.floor(Math.random(array.length))]
I want to attract as many users as I write in args
@kind quiver find it out from other libraries whats has sharding, eg. discord.py or discord.js
@proven beacon show code
connection.on("end", end => { })``` - Should this fire when the music ends?
@quartz kindle dm?
why say .send undefined?
if(command === 'setsuggest'){
let canal = await sugerencias.obtener(message.guild.id);
let channel = client.channels.get(canal)
let mencion = message.mentions.channels.first();
sugerencias.establecer(message.guild.id, mencion);
channel.send(`${message.author} ...`)
}
@quartz kindle yes, there is
help?
okay, what do you need help with?
what is undefined?
send
@proven beacon vk1ses is a channel, there is no channel.members afaik
@earnest phoenix you mean "cannot read .send of undefined"?
yes
that means channel is undefined
TypeError: Cannot read property 'send' of undefined
let channel
that means channel is undefined
i put let channel
yes but there is no channel
oh
which means the channel was not found
what version of discord.js
Yes Tim? 🤔
@proven beacon do like you did before with .random, but make args[0] a number
Number(args[0])
then args[0] is not a number?
Error : count has be A number
Sprry
Sorry
The count must be a number
its error xd
Why
you did console.log, what does the console say?
Yes
for args[0]
i'd probably use parseInt instead
lmao
can i get number of guilds without websocket connection?
i know i can hit /gateway/bot to get an estimated number / 1000
uhh i dont think so
thats a shame ;l
technically if you post to dbots you can get it from there
so if i post "i dont know my guild count" to dbots they'll send me the actual count back yeah?
😉
oh I thought you already knew your guild count and wanted to find a way to do it without the bot being online
yeah i get you
i want to find the exact count without starting 400 websocket connections
@kind quiver you lib dev, or just bot dev that doesnt use libraries?
(i mean like discord.js)
its the worst thing
go to discord developers discord
because I just got the message
yea but why here?
i wont be able to add 100 servers
@earnest phoenix
what lib
@royal portal thats only enforced in octuber
also i asked why u posted here
My bot rebooting by itself and if an error occured (even if unnecessary), it rebooting. And it responds a little bit.
Lib: discord.js
discord.js version: 11.5.1
I?
What is pm2?
U have marriage bot?
process manager
😦
read the errors then
I've never met anything like this before
Cannot send messages to this user is error
no?
or 11.6
if u update to v12 ur getting urself into more shit
Don't worry I know discord.js
I found the error
Uncaught Promise Error: TypeError: Cannot read property 'id' of undefined
in ${channel.guild.id}
guild != exists
no
channel.guild.id on channelCreate event
I can't fetch reactions anymore with Eris?
https://abal.moe/Eris/docs/Message#function-getReaction
https://abal.moe/Eris/docs/Client#function-getMessageReaction
Both of those don't work anymore... What happened? 👀
Returns empty array
One of my commands basically stopped working out of nowhere because it used that
I've even tried using those methods on another bot, they just simply don't work anymore
Bot was accepted today. But it seemed to have done something regarding my code. I am using V11.5.1 and so It makes my life easier and I used the code.
client.on("ready", () => {
console.log(`Hi, ${client.user.username} is now online!`);
client.user.setPresence({
status: "dnd",
game: {
name: `${prefix}Help overhaul complete | ${version}`,
type: "STREAMING"
}
});
});
But now the bot will NOT display itself as DND anymore.
@late hill getMessageReaction() worked for me. it could be your code. for instance, did you provide a string (like the docs stated) instead of a number?
is it possible for bot to check attached file size?
oh
It just doesn't work with custom emojis
11.5.1
ty
Do custom emojis work for you
i'll try
@earnest phoenix status sometimes doesnt work for many people and nobody knows why
Worked fine all the time before the acceptance.
And my other version of the same bot is still displaying the same message fine.
🤔 Doesn't it have to do with the website linked to the bot or is that me being an idiot.
And it's back nvm.
Just a hard restart worked.
wth
worked on the second try. first try returned an empty array.
oh
figured it out?
I see, it works the second time for me too
ah, nice
but why 
it'll probably fixed by itself eventually
Maybe it's a discord issue?
at JSON.parse (<anonymous>)
at Object.<anonymous> (/app/index.js:5:15)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)```
Anyone Help
Thats The Code
maybe an unnecessary colon somewhere?
also, is that a json database? doesn't look very good
Thats My Code Any I Checked Evey Single Line```
@restive furnace libraries don't do what I need
db.json
So I just manually used a get request and got the same issue
No result on the first request
@still lily you use a db
@icy crane no
@late hill try fetching the message first, then fetch its reactions
Please don't tag people to help you, someone will get to you if they are aware of the issue/want to help
connection.play(ytdl(`${song.url}`), { volume: 1, filter: 'audioonly' })
message.channel.send(embed);
connection.on("end", end => { })
``` - Will this work for v12.2.0 discord.js?
change end to finish
connection.play(ytdl(`${song.url}`), { volume: 1, filter: 'audioonly' })
message.channel.send(embed);
connection.on('finish', finish => { })
But it doesnt work
Also no error
d
.addField("**Guild Owner:**", `${message.guild.owner}`, true)
.addField("**Role Count:**", `${message.guild.cache.roles.size}`, true)
discord
cmon
what is the problem?
why
want the whole command? 
yes pls
you didnt even say what is wrong?
const Discord = require("discord.js")
module.exports.run = async (bot, message, client, args) => {
console.log(message.author.tag, 'used the serverinfo command.')
let sEmbed = new Discord.MessageEmbed()
.setColor()
.setThumbnail(message.guild.iconURL)
.setAuthor(`${message.guild.name} Info`, message.guild.iconURL)
.addField("**Guild Name:**", `${message.guild.name}`, true)
.addField("**Guild Owner:**", `${message.guild.owner}`, true)
.addField("**Member Count:**", `${message.guild.memberCount}`, true)
.addField("**Role Count:**", `${message.guild.cache.roles.size}`, true)
.setTimestamp()
.setFooter(`darkness`, bot.user.displayAvatarURL);
message.channel.send({embed: sEmbed});
}
out of context to you guys
btw message.guild.roles.cache.size
and guild.owner may be null
yes, iconURL is a function now
displayAvatarURL is also a function
same with avatarURL
guild.owner is indeed null
yeah, youll have to fetch the owner by ID in that case
do i need to specify id
should be good now?
well is guild defined?
no, again 
we use <guild> because it can be defined as whatever
hm
yes exactly
no
or misunderstanding
misunderstanding
last row should also be message.channel.send(sEmbed);
send code again
xD
const Discord = require("discord.js")
module.exports.run = async (bot, message, client, args) => {
console.log(message.author.tag, 'used the serverinfo command.')
let sEmbed = new Discord.MessageEmbed()
.setColor()
.setThumbnail(message.guild.iconURL)
.setAuthor(`${message.guild.name} Info`, message.guild.iconURL)
.addField("**Guild Name:**", `${message.guild.name}`, true)
.addField("**Guild Owner:**", `${client.users.fetch(guild.ownerID)}`, true)
.addField("**Member Count:**", `${message.guild.memberCount}`, true)
.addField("**Role Count:**", `${message.guild.cache.roles.size}`, true)
.setTimestamp()
.setFooter(`darkness`, bot.user.displayAvatarURL);
message.channel.send({embed: sEmbed});
}
change iconURL into a function
same with displayAvatarURL
also, I dont THINK memberCount is a thing anymore in v12
so, for the owner, you need to fetch it by their ID
oh
@versed narwhal
I just realize
d
when you tried to fetch
in the code you send above
you used client
when you pass in bot
so
Hello im triyng to host my bot in Vultr, but i can not unstall discord.js in the server does anyone knows what im could be doing wrong?
ah yes, thank you lavalink, very cool Something broke when playing the track.
yeah and now
i tried to set it with client
to make it usable
and it outputs the same as without
just change it to bot
oh
so
i was even already defining bot
and had client in
that wasnt a thing in v11 i suppose
wrong channel
so, bot.guild.iconURL?
no, its a function
uhhh
do you know how to call functions you make yourself
not really, kinda rusty on this
function myfunction(a, b) {
//do stuff
}
myfunction(a, b)
been a while since i opened the project again
How to change this button font
holy fuck that is hard to read
and like, how can I personalize my bot's page?
get the css tag for the those tags and set the font-family tag
Hey how to get the Memory Usage and CPU Usages?
is generalization for all servers a very hard task? currently I've only written bots that have been programmed for a single server, with all the IDs essentially hardcoded. Does anyone have any recommendations for tutorials on generalizing bots to more than just one server?
is generalization for all servers a very hard task? currently I've only written bots that have been programmed for a single server, with all the IDs essentially hardcoded. Does anyone have any recommendations for tutorials on generalizing bots to more than just one server?
@vernal basin
I mean, have you tried databases?
If a coin system is only for one server for example, a db can make it multi-guild
@fresh kestrel what language?
@vernal basin just use an easier one then
Quick.db works fine for me
^ I can't recommended anything less than that
if someone wants a small easy db i always recommend sqlite
or my friend's pocket.db but idk about that 
Can anyone help me with repl
Its fine now.
ok
I want to know how to add when the bot is streaming
Yea
what library
wdym
how do u have a bot and not know what a library is
did u just watch a yt tutorial and copy code
No
then what do u use
I just forgot what that means
python
Ok so discord.py is your library
well idk about python lmao
yee
Have you searched the question on the official discord.py docs?
No
Okay
for what
I'm working on a bot that uses its own mention as its command prefix. This sometimes runs into the issue of people pinging the bot's permissions role instead of the bot because permissions roles have the same name as their bot by default. Would having the bot also respond to the mention of its permissions role (disabled by default, enabled by role input via command) be violating the bot behavior guidelines?
It shouldn’t do because that role can’t be assigned to anyone else iirc
Lots of people use this type of thing so it should be fine
Good to know, thanks!
Still confuse
Alright what did you find so far @true tundra
I found this
activity=discord.Streaming(*, name, url, **extra)
Yes good so did you look up the Streaming types?
yea
And...
@knotty steeple url checks out
lul
Okay so i go to streaming then
ammm i am hosting my bot in heroku but it doesn't support json files unless I pay ||which I can't offerd|| so I heard I can host the json files on google sheets , but I have 0 knowledge about google sheets , soo any yt videos recommendation
yes it is
then what should I do
uh dont use heroku
hmmmm then what other websites that support json files for free there ?
i want transfer my bot to an team, but i have this error : This action cannot be performed because the application is verified. Please contact support.
Same problem @true tundra ?
yea
What have you tried so far
Try something like this: discord.Streaming(name="My Stream", url=my_twitch_url))
await bot.change_presence(activity=discord.Streaming(*, YouTube, http://youtube.com/demoniceagleyt)
Why's the asterisk there
ok
Try my example
Wrap stuff around quotation marks if you want them to be strings
Ok
Also you need a Twitch link, not YT one
Try my example
@iron steeple it says its not defined
A proper Twitch URL
I did
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))
Incase it wasn’t clear enough
Don't go spoonfeeding too much 👀
🤭
not working
Did you get an error?
Poooost stacktracee please
This works perfectly fine for me
??
Post the whole error
ok
Just the important bit
await bot.change_presence(activity=discord.Streaming(name="
My Stream", url=https://www.twitch.tv/nexor_lazorak_yt))(name=f
"c!help | {len(bot.guilds)} Servers", url="www.$do1.com"))
^
SyntaxError: invalid syntax```
amm how do I get API links for action commands like !hug !pat , I tried giphy , tenor and gifycat and I don't understand what they want
Tho I can't read that on mobile
{len(bot.guilds)}
Do you have any idea what you are doing rn
Why have you set up and name twicr
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=https://www.twitch.tv/nexor_lazorak_yt))(name=f"c!help | {len(bot.guilds)} Servers", url="www.$do1.com"))
And no he hasnt
can u read that
?
🤦
You can only do change_presence(name=x, url=y) once
;-;
You can't do change_presence(name=x, url=y)(name=z, url=j)
I'm going to sleep. Night y'all and good luck with this one
gn
await bot.change_presence(activity=discord.Streaming(name="
My Stream", url=https://www.twitch.tv/nexor_lazorak_yt))(name=f
"c!help | {len(bot.guilds)} Servers", url="www.$do1.com"))
^
SyntaxError: invalid syntax```
DUDE

don't use name and url twice
I’ll answer it for him
or any clue of how Python works
Like this
await bot.change_presence(activity=discord.Streaming("My Stream", https://www.twitch.tv/nexor_lazorak_yt))
Dear lord
bruh
Closer!
wtf
That's half the issue
even i cant be this bad in py lmao
I said don't use it twice not don't use it at all
Atleast learn what a string, int, float is
Maybe you should stop commenting and help or just stay silent please
ok ;-;
Not you personally
ok
Idk what else
smh
You need to use kwargs like you did before
When making a discord bot before even attempting it you need to atleast a fundamental knowledge down
put the name and url back
You need to literally just remove the repeat in the first example
but don't double it
E.g just pasting a URL is gonna be interpreted as code not a string because there is no quote marks
how do i make gui apps in node besides electron
SyntaxError: unmatched ')'
Find some sort of C and CPP wrapper for a GUI ig
gay
This channel is for bot development Sammy-ette
amm how do I get API links for action commands like
!hug!pat, I tried giphy , tenor and gifycat and I don't understand what they want
@regal jacinth
What most languages that want a GUI use
Yeah.... so that means it’s for bot development lmao
mhm
;-;
wait
@regal jacinth are you using their actual APIs or what?
My Stream', url='https://www.twitch.tv/nexor_lazorak_yt'))(name
=f"/mhelp | {len(bot.guilds)} Servers", url="www.$do1.com"))```
How
if anyone does sql and js https://ptb.discordapp.com/channels/264445053596991498/272764566411149314/702638572381143040
Ah
back to square 1
Have a look for some images apis
giphy has their own api
@true tundra remove the last part with name and url
I made my logo circular, but how can I get rid of the white line?
css
Box shadow iirc
hmmm
With css
yea its box shadow
@true tundra I seriously recommend relearning the basics of python
I need to find which class does it
@true tundra remove the last part with name and url
@slender thistle for the prefix?
Box shadow
Oh alright
Prefix of what?
Best thing to do is use a live CSS editor
Ye
But I don't have like the whole thing
Normally they have a inspect tool with them to just click
I only have the code for the description
#bot-details-page .bot-img {
box-shadow: none !important;
}
I'm inspecting too
@knotty steeple ive checked the sql code, and it works for me.
remove the name and url for whar
did u run that exact code
yep, or within my database with my variables
We're back at square one with this guy oof
What you are doing is function()() which is wrong
though im using postgres
Postgres best db
weird
Other than datomic
.bot-img {
border: none;
border-radius: 50%;
box-shadow: none;
}
this didnt work
Because no overrides and proper pathing
Look at the difference between what u have and what Sammy posted
It makes a difference
Idk who is talking to me jst ping
So !important?
no
What you are doing is
function()()which is wrong
@true tundra
also whenever i try to log rows i only get 1 result
So what i do
Remove the second name and url
!important didn't work
So that you have Activity(name=..., url=...)
I did it didnt work
look at what i posted again
Is it the #bot-details-page?
.class .somediv overrides .somediv
only 1 result





