#development
1 messages · Page 1682 of 1
i will try
why is it blocking?
wdym?
i run another process?
another thread even
but what difference will it make?
it makes sense its blocking
but i dont get why
Don't ask me about synchronous shit, I just know it's blocking but not the 'how' 🤣
lmfao
any ideas though?
or just like you know it is?
@tasks.loop(hours=1)
async def delete_guild_data(self):
guild = self.gcollection.find({"in_guild":False})```
so like this?
@tasks.loop(hours=1)
async def delete_guild_data(self):
gcollection.insert_one(self.gcollection.find({"in_guild":False}))```
i am pro coderman
also i want to use find right?
not find one?
cuz i want it to replace ALL
Why the insert_one 
look shivaco you cant expect me to write good code okay
thats not cool
its like wanting a fish to climb a tree
after the fish had 3 years of tree climbing practice
didn't work
In what way didn't it work?
It didn't send the gif, or link
Hmm. That looks good. So the general idea is:
@tasks.loop(hours=1)
async def delete_guild_data(self):
guilds = self.gcollection.find({"in_guild":False})
for guild in guilds:
if guild['expires_at'] >= datetime.datetime.utcnow(): # under the circumstances that the `expires_at` is the datetime object of when the data will actually be deleted
self.gcollection.delete_one(guild)
It worked, the gif just loads
What are the URLs you use?
Are they local files, or webpages?
by webpages do you mean websites?
Mhm
yeah webpages
Give us an example of a url you use
https://tenor.com/view/yuri-on-ice-hug-gif-7192427
this is an example
Try rightclicking the gif and "copy image address" instead
ok
hi
how do i get sub bots ?
You don't
hi
just saying must be fake
you can do it with canvas
If it's called fake, it must be either too good or too bad for its own kind that people think it's impossible

the bot runs of Unix, so i had to come up with self made modules
wats unix
Linux OS
but ithink pepole didnt like hard work
pepole like bad bots 😆 and love it
If it looks fancy
[epic color]
+status
-are cool
what language u guys code in?
fortran
Python, sometimes love to play around in Pascal.NET
js
im just kidding lol
😂
lol
fortran lmao
python and js for me
lol
Damn
holy mf
i dont think my bot review will come back as "clone of ..."
OOOOOOOOOOOOF
nice

how do i delete a document in mongo?
monogdb ?
collection.delete_one
shiva in the rescue
k ty
i wend with a different db, google's prot-buff
bro shiv made like 99% of my bot kek
awesome
🤣
what langs did u do shiva?
I usually use Python, but we went recently over 8086 Assembly in college and I remember Pascal.NET from school. On top of that I can write basic C# stuff
pascal , now theres something u dont see every day
Yoo, neat. Don't see VB around here often enough to assume people even use it
i do
VBA gang myself
@tasks.loop(hours=1)
async def delete_guild_data(self):
guild = self.gcollection.find({"in_guild":False})
for i in guild:
if float(i["delete_timer"]) >= time():
self.gcollection.delete_one(i)```
thisis wat i have
hmm guys i have aproblem with graphQl 
it doesnt make sense
i get a alot of flak for it , but as u can see. u can do alot with it
and i dont understand it
but theyres like a 50% chance of it workinh
any aparent errors?
What does the delete_timer key contain?
Indeed 😂
How much time did all that take you?
its a epoch time
if u work with async, deleting resource (assuming its a db) u gotta watch for deadlocks @drifting wedge
time bot leaves the guild
- 72 hours
so if bot isnt re added within 72 hours, data gets deleted
@placid meadow i dont need to care abt that stuff
i use cloud db
also wtf is a deadlock?
In concurrent computing, a deadlock is a state in which each member of a group waits for another member, including itself, to take action, such as sending a message or more commonly releasing a lock. Deadlocks are a common problem in multiprocessing systems, parallel computing, and distributed systems, where software and hardware locks are used ...
it happens if multiple threads (async) read/write resource at the same time, it creates a run which can result that one of the threads locks up (freezes)
how would a deadlock occur?
I'm not familiar with cases like that in Python, especially simple scripts like Exe's
if u dont take it into account, undocumented behavior might occour
is there such a thing as sync lock or mutex mechanics in ur language ?
how tf am i supposed to know
The threading module provided with Python includes a simple-to-implement locking mechanism that allows you to synchronize threads. A new lock is created by call ...
@drifting wedge no need to get nasty 😛
ReferenceError: getMutualGuilds is not defined
at resolve (D:\courses\dashboard\dashboard-backend\graphql\index.js:81:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 1)
at async graphqlMiddleware (D:\courses\dashboard\dashboard-backend\node_modules\express-graphql\index.js:166:18)
wdym nasty?
why giving me this error?
im sure @slender thistle knows this 😛
can some one help?
👀
Nah, I never worked with threading directly. I skipped that part in my learning process 🤣
but its
@slender thistle i hope ur joking 😛
i skipped the entire learning process
im one of those people who made a discord bot to learn python
before knowing what python even is
and to tell you what, it worked!
I wish I was. I learned Python by getting into discord.py directly and never had to deal with deadlocks or mutex mechanisms yet?
🤣
I should dedicate a week for myself to work with threading in Python, tbh
@slender thistle well if u ever wanna touch on it, let me know 😉
multithreading is useful 😛
i know my bot uses it
😁 I can be an annoying ass, so you better hope I decide to figure it out on my own instead
arent we all 😛
uhh since yall have actual brains
is there a way to setup a webserver
in a cog?
imagine using a language where threading isnt as trivial as tokio::task::spawn()
whats cog?
Sure
still running the bot?
One message removed from a suspended account.
non rust nerds
i tried using flask/quart ipc, aiohttp, flask, quart
discord.py has classes in its own extension system
ive done everything i could think of
i see
Those classes are cogs
One message removed from a suspended account.
so what can i do?
How have you tried connecting them together?
which time?
because what happens i think is that the webserver never stops
its like the bot
you cant put code under bot.run
if you want it to run while the bot is running
its like one or the other
ive tried making a normal webserver with aiohttp
and it had same issue
ipc works but is annoying
bc if u restart bot or dashboard
you have to restart both
AND only 1 process
so clustering wouldnt work
flask / quart same aiohtttp issue
@slender thistle https://pastebin.com/8kXhVWH4
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
😉
Tried taking a look at how I run the webserver in dblpy?
Eh I mean
im joking lmfao
The general practice I follow is initialize the webserver in cog init, then call run_until_complete on a method that sets up the webserver and runs it
@slender thistle https://github.com/shivaco/DBL-python-webhook/blob/master/listener.py isnt even a cog
Flask script mainly to handle POST requests from top.gg - shivaco/DBL-python-webhook
Nah not that
A simple API wrapper for top.gg written in Python. Contribute to top-gg/python-sdk development by creating an account on GitHub.
run method
i do not understand this witchcraft
Oh, really? Just under 100 lines such a feature? You must be joking 🤣
Give me a second, I'll try to put up a small script
ty
i was trying to make a activity monitor , that charts whos active during what hours, days, months
but the db/io setup is such a pain in the ass
had some tests, works but..pff maintenance wise a nightmare
🤣
the google's serializer , protof-buf proofs to be useful, it has almost 200 users in less then 175kb
i use it as db method
self contained
Damn
it generates graphs under the 300~ms thats acceptable
i wish i could test it in a mega discord server, see how it perfoms
You'll have plenty of time to get famous, don't worry 
hope so 😉
@slender thistle u already doing the script?
gimme credits tho 😛
im tierd and gonna sleep
thats fair
so have a good night
gn
Give my poor laptop some time to open PyCharm
I'll DM you the general idea tomorrow, goodnight
lol
Nah mate you did a great job
That's quite a unique feature out of hundreds/thousands of bots
Unique enough, at the very least
Haven't seen many bots do stuff like you did though
well, "many"
Can't recall a single one, more like
well if you drop in my hang out, who knows what i might share 😉
I have quite plenty of things to worry about already so I'll leave you to it with the surprises 😛
Help
ask away
How to add image
oh i dunnow
someone plays league of legends
does api.getVotes() show users who voted for that api? did not quite understand
there is no docs on it?
I didn't understand that question very well
im sure the API has some sort of documented usage
never mind i was kind of dumb here
I understand now
sorry about that
dont sweat it:P
have a good night :p
u too
.addField("Server owner" , `${guild.owner.user.username}`)
^
TypeError: Cannot read property 'user' of null
just write only guild.owner
the guild owner must not be in cache
805788996579885097
report this bot please -_-
What bot
DM advertising
Yup, it's still verified -_-
I mean if that bot can get verified my bot that just says quotes definitely will
sorry didn't get it
discord.py rewrite Question: Is it possible for a command to send feedback of every server the bot is in with the server name, how many members, and who owns it? (I want this for my personal bot that has no public access, I just have no clue which servers I have put it in)
Please ping or ping reply if you could answer this.
Refer to <Client>.guilds, a list consisting of Guild objects
Make sure you set the intents for guilds in your client though
Hmm
what's the command 🤯
@earnest phoenix can you read this
u have to fetch it since the owner is not in the cache
@slender thistle found the culprit 😛 of that exception
Are you sure you are setting the guilds intent for your client @earnest phoenix
Spill the beans 👀
its a out of bound error, the gdi lib doesnt like when you draw something out of the bitmap region , in windows it just silently draws it anyway, but on the unix lib, that wont fly
how do i get the bot dev role?
[Processor][4/2/2021 7:54:28 AM] -> Task Command from 'Barret', Queue 1
--------------[OUT OF BOUNDS]---------------------
BOX REF : 0 0 400 300
COORDS REF : X1 319.94922 Y1 146.5098 X2 331.94415 Y2 146.16077
BOX REF : Right 65 Left 335
--------------------------------------------------
[Command][4/2/2021 7:54:28 AM] <- Task Command finished in 00:00:00.1392074
const Discord = require('discord.js')
module.exports = {
name: 'grole',
run: async (message, args) => {
if (!message.member.permissions.has("MANAGE_ROLES")) return message.reply("You don't have the manage_roles perms")
const role = message.mentions.roles.first()
const member = message.mentions.members.first()
member.roles.add(role).catch(error)
const embed1 = new Discord.MessageEmbed()
.setTitle("Give role+")
.setDescription("The role" + message.mentions.roles.first() + "has been given to" `${user.username}`)
.addField("Moderator Command", "please if you not a moderator pls don't try to use this command♡", true)
.setColor("#FF005B")
.setTimestamp()
.setFooter("role has been given")
message.channel.send(embed1)
}
}
Can some help me in the embed .addField section cause it seems that is does not work!
u dont use await?
Own an approved bot on top.gg
anyway, ive add a Try block on that part, the code will not draw that portion (almost not see it anyway) but will always show the stats
its a hack but works
Oh dear 
?
those methods are async 😛
Nathi
does js have await @slender thistle ?
i dunnow actually
Should I change it to run: async (message, args) => {
Don't ask me, I have zero clue about how JS works
I'd rather leave this to someone who is proficient in JS
What?
You didn't define user
user is not defined
stop gluing together copypasted code
at .setDescription()
That's why
Yes how do I fix that?
how are you a bot dev
js isn't the only language in the world
im aware
I don't think it was wrong
yes it was
I mean, he didn't define user
dude
user has a username property
I own an approved bot on top.gg
oh ok
yes it does
promises
almost every language today haves async/await syntax (known as corountines also)
Just define user
missing access, but im 100% there
It is
id say that boils down to permission prolly, Erwin
const user = message.guild.users.cache.find(user => user.username === args[0]); // Keep in mind, 'user' is just a variable I've defined. It could also be 'monke => monke.username' if you wish.
is it case sensitive ?
also most discords api's have a limited cache
might want to increase the backlog
That comments tells me that you copied this code
thats not relative ...is it ?
unless he is a random person who saw that question and actually commented that code, who knows
😛
He's the one with the question
Ok..
Idk anything?
why do you have professional coder in js in ur status if you dk how to define a variable
Lol cause I was boreddddde
const user = message.mentions.users.first()
or
const user = message.mentions.users.first() || message.guild.members.cache.get(args[0]).user
No no am not saying anything lol
Just use either of those
for ur user variable
I thought I was about to get rosted lol
funny that js allows for dynamic constants...kinda defeats its purpose 😛
Flaming actually helps the person more than just spoonfeeding them, because they obviously don't know the language they're working with, it's better to go learn the basics
There's a difference between asking a question and refusing to learn :)
in this case at least
well whatever he knows the language or not, if u help him he might learn something from you, share experience and knowledge is a virtue
But learning the basics is of much more importance.. am I right?
A lot of people will expect you to know the basics of programming before getting into making a bot, but some people learn by doing, so it's really up to them in the end
I don't necessarily roast anyone but when I give them code I try to explain how it works so they can understand it better
not everyone knows the best route for coding, some are not that fast or whatever the case might be.
Anyways
they see something they really want, might be steep jump most cases, but thats how it is, sometimes u just gotta jump into it. but i agree knowing ur basics does help90% of the time
The difference is that they come here with an error that can be resolved with the base knowledge of the language... x is not defined
comes down to understand what their reading
i guess
and one only see's what he knows
so if he doesnt, he cant
I changed it to
.setDescription(`The role ${role} has been given to ${member}`)
And it worked!
@frigid mountain
So message.mentions.users.first() checks for the first person who is pinged in the msg
And message.guild.members.cache.get(args[0]).user gets a user in the second argument in the message
ie. if you use ID instead of pinging
Aight nice
Thx for the help
nathi
Yes?
True but whatever xD
the message 'please if you not a...' is sort of over saturated
is it not ?
the command on itself wont fire unless they are?
or is that just cosmetic nicefy 😛
otherwise there would be a "small" security issue :D
lol
Lol
i see often beginners try to use the js Eval() in their bots, i always tell them, its a bad idea
now that is a sizable security risk
evals are the perfect way to teach them they should be using vm's to host their bots

or to secure their shit properly
Bots with open eval commands won't be approved anyways
u could inject some malicious code there, escalate the account, oof... the trouble that generates

good rule
all they want is some sort of calulcator of sorts
and its rly easy to write ur own lexical analyzer
tokenize the expression, built ur abstract tree, evaluate in full control
vm's can be broken 😛
2 vms and a sandbox
altho hard, it is possible
good luck
u cant have 2 vms like that 😛 physically not possible
watch me
Or you can just analyze the javascript for potential security issues... detecting whether require, eval, .prototype is used, while loops, etc.
look up nested virtualization
@cinder patio i wrote my own expression evaluator its rly not that hard
its handy sometimes when you need to emulate different hardware specs
say, i like linux
im using a vm there
I know
❤️ erwin , debian all the way
now, i want to bypass some tool that uses free trial and hardware locks it
so i have to each month make another hardware vm
my bot runs on linux too, best platform
thats a good example of why you'd have 2 vms inside one another
one vm simulating a hardware so you can bypass check
and the second is your main os that you use
in my case, linux
and the main os is windows, cuz compatibility
actual main, not vm
windows(main work) => linux vm (vm for work/study) => hardware vm(a vm simply with random hardware specs so i can bypass trials)
Looks good 🙂
bask in its glory
oh snap, that is sexy dude
htop pog
i run mine on a HPE server, its own backup PSU and ddos/syn firewall with Coreo Smartwall,
had to leas an ipv4 but thats fine
not that expensive
Need
Create Tipbot on Discord
Who can help me
I can the fee with TRX
what are they trying to do on my vps 😄
well this is a full on prod server
ah ok
its not only running my bot
how much clients does that box run?
there are a couple hundread process there running
alright
@opal plank how is your bot called?
@opal plank
my lil server ^^
1 sec
a
andy ??
sounds like selbots
h
keke
h
amazing
Link plaese
@ripe prairie free ban ^^
@ripe prairie stinky
h
as i was saying barret
@placid meadow did it live too
zorotic and some people here saw me completely wreck twitch on a global scale

Fast response
damn
-m @earnest phoenix
🤐 Muted !ANDY!#0001 (@ebon zenith)
i was re-routing 95%+ of their global traffic
i had an attack month ago on my server
was brutal -.-
imagine telling me what to do?
How do I make a user-info command like these cause I want to check which roles do people have
What is better usage PreSql or MySql
mongo ?
using mongodb rn
{
// Check for attachment image
let image = '';
const attachment = (message.attachments).array()[0];
if (attachment && attachment.url) {
const extension = attachment.url.split('.').pop();
if (/(jpg|jpeg|png|gif)/gi.test(extension)) image = attachment.url;
}```
err;
`` UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'attachments' of undefined``
help?
i believe u need to pass the file stream to it
dunnow if it helps ya,
this is how i load up an image into an embed
Public Shared Async Sub Show(processor As Processor, sm As SocketMessage, args() As String)
Dim attachment As FileInfo
Dim eb As New EmbedBuilder With {.Title = "Clock"}
eb.WithFooter(TimeZoneInfo.Local.StandardName)
attachment = New FileInfo(Clock.Draw(200, 200))
eb.ImageUrl = String.Format("attachment://{0}", attachment.Name)
Using fs As FileStream = File.Open(attachment.FullName, FileMode.Open)
Await sm.Channel.SendFileAsync(fs, attachment.Name, "", False, eb.Build)
End Using
End Sub
Is that VB?
yeah
why are you torturing yourself
How can we make bot to Play in stage channels 🙄
quite didnt figured that out
well u tell the embed attachment the filename, right
and then u pass the stream in the sendFileasync
anyway im off for a bit
take care peeps 😉
Have a good day 🙂
Hi
const Discord = require('discord.js')
module.exports = {
name: 'userinfo',
run: async (message, args) => {
const embed = new Discord.MessageEmbed()
.setTitle("User-info command")
.setDescription(`Information about ${member}`)
.setColor("#FF005B")
.addField("Roles", user.roles.cache.map(role => role.toString()).join(" ,"), true)
.setTimestamp()
.setFooter("user info")
message.channel.send(embed)
}
}
How do I define member do I
const member = `${member}`
Or what?
You should really read up on core programming concepts
Does
const member = `${member}`
make any sense to you?
Okay but still
Been waiting for help for over 30 minutes lol
Hello, so, im trying to do a backup system on Discord, with NodeJS, and my problem is, when i save the collection with all roles, when i modify a role on the server it also change the collection, that's weird. There is my code.
// My index
const { Collection, Client } = require('discord.js');
const client = new Client();
client.backup = new Collection();
// My command to set the collection
client.backup.set(message.guild.id, Array.from(message.guild.roles.cache.values()));
// My command to get the collection
const backup = client.backup.get(message.guild.id)
console.log(backup)
Okay so everything work fine, my command return the collection, but.. When i modify a role and i'm making again the command "to get" the collection and not to "set" it update the collection, and i don't know why.
Everytime i make
client.backup.get(message.guild.id)
The collection update if i have modified something on the server, and i don't want that.
i heard that you could use message.author.dmChannel.awaitMessages to await messages in dms but i get an error saying TypeError: Cannot read property 'awaitMessages' of null
is there another way to do it?
You can use the message event to do it, why do you want to await messages in dm? @rocky dagger
i am continuing a command in dms so it doesnt fill the public chat
You can use that to get dm's message, there is no way to await messages in dm
if(!message.guild) {
console.log(message.content)
}
ohh ok, ill try that
But if you really want to await a message, refer to this https://discordjs.guide/popular-topics/collectors.html#basic-message-collector
I'm pretty sure you can await messages in DM
you have to fetch the DM channel beforehand though
do you know how to do that?
how do i make code like 'if cmd send then bot replies after 1 min'
What language are u using?
.js
I'm using Discord.py
cant you just use sleep()
It will just stop your bot.
await asyncio.sleep()```
This will stop command execution for time you type.
If you use time.sleep() it will stop your bot at all for some time.
Idk how discord.js works so...
const Discord = require('discord.js')
module.exports = {
name: 'userinfo',
run: async (message, args) => {
const user = message.mentions.members.first()
const embed = new Discord.MessageEmbed()
.setTitle("User-info command")
.setDescription("Information about ${member}`")
.setColor("#FF005B")
.addField("Username", `${user.username}`, true)
.addField("Roles", user.roles.cache.map(role => role.toString()).join(" ,"), true)
.setTimestamp()
.setFooter("user info")
message.channel.send(embed)
}
}
Does not show the Username
you can't lol
even sending a normal api request to create a stage channel gives an error
so not yet
you have a string inside a string. if you want to pass a value into a string use ` for defining a string and not "
`my string ${value}`
Also you haven't defined member
its possible saw a screenshot of groovy playing music in one
how do i fix this?
It's in the error mesxsage
just read the error
I've tried both npm rebus and npm install tho
Delete your npm modules folder and do npm i again
Absolutely bullshit, i coded my bot to do that
lol
You can if u still need help
double check before then
while you can do it, its not recommened to play with stage channels yet, things are going to change a LOT
its still WIP
but to create a channel, its pretty simple
so simple, in fact, that you just need to set the type of channel to 13
thats literally it
const Discord = require('discord.js')
module.exports = {
name: 'userinfo',
run: async (message, args) => {
const user = message.mentions.members.first()
const embed = new Discord.MessageEmbed()
.setTitle("User-info command")
.setDescription("Information ")
.setColor("#FF005B")
.addField("Username", user.username, true)
.addField("Roles", user.roles.cache.map(role => role.toString()).join(" ,"), true)
.setTimestamp()
.setFooter("user info")
message.channel.send(embed)
}
}
Why does it not show the username
there is a difference between member and user objects
smh
member objects have data related to the server
and user objects have data related to the account itself
and not the server
So what should I do?
Thx
edit your bot, and go to the webhook section
ty
client is not defined
Then define client lol
show ur code
Hello, i'm creating the help command, i'm trying to make it so that if the user allows DMs from the server, it sends the DM, if it doesn't, send it in the channel
if (message.content.toLowerCase() == prefix + "help") {
let help = new Discord.MessageEmbed()
.setColor(colore)
.setTitle('Help')
.setDescription('For a list of basic moderation commands, \n use the `?help moderation` command. \n \n For a list of automod releated commands, \n use the `?help automod` command. \n \n To view more information about a single command,\n use the `?help <command name>` command.')
try {
message.author.send(help)
} catch (err) {
help.setFooter('I could not DM you this message, so i sent it here.')
message.channel.send(help)
}
}
This is the error
UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send messages to this user
How do I make it so that in the account created section it also shows the time the account was created
user.user.createdAt.toLocaleDateString("en-us")
can someone help me?
Promise errors must be caught using .catch() unless you're using async/await. try/catch doesn't work on promises you don't await.
Pls help :( ?
You can use a date formatting module like dayjs or date-fns to format dates however you want
ah yes, professional javascript coder, my favourite
Lol
This person has problems with me just because I did not let him become a developer for my bot
Yes I have all the messages screen shorted
Still am
Just like changing my status once in a while
Just because I rejected your request doesn't mean you have to fight with me so for the sake of God keep quiet
hii
That's rude and condescending. There was no need to point that out.
like user.createdAt.toString()?
Fri Apr 02 2021 11:15:32 GMT+0000 (Coordinated Universal Time)
OR toISOString()
2021-04-02T11:16:34.135Z
I want it to show the time Like this
Ah then you definitely need to use dayjs or date-fns
Especially for the "x time ago" feature
or use toISOString()
So I should replace that
user.user.createdAt.toLocaleDateString("en-us")
With these
user.user.createdAt.toISOString()
remove "en-us"
Like that
Yeah
can u help me
But for #development message you'd need external libraries
someone pl
Yes you can help it's welcome
Thank you kind woman :)
you need to request to become a speaker after you join the channel
you need 2 requests
1 topic
2 request to speak

Any guide
For DJ's
please tell me which 1 i need to host 24/7
❓
i wanna run my bot 24/7
IBM cloud computing is more enterprise level things
there are resources in the pins, information and examples
Just buy a linux vps u can host it on it
If I want to send a message to the mentioned channel do I use
const channel = message.mentions.channels.first()
yes.
I finally figured something out on my first try yeay
Yes you did! 
Help it does not want to work
const Discord = require('discord.js')
module.exports = {
name: 'mod updates'
run: async (message, args) => {
const sayMessage = args.join(" ")
const channel = message.mentions.channels.first()
const embed = new Discord.Message.Embed()
.setTitle("Mod updates")
.setDescription("These are very important messages for moderators")
.setColor("#FF005B")
.addField("Mod updates", `${sayMessage}`, true)
message.channel.send(embed)
}
}
what does not want to work
yeah I Got the same question
and why are you trying to send to messsage.channel
instead of channel
Maybe its because of the name since if they're splitting their args by spaces, it would usually be "mod"
Discord.Message.Embed 
You know how this works, Erwin. ask the question first 😛
kek its quite an annoying one
but here we go
using ONLY css, trying to modify a subreddit widget
but apparently i cant modify its html
however
M
a[href=""] i did see you can do stuff like this
with css
i was wondering if you can actually modify html elements with css or add atributes/elements
but isn't it an iframe
I changed it and it's still not working I also changed the name
show current code
I don't even know if you can make an image clickable as a link just in CSS
const Discord = require('discord.js')
module.exports = {
name: 'updates'
run: async (message, args) => {
const sayMessage = args.join(" ")
const channel = message.mentions.channels.first()
const embed = new Discord.Message.Embed()
.setTitle("Mod updates")
.setDescription("These are very important messages for moderators")
.setColor("#FF005B")
.addField("Mod updates", `${sayMessage}`, true)
channel.send(embed)
}
}
im not sure either, but we are trying to follow some of the guide, but theya re old and apprently also deprecated
or we doing something wrong
but its quite hard to fuck up something that bad following 3 different guides xD
I'm... like pretty confident what you want to do isn't possible
You can't insert HTML using pure CSS without JavaScript
I changed it
const embed = new Discord.MessageEmbed()
Ok great! Now what? Doies it work?
yeah thats what i assume too, thats why im in a bind
Code still now working
there are quite a few subreddits that use it https://www.reddit.com/r/INDYCAR/
ok and what am I looking for here
check some of the side widgets
clickable images
When I go to my terminal to start the code it does not even work :(
does it error out?
they use a tags
ironically that image is not clickable for me
this is unclickable
it's not
No error
Then that code is not running at all.
It isn't in MS Edge latest.
right that's a different image
Yea
I do'nt see that image
The only image I see that's clickable is this one
what we are trying to accomplish is get a discord badge with a href
we know its possible
doesn't sidebar things support markdown?
so... use a markdown link? lol
but i dont think you can do it with images
you can
literally every single reddit post you see about this we tried
of course you can add a link to images in markdown
It would be super useful if reddit actually had any fucking docs tbh
this ^^
why not just ask on https://www.reddit.com/r/modhelp/ ?
Because tbh this is a reddit question not a CSS one
already did, taking a while to reply
they're the best people to help though, really
the thread owner that im helpijng is quite big, they already asked around
in your bot's edit page
i dont see it
"Webhooks" section
i have no webhooks
try to manually replace /edit with /webhooks ?
works
ok ty
also, i tapped on "Test" and there's nothing sending
on the webhook
oh nvm
not approved
when i try to save it, i get this
ill do it after i get approved .-.
thanks Hindsight for help

Why do i get this when i try to use the Api constructor
yep
ill wait a month or so
1-2 weeks.
it's the same
It's less than half, so no, not the same.
ok so
str.replace(/ abcd..z/g, "_");
how do I replace any letters with something in js
/a-z/g should work
thanks flaz
ah okay
Hello, in Linux, was it’s the command for view internet speed please?
there's no built in shell command for this
find some script or something on google
How can ı use rich presence
If you're talking about in a bot, you can't. For users, look into RPC
How do I mention the user that used the command, right now it works, but it mentions the users id
Python
Put the id in <@id>
just a heads up, rpc is deprecated, should use game sdk instead
oh. When was it deprecated
since 2019-ish
need help guys
const Discord = require('discord.js')
module.exports = {
name: 'userinfo',
run: async (message, args) => {
const user = message.mentions.members.first()
const embed = new Discord.MessageEmbed()
.setTitle("User-info command")
.setDescription("Information ")
.setAuthor(`${user.username} $user.displayAvatarURL({dynamic: true})`)
.setColor("#FF005B")
.addField("Username:", user.user.username, true)
.addField("Discriminator:", user.user.discriminator, true)
.addField("Status:", user.user.presence.status, true)
.addField("Roles:", user.roles.cache.map(role => role.toString()).join(" ,"), true)
.addField("Account Created On:", user.user.createdAt.toLocaleDateString("en-us"), true)
.addField("Joined On:", user.joinedAt.toLocaleDateString("en-us"), true)
.setTimestamp()
.setFooter("user info")
message.channel.send(embed)
}
}
In the .setAuthor section it was suppose to show the users avatar in the top left corner of the embed
Could someone please explain why, according to this channel's pins, the free trials for GCP and AWS are considered bad?
Low specifications
sup ppls 😉
sup, can we help you?
anyone know a good way to make a leveling system without ids?
What do you mean by "without IDs"
nah no help 😉 im just hanging out
in many tutorials and examples online they use specific user and server ids im trying to find a good way to code a leveling system for all users and servers
but than it would still be user specific and others can't use it
well how the hell else are you going to attribute points?
who would get points if they're not going towards a user?
no one can help before you ask a question. so go ahead and ask your question.
im just trying to find some code like mee6 or amariBot
ok but your question makes no sense
Points have to go towards something
usually, a user
in order to attribute points to a user, you need to ahve some structure that saves points
For each user
and how do you identify them? Through their ID!
how do i make script like if cmd send then bot replies after 1 min.
so you add a point to the user, by ID
nvm
Aight give up instead of seeing the problem through if that's easier for you then 
what programming language?
.js
use setTimeout
i forgot about the guild count thing, its guild. something, anyone have the Documentation for that?
how do i do backend stuff in next without a custom server
client.guilds.cache.size
you mean?
at least for discord.js
lol
lol
yes ty
ty
yw
will it work on if the cmd is !cd then bot replies [ Alright , {user} I'll remind you in 1 min.]
after 1 min' [ <@> , your cooldown is over.]
yeah
lol
ahem https://tryitands.ee
lol
lol
🤣 lolololol
try reading the error again, but slowly
it has missing permissions
maybe not in other servers
Then you're trying to affect a member with a higher or equal role
what are you doing anyways
lol
lol
Uhmm
cuz the error says missing permissions
"missing permission" can also happen if you're trying to add a nickname to someone with a higher role I think
yeah




