#discord-bots
1 messages · Page 622 of 1
i think i said braindead
Can I message you in DMs?
Sorry but no DM help
so
send.Embed(title=Hello, field=pog)
add_field(*, name, value, inline=True)```
Adds a field to the embed object.
This function returns the class instance to allow for fluent-style chaining.
Jesus dude this chat right is just not it.
the w one
Okay
But it does not matter, all 4 lines are giving error
🙂
hmm?
Is your problem fixed?
how can I fix??
Lemme write it
🙂
Cool
async def on_message_edit(message_before, message_after):
try:
global before,after,authorname
authorname = message_before.author
before = message_before.content
after = message_after.content
link = discord.Message.jump_url
except:
pass
@client.command(name = 'editsnipe',aliases=['esnipe','es'])
@commands.cooldown(1, 3, commands.BucketType.user)
async def editsnipe(ctx):
try:
global before,after
embed= discord.Embed(description=f"{link}", color=0x7289da)
embed.add_field(name=f'Message by',value= authorname)
embed.add_field(name='Original Message',value =f"{before}" ,inline=False)
embed.add_field(name='Edited Message',value =f"{after}",inline=False )
embed.set_footer(text=f"{ctx.author}")
embed.set_thumbnail(url="https://c.tenor.com/uQteGm4kq7oAAAAM/joxxy-edit.gif")
await ctx.send(embed=embed)
except Exception:
print(Exception) ``` how do i jump to message url
!d discord.Message.jump_url
property jump_url: str```
Returns a URL that allows the client to jump to this message.
type=discord.ActivityType.watching, name=random.choice(activity_w)
@slate swan
Same for the last if statement also
idk how to read that
What's the preferred lib now,
Add something like this [Jump to message]({after.jump_url}) in your embed, considering you have f-strings
other two good?
Yups
disnake haha
Click the blue title.
@maiden fable help, its asking me to give a url for streaming but I don't want to give
then dont use
Holy moly. Worked, but it fucking sent 200 of those on join. I clearly need some kind of, break point?
Its sending infinity of on.join messages
o ok
Doesn't let me send, Ill send in DMs bro
Got a ghost ping
@modern fiber remove the invite link from your code and send it
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
Ah, invite
Nope, not the invite..
Why
Just look at DMs, lol.
As hsp said, remove the invite (:
#On Join Message
@client.event
async def on_guild_join(guild: disnake.Guild):
embed = disnake.Embed(title="Thanks for adding me to the Server!")
embed.add_field(name="Help & Support",
value=f"[Alpha Bot Website]()\n[Support Server](https://discord.gg/)\n[Commands List](https://urlhere.com)",
inline=False)
embed.add_field(name="Documentation", value=f"[Privacy Policy](https://urlhere.com)", inline=False)
embed.add_field(name="Get AlphaBot", value=f"[Add AlphaBot to your server](https://urlhere.com)", inline=False)
embed.add_field(name="Version", value=f"V1.1.1", inline=False)
for channel in guild.text_channels:
await guild.system_channel.send(embed=embed)```
Here, smh.
No dude
Remove the for loop
So what's it doing, suppose there are 10 text channels in the guild, so it's sending the message 10 times
If 100 text channels, then 100 times
Yeah but how I remove the loop
Just..... remove the for line?
oh
😐
but then gives me this error
File "C:\Users\korisnik\PycharmProjects\DiscordBot\main.py", line 21
await guild.system_channel.send(embed=embed)
IndentationError: unexpected indent
Please learn some more Python before starting with disnake
Simply, don't copy code you do not understand.
Facts
Kinda biased imo, they've been telling them multiple times what to do and the person clearly didn't know enough python anyone would be pissed if you met someone like that lmfao
help
You’re still here?
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.footer.icon_url: Scheme "blob:https" is not supported. Scheme must be one of ('http', 'https').
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "main.py", line 64, in on_command_error
raise error
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.footer.icon_url: Scheme "blob:https" is not supported. Scheme must be one of ('http', 'https').
still nothing
Then simply ignore the person instead of replying (:
Blobs are not valid URLs for displaying images in Discord
Show the code where u set the footer
Exactly
i have been lurking since an hour laughing at everyone
he just got banned.
You should not put a picture that you got from the Internet that starts with blob:
I lost 200 Briancells before I left
Muted
No
Muted
Muted*
?
;-;
Pretty sure it's written "mute"
@boreal ravine what do?
Yes
doesnt sohw
it doesnt even show the image
What’s wrong
🤥
i still see Muted role on kraots tho
eh, well
Would contact moderators eventually, maybe it's a temporary ban of 1-2 days or something
ur not cached yet
True
Weird
Look at mutual servers then you don't rely on cache
thats dont working
🤦♀️
help
Then the image doesn't exist, or does not load. Try sending the URL yourself and see if the image loads.
ye python aint in mutual guilds
Yea
sure
Wait I noticed nvm
@maiden fable Its showing nameerror: "Client" not defined
its my profile pfp
🤦♀️
Show me code
wait wait sending
https://cdn.discordapp.com/avatars/912085145522171995/5b3a645b1ac57f9a09c49082d7f33241.png that's your profile picture URL, and not that weird URL you've given
define it
i would suggest u to delete this pic
why my give role on welcome command doesn't work?
@bot.event #WHEN SOMEONE JOINS HE GETS THE NOT VERIFIED ROLE
async def on_member_join(member):
notverified = member.guild.get_role(756952469032140892)
await member.add_roles(notverified)
@boreal ravine :/
Yeah
Btw, great token you got there.
Can u try printing notverified?
turn on member intents
Thanks, I’ll like to take your bot token 👍
Ah yea nvm
Sorry for ignoring you lmfao, show your code
hold on

Yea my bad
wait I am a fool
uh
🤭
Blank SelfBot
give me a huge min
Client = Bot()
Excuse me?
yea i m fool
@bot.listen()
async def on_message(message):
guild = bot.get_guild(790998344268513292)
rola = message.guild.get_role(903801707379707924)
if message.channel.id == 903795120699228160:
if message.content == "Chłopak":
if rola in message.author.roles:
await message.author.remove_roles(rola)
await message.channel.send(f"Pomyślnie usunięto role {rola} dla {message.author.mention}")
else:
await message.author.add_roles(rola)
await message.channel.send(f"Pomyślnie dodano role {rola} dla {message.author.mention}.")
? Don’t they have to define it using the bot to have a command prefix?
they use Blank as the variable
wait like this:
notverified = 756952469032140892
print(notverified)
I made client name Blank
Nah ignore me
Why make the variable Client? Especially why a capital C?
any errors?
I’m on a phone
in cmd nothing
okay but what is the problem
bot dont react
code ^^
anyone?
Sarthak told u
check recent pings , answered ya
!intents lol. U need members intent
Using intents in discord.py
Intents are a feature of Discord that tells the gateway exactly which events to send your bot. By default, discord.py has all intents enabled, except for the Members and Presences intents, which are needed for events such as on_member and to get members' statuses.
To enable one of these intents, you need to first go to the Discord developer portal, then to the bot page of your bot's application. Scroll down to the Privileged Gateway Intents section, then enable the intents that you need.
Next, in your bot you need to set the intents you want to connect with in the bot's constructor using the intents keyword argument, like this:
from discord import Intents
from discord.ext import commands
intents = Intents.default()
intents.members = True
bot = commands.Bot(command_prefix="!", intents=intents)
For more info about using intents, see the discord.py docs on intents, and for general information about them, see the Discord developer documentation on intents.
Not cached prob
File "main.py", line 136
async def command_name_error(ctx, error):
^
IndentationError: unexpected indent
idk what do, i try everyone
You indented it when you’re not supposed to
fix your indents
I have that in the bot prefix
😂😂
are you sure the if conditions are statisfied?
bot = commands.Bot(command_prefix="v!", intents=discord.Intents.all())
Already have that
and the message content?
i see , and is the role id valid
Try again
thats weird , do you have multiple on_member_join events?
Let me see your code
I have an on_ready event, an on_member_join event and 2 commands
yes
Try creating a custom role
why
role = get(member.server.roles, name="Test")
await bot.add_roles(member, role)
Or client whichever you are using
so it will be
notverified = get(member.server.roles, name="Not Verified")
await bot.add_roles(member, notverified)
It's member.add_roles(role) now
Since 1.x I think
yeah I have it that way
where did u get this 💀
Check my code again maybe something is wrong here
@bot.event #WHEN SOMEONE JOINS HE GETS THE NOT VERIFIED ROLE
async def on_member_join(member):
notverified = member.guild.get_role(756952469032140892)
await member.add_roles(notverified)
Do you have the members intent enabled?
Role id correct?
yes
In the developer portal?
Ok
Weird
Hmmm
you mean these?
Can you try to print the role?
Just the one at the bottom, yes. You can keep it like that
like:
notverified = roleid #I will put it
print(notverified)
Yes
does it have to be in that code?
U need guilds intent
All intents are enabled
Oh, hmm
Hmmmmmmmmmm
What u got in mind?
@kind windMake sure the bot's role is above the role you want to give
Pretty sure you would get an error
But that would have raised an error, yea
¯_(ツ)_/¯
its above every role
Maybe it’s because he didn’t join on a test account
i had 3 friends to join
Or he kicked the bot out and invited it back
none of the times it worked
Oh
Have you tried printing the role?
Was it running?
Yes
Just change your code
Interesting
Maybe go through everything one by one?
Never seen this before ¯_(ツ)_/¯
wait a second
Similar error happened to me, changed the name of the command and it worked
Well it's an event
I started learning python back then
So you can't really change it
does it have to be
@bot.event #WHEN SOMEONE JOINS HE GETS THE NOT VERIFIED ROLE
async def on_member_join(member):
notverified = member.guild.get_role(756952469032140892)
await member.add_roles(notverified)
I wasn’t referring to that
No
Wait
It's just the role as parameter
now?
Yea
hm...

Very intriguing
Well I'm sorry, I have no idea. Code and everything looks normal
ActivityType isn't a function
so how can I change activity for watching/listening
# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))
# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))
# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))
# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))
Source: https://stackoverflow.com/questions/59126137/how-to-change-discord-py-bot-activity
Thats what I did
Nope :p
send code
Full code
You did
type=discord.ActivityType.watching(name="a movie")
Yep, I’m defeated. Try another way, or ask stack overflow
I can ask MEE6
Obvious error there
@tasks.loop(minutes=5)
async def change_activity():
activity_list=['s', 'p', 'w', 'l']
activity_s=['Earth', 'Mars', 'Jupiter', 'Mercury', 'Venus', 'Saturn', 'Neptune', 'Uranus']
activity_p=['Minecraft', 'with Blank', 'Squid Games', 'Do or Die', 'Curse of Aros', 'with Satan', 'with anime girls']
activity_w=['over you!', 'Animes', 'Plants', 'Animals', 'Blank', 'Nothing!']
activity_l=['Youtube Music', 'Blank', 'Dead Groovy', 'Dead Rythm', 'Death']
activity=random.choice(activity_list)
if activity=="s":
activity=discord.Streaming(name=random.choice(activity_s), url="https://replit.com/@BlankMCPE/Blank-Bot")
elif activity=="p":
activity=discord.Game(name=random.choice(activity_p))
elif activity=="w":
activity=discord.Activity(type=discord.ActivityType.watching(name=random.choice(activity_w)))
else:
activity=discord.Activity(type=discord.ActivityType.listening(name=random.choice(activity_l)))
await Blank.change_presence(activity=activity)```
LETS GO
Replace the (with ,

Wdym
did you copy that code
I can ask him to put the roles on join
I made myself
@slate swan very intriguing error here
You want the bot to add a role when a member joins?
^ the code is above, very weird error happened
All this time
yea i understood
How you have it:
activity=discord.Activity(type=discord.ActivityType.watching(name=random.choice(activity_w)))
How it should be:
activity=discord.Activity(type=discord.ActivityType.watching, name=random.choice(activity_w))
@kind wind first can your bot even see other members aka do you have intents on?
yes
Yes
Very well
why ctx.region is showing deprecated ?
Show full code
i did it thx
how in on_message bot delete own message?
i found something...
i used ctx.region
Delete()
it is showing deprecated
Very well, looking into it
use a check, then message.delete
when i use await message.delete()
bot delete message member dont own
What is ctx in your case?
before it was working perfect but when i saw it now
it is showing dreprecated
My requests.get module is caching results fetched previously and now its showing the old results
Can I have a photo?
to get server's region
There’s nothing I can find.
there is ctx.region
Switch over to ctx.guild.region
nevermind
are you trying to delete messages from a specific member?
Might not be deprecated this one
!d discord.Guild.region
The region the guild belongs on. There is a chance that the region will be a str if the value is not recognised by the enumerator.
Damn nvm
Probably, don't know
I mean when the program starts, it make a request to my github repo and executes the code it get, but sometime it just show me the output of my previous code even though I changed the code. Any trick?? like adding a random string to url after ? or somethig else??
requests module has no connection with caching stuff. something must be wrong with the website
wht why then how i can do that
Don’t know
Deprecated means it was existing in the past, so probably it got removed
So my code cant be solved?
can't say anything without seeing the code
?
@steep estuary Here
Seems to be an eerie error, you may be lying to us but that’s just too mean to think of it like that
@kind wind give me a sec in thinking🤔
!d ctx.guild.region
No documentation found for the requested symbol.
? nothing
Maybe replit is caching
!d discord.Guild.region
The region the guild belongs on. There is a chance that the region will be a str if the value is not recognised by the enumerator.
You think I will be lying to get all this thing happening right now? No.
That's not how the documentation command works
Also known as ctx.guild.region
it will be ctx.guild.region
I know you’re not lying
You can't give ctx.guild.region when searching the documentation
Well I hope you’re not
The command doesn't work like that
I. am. not.
region sends "none" for my bot
one easy way to determine would be run the code locally and test
looks like you're using requests to get the code from your repo. use pygithub instead which is a wrapper for the github api
Yes I know
@kind wind give me a sec im eating my scooby snack cookies
locally it works so replit is guilty i guess
But we cannot seem to solve it
@slate swan
yeah
I don't want to change any more stuff so I used requests
then why it is showing deprecated when using ctx.region ?
ctx => Context
guild => Context.guild => discord.Guild
region => discord.Guild.region --> that's what you need

No idea couldn’t find anything
ohk
Because it got deprecated, as simple as that
requests is not asynchronous and it blocks the code
ohk tysm
because it is deprecated...?
yeah requests takes a few mins to update the code
@slate swan??
what are you trying to do lol
Lol
In either cases you should use an asynchronous library to make your requests
can't read your mind
i want bot delete own message
oooo thx for knowledge
Await delete() I think
get the message when you send it and then use message.delete
when i use that bot delete user message
I only ever used purge
@kind wind ```py
@bot.event #WHEN SOMEONE JOINS HE GETS THE NOT VERIFIED ROLE
async def on_member_join(member):
notverified = member.guild.get_role(756952469032140892)
await member.add_roles(notverified,atomic=True)
If this doesnt know print the role to see if its in cache if not youll need to fetch t
guys when i open my server console ...the bot is running...i need to setup sql server without stopping the bot. any help
You want to delete the message the bot sent?
message.delete like what he said
eg py msg = await ctx.send("e") await msg.delete()
@rotund nova
what if I add random text after the url??
ill test it later cuz i gtg I will tell you
i am using ctx.guild.region
error
and it is showing deprecated
👋
before I even start it
Alr
Ok
Can you like hover?
Where exactly?
Printing role worked
- why would you do that
- the url will no longer work if you do that, unless you mean like in a comment
Thank you🤔
after '?'
@slate swan how did you get so good at programming if you started at March?
that space after atomic=True) <<here
can you give me an example
wait nvm @slate swan nevermind
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
That could do the trick
i was using correct - ctx.guild.region and it was showing deprecated for that
obviously won't work
👍
Make sure you add a random number, and not always the same
time for base64
why would you do that
Trial and error mostly and getting corrected by @slate swan or others but mostly passion cuz i love what i do 
what are you trying to achieve
I programmed since 2020 I’m still trash
the problem is it is showing deprecated for ctx.guild.region
😂
https://i.krypt0n.co.uk/e955ffdb.png for me it doesn't
youre wasting time on wrong thing bro
I just work hard and like what i do

working thanks, can i do for bot end it when 2 seconds end?
nothing but then requests may think its another website and then it won't be show me old stuff
Maybe I should delve deeper into the realms of discord

Started like 3 months ago
like delete the msg after 2 secs?
asyncio.sleep(2)
before deleting
await it
But yes
ye
@velvet tinsel best tip ill give you is learn things slowly but deeply and ask about everything like how a function works like those type of questions

well people ignore my long ass messages about it so do whatever you want
Thx
I was about to print the entire discord py docs
.
..
rola17 = message.guild.get_role(903796679533281281)
if message.channel.id == 903795120699228160:
if message.content == "restarty":
if rola17 in message.author.roles:
await message.author.remove_roles(rola17)
await message.channel.send(f"Pomyślnie usunięto role {rola17} dla {message.author.mention}")
else:
await message.author.add_roles(rola17)
cos = await message.channel.send(f"Pomyślnie dodano role {rola17} dla {message.author.mention}.")
asyncio.sleep(2)
await message.delete()
await cos.delete()
```yup?
Before I realised I was about to run out of ink
So I cried
but it is showing deprecated for me 😓

seems fine

you can also do py await ctx.channel.send("hello", delete_after=2.0)
await asyncio.sleep(2)
What discord.py version are you running?
how i can check that ?
Asyncio yes, but can’t you also do time.sleep?
Because it's weird that it doesn't show deprecated for me
So HunAI finally woke up after sleeping for 1 day
ohh let me check
blocks
Discord.py —version I think
u r using latest version ?
revolt or discord
@velvet tinsel These are the mega smort people who are also funny
Blocks?
Including my boy winrar
blocks other functions
time.sleep(2)```yup
Kraots was muted
Discord, I haven't completed the revolt one
oh i see
Wait how😭
import discord
print(discord.__version__)```
=
I mostly believe in kayle and and sherlock and you and sometimes cyberweapon
He said that word ^^^
me also
Interesting
who was he talking to
Kraots is like that😭
Lmao
you
you
You
👀
not my falut
Sometimes that happens a lot
Okay let's leave that, shall we?
yeah falut
Yeah
@lapis wyvern if you got kraots to say that you probably did something hella bad or wrong
Pretend it never happened
he was rude about it but you should probably learn python before trying to make discord bots
Or he got super frustrated
True
I do know python a bit
Not enough
only bots in python I know about
you dont bro
Yeah kraots doesnt like speaking to beginners he gets frustrated
doesn't seem like you know enough
who asked you?
go do some simpler projects to get familiar with the errors and syntax
no one has to ask me
Just a question which came in my mind
What if we send get request to the flask server from within the python script instead of using uptimerobot??```
the chat is public
exactly
I think that’s why kraots got mad
he was pissed
Lmao
Don’t be mean to people
lol
We are only trying to help you
I have to teach my son better
Guije!
That's also gonna work
If you don’t learn basic python you will be visiting this 24/7
oooo

what should i do?
But that would require u to keep your laptop on with an internat connection 24/7
Icy is hella smart ngl
in replit
it is showing deprecated when i am using ctx.guild.region
So that’s why you buy a cloud computer
But mostly these are the boys
the docs might help
👀 ... Why did I never think of doing that
ohk
I think we are missing out eivl he’s also very smart
U will still need a way to keep the other repl alive
wdym?
Upgrade to hacker
Cz u still need a laptop with an internet connection 24/7 for that
No buy a vps
Yea
how to bypass a ban
And if u r gonna do that, why not host a bot on that laptop?
Linode 👍
can't
You can’t
😭
WHAT
nitro moment D:
Fr fr
Not even vpn can
It’s called a ban
Umm just setup a webserver along with ur bot and keep making requests... Per request can keep it alive for like 5 mins, so keep pinging it every 5 mins or less
against TOS
You’re thinking of ip ban
how ur ctx.guild.region worked ? 😥
@lapis wyvern please don't ask about all this, it's against ToS
It's user-based
Not IP-based
ok
And where u gonna make that web server?
No
No idea, it just works D:
nada
Just use aiohttp to make requests... no..?
Can you send a screenshot of the IDE where it says it's deprecated
Nono, like u gonna use a laptop or what? To run the code
If u r willing to keep your laptop on with an internet connection 24/7, why not host the bot on it then?
I need to work on my GitHub
keeping laptops on 24/7 is a hassle

Damn
umm no lol, I mean just run the script once and yea... anyways lemme try it once myself
Once...? Ok so I am confused haha
is empty? 😶
huh
l
Good to see you here my boy

Lol np.. Btw how you doing nowadays?
Good luck @slate swan 
Fine
Wait
maybe they're talking about sending get request to the url in the script they're running the server with
Im just afk doesnt nothing😎 
That's big brain
you can display visual studio code on your activty'
Anyone can
Yeah its a game
bye im restart discord
???
hehe imma be sleeping soon tho , just done with an embed color customisation command
nvm
I was thinking of doing cogs but no any ideas?
Thats cool have a good sleep when you do 
Make something else than bots to be honest xD
Exactly, it's like the cycle, the bot keeps pinging the server to keep the flask server alive, and hence in turn, itself
💀
Bots are just boring
@slate swan dont you ever say that again
true tho
Stopped making bots since Dpy shut down and deleted discord too lol
No their not😔
wut no , making bots doesnt stops with dpy
deleted discord?

Y'all need to learn sarcasm here 
😔 winrar , teach sarcasm pls
You'll find my old messages with a deleted account on this server 
!ot channels are there for these type of talks tho
Off-topic channels
There are three off-topic channels:
• #ot2-never-nester’s-nightmare
• #ot1-perplexing-regexing
• #ot0-psvm’s-eternal-disapproval
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
Who ever gives me bot ideas ill put your name on my name cuz why not
What is sarcasm..?
bot that does absolutely nothing
Your always saying that thats why you have no humour😔
A bot that makes auto-answers to questions based on an AI algorithm
Done that😔
based hunter
At least it will take time to do it
Ik I am Uncle Boring (:
Make a neural network by reading discord chats and make an ai
???
Why dont you go work for google
a bot which deletes each message on on_message events
Stop recommend ais i have 0 knowledge about them
Imagine the bot sending racial slurs
I kind of made it, just not with AI
trolling
A bot that bans members when they join
Lmaoo
Don.....
Just based on an algorithm
No
hii, i added slash command and had given guild id and this error came, does anyone know abt it ?
Got lazy to answer the same questions on my server again and again
Many bots who work on message content do that
Show the name of your first option
great idea
My bot does that only tho
first option?
YES
Should i make a Russian roulette game and it bans a random member who reacted to the embed that wants to play in the game?
😭
lmfao
yeah do it
Yea
Easy one: Make a calculator or a simple game using buttons
💀
these are easy stuff tho
I got bored at school one day...
ot channels are there for a reason tho
How can i get the real name, not the nickname of the ctx?
I know about buttons but its like cogs they scare me
ctx.author.name?
property name```
Equivalent to [`User.name`](https://discordpy.readthedocs.io/en/master/api.html#discord.User.name "discord.User.name")
You cant get the name of the context
Options of the first slash command 🤦
You mean its attr?
Umm they're just classes, if you know oop you already know 90% cogs and 97% buttons
They scare me tho
Me too
this one?
Random question is sqlite3 async?
No
Cause they're, search oop and go through it, you'll find them easy
aiosqlite
!pypi asqlite3
or asqlite3
Never used slash commands ever so I’m gonna stay quiet
Or run_in_executor
And laugh
Ok ima learn about dbs cuz i dont clearly know about them
thats dannys?
Idk, I always get confused ngl
same
they're helpful
.
They scare me tho
use mongo
Hey yall
My top fears:
1.js
2.buttons
3.cogs
4.dbs
5.** YOU**
dont think so , the repo on danny;s github (https://github.com/Rapptz/asqlite) does not state anything about the pypi library
ah
It's published by some other person iirc
why doesnt visual studio show my icon on my activity
asqlite != asqlite3
how do for bot delete all new messages in channel
learn postgres 
I will but the db channel said its not for beginners so ill go slow
No
what do you consider "new"
bruh?? whats good then 💀
Just use JSON. Ezzz
I swear if you say that again
I know json already btw
Just use JSON. Ezzz
handle on_message event then
🤬
yup but what write
!d discord.Message.delete
await delete(*, delay=None)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Deletes the message.
Your own messages could be deleted without any proper permissions. However to delete other people’s messages, you need the [`manage_messages`](https://discordpy.readthedocs.io/en/master/api.html#discord.Permissions.manage_messages "discord.Permissions.manage_messages") permission.
Changed in version 1.1: Added the new `delay` keyword-only parameter.
they are different danny's module uses import asqlite , the other library uses import asqlite3 , they function different too
Welp I gotta be up for an hour still... Gotta wait till 12 to see if I get a reply from discord today
on on_message => delete() the message, delete being the Message's method
Oh, nvm then. Sorry
Wdym why?
anything after
ctx is a argument right
yes
i mostly get confused between https://pypi.org/project/aiosqlite and https://pypi.org/project/aiosqlite3 too lol
Yes ofc
....?
how do I check if its empty again
Same lol
not/None keyword an if statement
yes
@boreal ravine
If var1 == None:
print("its empty")
yes
right, thank you
**
**
I hope that ain't me
I have applied for Message Content too
💀 lmao
Why would you check if ctx is None
he didnt
Kinda dont see a point
Context is prepared manually, you don't need to check if it's None cause it'll never be
in checking if something is none?
Why tho?
well one reason is to check if it exists
or if it doesnt etc
@maiden fable how can i install mysql on my server where the discord bot is running. the console is occupied by the discord bot
😔 there's no point at which context would be None , how would the command be invoked then?
taking context as command.Context obj ^
install it before running ur bot
Whats a basic db project i can start with?
A (School, Hotel, Library, etc....) Management System
what aman said
Pog
i tried element's periodic table and school management for a project recently , they are ez
I’m back
I’m planning to let python control my life
Ill do a hotel management system
Thx
To all of you
I'm doing SchoolManagementSystem as my school project but wid django and react instead
Is it a good idea to let python control my life?
i use json to store my python knowledge
Like send me messages whenever I get a music lesson message or what
cool , all the best with aiosqlite
Why not
Good luck
mylife = None
where do i install mysql ..the bot running in the root folder
Thx
What I was thinking
I have no friends so I’m building one
Same😔 
Thx my boy
Damn your lonely like me😭
Umm idk how these servers work and allow since I (probably) never used one... But ig u need administrator perm on the machine to do so... or no?
550+ lines of code and I’m not even halfway there
Why do I suddenly feel like I can make a chatbot using arrays 🤔
Damnnnn longest project I’ve ever used
change your bot into your best friend
No
My longest project isnt bigger than 300 lines
Won’t work
Oh damn
😔 imagine hosting your best friend lmao
I like this chat
Always quit a project midway to start another
Like me sometimes
@maiden fable !ot do it
the server is mine so i have all the permissions
I was hired to code for someone and then forgor
Don’t you dare
imagine being hired
!ot please, @Mods
Off-topic channels
There are three off-topic channels:
• #ot2-never-nester’s-nightmare
• #ot1-perplexing-regexing
• #ot0-psvm’s-eternal-disapproval
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
I got once by a female but i never finished so i never did
Hunter be like
If it's install just try this - https://dev.mysql.com/doc/mysql-linuxunix-excerpt/5.6/en/linux-installation-native.html
And try asking it #python-discussion they might help you better abt it
Right bye
i make bots for many of friends' servers , they dont hire me tho lol
People just ask me for snippets so i just tell them what to do but like with the python smort terms
I spent 2 hours today working on him
So they wont understand
Even in cogs? Or just a single file?
I was using Kali and people thought I was hacking
😏 okimii's pro moments
Really I was trying to set it up with no success
I got hired randomly lol but I rejected it and never got again 🥲
No cogs
Make it in cogs then
What a hecker
I don’t need cogs
what i see : log-in with linux
what they see : hack meta-facebook database
I need a Linux
What they actually see:
black hoodie green text
What I see: pip install discord py
✨ cogs ✨ are magical fr
What they see: DOWNLOADING MAINFRAME
They scare me
My linux installation corrupted somehow and I didn't have any backup pc, so I had to install the whole desktop env from just the terminal lol
😭
Me too
with a screen with green characters flowing randomly at a fast speed uwu
The thing is i know about cogs
Just go to cmd and type tree
But change the color first
I’m scared of cogs, never used it, never will
Color A
I know about them they just scare me
I can shutdown my school easily
sudo apt-get install hollywood is better 
😳
Ok back on topic
lol i needed to install pip by snap
Umm....
Oh
spam bot from so ☹️
Bro.
Damn
its a env
Lol it's in venv
I have a friend who is good at python I’ll ping him to annoy him
Mine was a nuke bot
@zenith rock
literally just a copy paste of lucas' tutorials
bruh
sad
I know myxi will hate it but mine was from a free code camp vid
My friend isn’t here
Doesnt work anymore😭
Wait I don’t have friends
And i know its against tos lmfao
😔 dont say you got it suggested by replit
No i just searched in yt:
HOW TO MAKE A DISCORD BOT EASY WITH NO PROGRAMMING TO IMPRESS YOUR CRUSH doesnt everyone
Just me
My first ever bot but then my fellow coder came in and then did some cool stuff don’t ban me or say I’m cringe ok this was like 4 months ago or a year I forgor
i didnt know we can invite public bots like mee6 so tried making my own 🙂
that was 2+ years back so no offense
😭
Im a smort programmer now continues to compare a int to a list of strings

I’m a genius programmer who tried to use try except on command errors in discord py because I’m really intelligent no cap
me who used discord.Member while using disnake : 
Yall think your dumb i almost nuked my own server
Yall think you’re dumb I tried to use try except when I shouldn’t have
Thats why i dont do them anymore
😭
@velvet tinsel i tried using a d.js snippet for dpy😭
💀 Who th gets impressed by coding
Yall think you’re dumb I made a broken piece of code and I was so stupid python decided to spare me so I changed the name of the program and it worked
It was a while back ok
💀
😂😂
😭
You have a crush? I never did
She likes my best friend😔
Pls tell me how to make friends
Just stop being introvert 👀 + this is out of topic now lol instead move to ot if you'd like to continue
So what add?
Easy just do this:
import friends
Oh
ModuleNotFoundError: No module named 'friends"
😔
You mean you just need the code to do so... Sorry then....
Just use the on_message event to create a listener function and use .delete() method on the message object to delete it
whats more preferable ?
Making a class as in class(discord.ui.View) or just using View() and view.add_item
SyntaxError: unexpected EOF while parsing
In the disnake examples they made classes but idk
kakashi/cogs/general.py lines 73 to 80
view = View()
buttons = [
Button(style=ButtonStyle.url , label='Invite Bot',url=ctx.bot.invite_url , emoji='🔗') ,
Button(style=ButtonStyle.url , label='Vote', url=f'https://top.gg/bot/{ctx.bot.user.id}/vote', emoji='💙') ,
Button(style=ButtonStyle.url , label='Support', url=f'https://discord.gg/{ctx.bot.server_invite}', emoji='👀')
]
for button in buttons:
view.add_item(button)```
i have this for now
Woops
yea i saw them , thats why asking
I use reactions as buttons
i'd prefer discord.ui.View
bhery big brain 🧠
Big bren🫀
embed = discord.Embed(title='test',timestamp=datetime.datetime.utcnow())
embed.set_footer(text='\u200b',icon_url="https://i.imgur.com/uZIlRnK.png")
how this show timestamp ? this show timestamp of server or user ?
and where it show the time in an embed?
mhm i was thinking to update that part
It shows on the button and it says the time of when the embed was sent
thats a hearttt
😂
No
I surely missed many things 
this will show the time of bot?
Off-topic channels
There are three off-topic channels:
• #ot2-never-nester’s-nightmare
• #ot1-perplexing-regexing
• #ot0-psvm’s-eternal-disapproval
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
or the user ?
Lol
but which region's time ?
yes ( with multiple s but im too lazy to type)
which country's time ?
You literally added utc
?
It'll display utc time...
Greenwich one
Though time is relative, but anyways
Aman is akshu if im not wrong?
i just want to show time when my giveaway will end
I expected hunter to notice that first 🥲
Are you ok?
if i were you i'd use unix timestamp for it to appear according to user's region
skyra and other bots show the time of my region
Guys
no.
should I make a discord server for us to hang out and find out how to make friends and be sad
no.
Sorry dude I totally didn't recognize you. Too much going on nowadays
Everyone here isnt smort like me
🥴 my discord's high ig
Yes bro
time to uninstall my discord client and install okimii discord
nor is everyone here annoying like you.
You don't need guild's region to display local time, just pass a timezone aware datetime object, use discord.utils.timezone or something similar I forgot
:ok_hand: applied mute to @slate swan until <t:1637855280:f> (23 hours and 59 minutes).
