#discord-bots

1 messages · Page 622 of 1

unkempt canyonBOT
#

failmail :ok_hand: applied mute to @slate swan until <t:1637855280:f> (23 hours and 59 minutes).

manic wing
#

i think i said braindead

modern fiber
#

Can I message you in DMs?

maiden fable
#

Sorry but no DM help

modern fiber
#

so
send.Embed(title=Hello, field=pog)

maiden fable
#

No

#

!d discord.Embed.add_field

unkempt canyonBOT
#

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.
slate swan
sage otter
#

Jesus dude this chat right is just not it.

maiden fable
#

Which one is Line 61?

slate swan
#

the w one

maiden fable
#

Okay

slate swan
#

But it does not matter, all 4 lines are giving error

maiden fable
#

discord.Activity(type=..., name=...)

#

The name is a param of the Activity class

lapis wyvern
#

🙂

slate swan
maiden fable
slate swan
maiden fable
#

Lemme write it

lapis wyvern
maiden fable
#

Cool

slate swan
#
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

unkempt canyonBOT
maiden fable
#

type=discord.ActivityType.watching, name=random.choice(activity_w)

#

@slate swan

#

Same for the last if statement also

slate swan
spring flax
#

What's the preferred lib now,

slate swan
#

Add something like this [Jump to message]({after.jump_url}) in your embed, considering you have f-strings

maiden fable
#

Yups

maiden fable
dapper cobalt
slate swan
#

@maiden fable help, its asking me to give a url for streaming but I don't want to give

sullen shoal
#

then dont use

maiden fable
#

Well u can give literally any url

#

Even if it's invalid

modern fiber
#

Its sending infinity of on.join messages

slate swan
#

o ok

maiden fable
#

Code?

#

Hmm, did u just delete your code after replying to me? Lol

modern fiber
maiden fable
#

Got a ghost ping

tall dust
#

@modern fiber remove the invite link from your code and send it

maiden fable
unkempt canyonBOT
#

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.

maiden fable
#

Ah, invite

modern fiber
#

Nope, not the invite..

maiden fable
#

Why

modern fiber
maiden fable
#

As I said, no DM help

#

There's always a reason for everything

modern fiber
#

bruh just read the code youll help me here

#

because I can't sent it here

maiden fable
#

As hsp said, remove the invite (:

modern fiber
#
#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.

maiden fable
#

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

modern fiber
#

Yeah but how I remove the loop

maiden fable
#

Just..... remove the for line?

modern fiber
#

oh

maiden fable
#

😐

modern fiber
#

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

maiden fable
#

Remove the extra indent from the next line

#

The send() line

modern fiber
#

Oh okay

#

let me test it

maiden fable
#

Please learn some more Python before starting with disnake

dapper cobalt
maiden fable
#

Facts

boreal ravine
#

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

lapis wyvern
#

help

velvet tinsel
lapis wyvern
#

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').

rotund nova
#

still nothing

maiden fable
slate swan
maiden fable
velvet tinsel
#

Exactly

sullen shoal
#

i have been lurking since an hour laughing at everyone

boreal ravine
slate swan
#

You should not put a picture that you got from the Internet that starts with blob:

velvet tinsel
slate swan
boreal ravine
velvet tinsel
#

Muted

maiden fable
slate swan
slate swan
#

Pretty sure it's written "mute"

rotund nova
#

@boreal ravine what do?

velvet tinsel
#

Yes

lapis wyvern
#

doesnt sohw

boreal ravine
lapis wyvern
#

it doesnt even show the image

velvet tinsel
#

What’s wrong

boreal ravine
#

🤥

slate swan
#

i still see Muted role on kraots tho

slate swan
#

Would contact moderators eventually, maybe it's a temporary ban of 1-2 days or something

boreal ravine
sullen shoal
#

@wind thunder test

#

oh

velvet tinsel
#

True

maiden fable
#

Weird

slate swan
#

Look at mutual servers then you don't rely on cache

rotund nova
#

thats dont working

boreal ravine
lapis wyvern
#

help

dapper cobalt
slate swan
#

ye python aint in mutual guilds

maiden fable
#

Yea

velvet tinsel
slate swan
#

@maiden fable Its showing nameerror: "Client" not defined

lapis wyvern
#

its my profile pfp

boreal ravine
#

🤦‍♀️

slate swan
#

wait wait sending

slate swan
velvet tinsel
#

CODEE jk

#

You have to embed it

novel bolt
#

i would suggest u to delete this pic

kind wind
#

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
#

not cached yet probably

#

☹️

rotund nova
#

@boreal ravine :/

dapper cobalt
#

Btw, great token you got there.

maiden fable
velvet tinsel
#

Thanks, I’ll like to take your bot token 👍

maiden fable
#

Ah yea nvm

boreal ravine
kind wind
velvet tinsel
slate swan
#

blank , sus

#

ok

maiden fable
#

Yea my bad

slate swan
#

wait I am a fool

lapis wyvern
#

uh

slate swan
#

🤭

sullen shoal
#

Blank SelfBot

lapis wyvern
#

give me a huge min

velvet tinsel
dapper cobalt
slate swan
rotund nova
# boreal ravine Sorry for ignoring you lmfao, show your code
@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}.")
velvet tinsel
slate swan
kind wind
dapper cobalt
velvet tinsel
rotund nova
kind wind
#

okay but what is the problem

rotund nova
#

bot dont react

maiden fable
#

Sarthak told u

slate swan
#

check recent pings , answered ya

maiden fable
#

!intents lol. U need members intent

unkempt canyonBOT
#

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.

velvet tinsel
#

Not cached prob

slate swan
#

File "main.py", line 136
async def command_name_error(ctx, error):
^
IndentationError: unexpected indent

rotund nova
velvet tinsel
#

You indented it when you’re not supposed to

slate swan
#

fix your indents

kind wind
#

I have that in the bot prefix

velvet tinsel
#

😂😂

slate swan
kind wind
#
bot = commands.Bot(command_prefix="v!", intents=discord.Intents.all())

Already have that

rotund nova
#

yes

#

channel id, guild id and role id is good

#

im sure

slate swan
#

and the message content?

slate swan
kind wind
#

the role id is vaild

velvet tinsel
#

Try again

slate swan
#

thats weird , do you have multiple on_member_join events?

kind wind
#

no

#

just one

velvet tinsel
#

Let me see your code

kind wind
#

I have an on_ready event, an on_member_join event and 2 commands

kind wind
rotund nova
velvet tinsel
#

Try creating a custom role

rotund nova
kind wind
#

why

velvet tinsel
#

role = get(member.server.roles, name="Test")
await bot.add_roles(member, role)

#

Or client whichever you are using

kind wind
#

so it will be

notverified = get(member.server.roles, name="Not Verified")
  await bot.add_roles(member, notverified)
slate swan
#

Since 1.x I think

kind wind
velvet tinsel
#

Old stack overflow

#

Hello kayle

kind wind
#

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)
slate swan
#

Do you have the members intent enabled?

velvet tinsel
#

Role id correct?

kind wind
slate swan
#

In the developer portal?

kind wind
#

and again yes

velvet tinsel
#

Ok

slate swan
#

Weird

velvet tinsel
#

Hmmm

kind wind
slate swan
#

Can you try to print the role?

slate swan
kind wind
slate swan
#

Yes

kind wind
#

does it have to be in that code?

maiden fable
#

U need guilds intent

slate swan
#

All intents are enabled

maiden fable
#

Oh, hmm

slate swan
maiden fable
#

Hmmmmmmmmmm

velvet tinsel
#

Weird

#

Wait

#

I think I know

#

Did you join on a test account?

maiden fable
#

What u got in mind?

quick gust
#

@kind windMake sure the bot's role is above the role you want to give

slate swan
#

Pretty sure you would get an error

maiden fable
#

But that would have raised an error, yea

quick gust
#

¯_(ツ)_/¯

velvet tinsel
#

Maybe it’s because he didn’t join on a test account

kind wind
#

i had 3 friends to join

velvet tinsel
#

Or he kicked the bot out and invited it back

kind wind
#

none of the times it worked

velvet tinsel
slate swan
#

Have you tried printing the role?

velvet tinsel
#

Was it running?

kind wind
#

can I do this through a command?

velvet tinsel
#

Yes

slate swan
#

Just change your code

kind wind
#

ok wait

#

printed role id

velvet tinsel
#

Ok

#

Show us

kind wind
slate swan
#

Interesting

velvet tinsel
#

Maybe go through everything one by one?

slate swan
#

Never seen this before ¯_(ツ)_/¯

kind wind
#

wait a second

velvet tinsel
slate swan
#

Well it's an event

velvet tinsel
#

I started learning python back then

slate swan
#

So you can't really change it

kind wind
#

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)
velvet tinsel
velvet tinsel
#

Wait

slate swan
#

It's just the role as parameter

kind wind
#

now?

slate swan
#

Yea

kind wind
#

hm...

slate swan
velvet tinsel
#

Very intriguing

slate swan
#

Well I'm sorry, I have no idea. Code and everything looks normal

slate swan
slate swan
slate swan
# slate swan
# 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

slate swan
velvet tinsel
#

Full code

slate swan
#

You did

type=discord.ActivityType.watching(name="a movie")
velvet tinsel
slate swan
#

As you can see here

#

Im back guys yert

kind wind
#

I can ask MEE6

velvet tinsel
#

Obvious error there

slate swan
# slate swan send code
@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)```
velvet tinsel
slate swan
#

Replace the (with ,

slate swan
velvet tinsel
slate swan
kind wind
slate swan
velvet tinsel
slate swan
velvet tinsel
#

^ the code is above, very weird error happened

kind wind
slate swan
#

🤔

slate swan
slate swan
#

@kind wind first can your bot even see other members aka do you have intents on?

kind wind
#

yes

velvet tinsel
#

Yes

slate swan
#

Very well

steep estuary
#

why ctx.region is showing deprecated ?

velvet tinsel
rotund nova
#

how in on_message bot delete own message?

kind wind
#

i found something...

steep estuary
velvet tinsel
steep estuary
#

it is showing deprecated

velvet tinsel
slate swan
kind wind
#

but nevermind

#

wait

rotund nova
#

when i use await message.delete()
bot delete message member dont own

slate swan
steep estuary
#

it is showing dreprecated

slate swan
#

My requests.get module is caching results fetched previously and now its showing the old results

velvet tinsel
#

Can I have a photo?

steep estuary
velvet tinsel
#

There’s nothing I can find.

steep estuary
#

there is ctx.region

slate swan
#

Switch over to ctx.guild.region

kind wind
#

nevermind

slate swan
#

Might not be deprecated this one

#

!d discord.Guild.region

unkempt canyonBOT
#

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.

steep estuary
#

wht i tried that it was working perfect before

#

hmm this is changed ?

velvet tinsel
#

Damn nvm

slate swan
#

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??

sullen shoal
steep estuary
#

wht why then how i can do that

velvet tinsel
slate swan
#

Deprecated means it was existing in the past, so probably it got removed

kind wind
#

So my code cant be solved?

slate swan
slate swan
velvet tinsel
slate swan
#

@kind wind give me a sec in thinking🤔

steep estuary
unkempt canyonBOT
#
Certainly not.

No documentation found for the requested symbol.

steep estuary
#

? nothing

slate swan
unkempt canyonBOT
#

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.

kind wind
slate swan
#

That's not how the documentation command works

velvet tinsel
#

Also known as ctx.guild.region

steep estuary
velvet tinsel
slate swan
#

You can't give ctx.guild.region when searching the documentation

velvet tinsel
#

Well I hope you’re not

slate swan
#

The command doesn't work like that

kind wind
quick gust
sullen shoal
slate swan
velvet tinsel
#

Yes I know

slate swan
#

@kind wind give me a sec im eating my scooby snack cookiesyert

slate swan
velvet tinsel
#

But we cannot seem to solve it

rotund nova
sullen shoal
slate swan
steep estuary
slate swan
# steep estuary ohk

ctx => Context
guild => Context.guild => discord.Guild
region => discord.Guild.region --> that's what you need

velvet tinsel
steep estuary
#

ohk

slate swan
sullen shoal
steep estuary
quick gust
slate swan
rotund nova
#

@slate swan??

slate swan
velvet tinsel
slate swan
#

In either cases you should use an asynchronous library to make your requests

#

can't read your mind

rotund nova
slate swan
velvet tinsel
#

Await delete() I think

slate swan
rotund nova
velvet tinsel
#

I only ever used purge

slate swan
#

@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
cobalt jacinth
#

guys when i open my server console ...the bot is running...i need to setup sql server without stopping the bot. any help

slate swan
velvet tinsel
slate swan
#

eg py msg = await ctx.send("e") await msg.delete()
@rotund nova

slate swan
kind wind
steep estuary
kind wind
#

error

steep estuary
#

and it is showing deprecated

velvet tinsel
#

👋

kind wind
#

before I even start it

slate swan
velvet tinsel
#

Ok

slate swan
slate swan
slate swan
slate swan
velvet tinsel
#

@slate swan how did you get so good at programming if you started at March?

kind wind
#

that space after atomic=True) <<here

slate swan
kind wind
#

wait nvm @slate swan nevermind

slate swan
slate swan
steep estuary
slate swan
slate swan
#

Make sure you add a random number, and not always the same

slate swan
#

It will work

slate swan
slate swan
slate swan
#

what are you trying to achieve

velvet tinsel
steep estuary
#

the problem is it is showing deprecated for ctx.guild.region

velvet tinsel
#

😂

sullen shoal
slate swan
rotund nova
slate swan
velvet tinsel
velvet tinsel
#

Started like 3 months ago

slate swan
#

await it

#

But yes

velvet tinsel
#

ye

slate swan
#

@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

velvet tinsel
sullen shoal
slate swan
velvet tinsel
lapis wyvern
#

.

slate swan
#

..

rotund nova
# slate swan like delete the msg after 2 secs? ``` asyncio.sleep(2) ``` before deleting
    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?
velvet tinsel
#

Before I realised I was about to run out of ink

velvet tinsel
steep estuary
slate swan
velvet tinsel
slate swan
slate swan
steep estuary
velvet tinsel
#

Asyncio yes, but can’t you also do time.sleep?

slate swan
#

Because it's weird that it doesn't show deprecated for me

maiden fable
#

So HunAI finally woke up after sleeping for 1 day

steep estuary
#

ohh let me check

velvet tinsel
steep estuary
sullen shoal
slate swan
#

@velvet tinsel These are the mega smort people who are also funny

velvet tinsel
slate swan
#

Including my boy winrar

slate swan
slate swan
maiden fable
sullen shoal
#

oh i see

slate swan
slate swan
lapis wyvern
velvet tinsel
maiden fable
#

He said that word ^^^

steep estuary
slate swan
#

Interesting

lapis wyvern
#

who was he talking to

slate swan
#

Kraots is like that😭

maiden fable
#

Lmao

sullen shoal
slate swan
velvet tinsel
rose shale
#

👀

velvet tinsel
#

😢

#

Pore peopo

lapis wyvern
#

not my falut

velvet tinsel
#

Sometimes that happens a lot

maiden fable
#

Okay let's leave that, shall we?

sullen shoal
#

yeah falut

velvet tinsel
#

Yeah

slate swan
#

@lapis wyvern if you got kraots to say that you probably did something hella bad or wrong

velvet tinsel
#

Pretend it never happened

slate swan
lapis wyvern
#

I do know python a bit

velvet tinsel
lapis wyvern
#

only bots in python I know about

sullen shoal
#

you dont bro

slate swan
slate swan
lapis wyvern
slate swan
#

go do some simpler projects to get familiar with the errors and syntax

slate swan
#

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

lapis wyvern
#

exactly

velvet tinsel
slate swan
velvet tinsel
#

Don’t be mean to people

lapis wyvern
#

lol

velvet tinsel
#

We are only trying to help you

slate swan
velvet tinsel
#

If you don’t learn basic python you will be visiting this 24/7

slate swan
lapis wyvern
steep estuary
#

what should i do?

maiden fable
# slate swan oooo

But that would require u to keep your laptop on with an internat connection 24/7

slate swan
#

Icy is hella smart ngl

steep estuary
#

it is showing deprecated when i am using ctx.guild.region

velvet tinsel
#

So that’s why you buy a cloud computer

slate swan
#

But mostly these are the boysyert

slate swan
slate swan
steep estuary
velvet tinsel
#

I think we are missing out eivl he’s also very smart

maiden fable
velvet tinsel
#

Upgrade to hacker

maiden fable
slate swan
velvet tinsel
#

Yea

lapis wyvern
#

how to bypass a ban

maiden fable
velvet tinsel
slate swan
velvet tinsel
slate swan
lapis wyvern
#

WHAT

slate swan
#

nitro moment D:

slate swan
lapis wyvern
#

Not even vpn can

velvet tinsel
slate swan
slate swan
velvet tinsel
steep estuary
maiden fable
#

@lapis wyvern please don't ask about all this, it's against ToS

slate swan
maiden fable
slate swan
#

:kek:

#

Bots cannot have images on playing status right?? 😢

slate swan
slate swan
#

Can you send a screenshot of the IDE where it says it's deprecated

maiden fable
slate swan
#

Laptop, yes

#

who uses a laptop to host wtf

#

Not host...

#

to run the code

maiden fable
# slate swan Laptop, yes

If u r willing to keep your laptop on with an internet connection 24/7, why not host the bot on it then?

velvet tinsel
#

I need to work on my GitHub

slate swan
#

keeping laptops on 24/7 is a hassle

velvet tinsel
#

I haven’t shared anything lately

#

Or anything at all

slate swan
velvet tinsel
#

Damn

slate swan
maiden fable
slate swan
lapis wyvern
#

l

slate swan
lapis wyvern
slate swan
slate swan
#

Good luck @slate swan KEKL

maiden fable
lapis wyvern
sullen shoal
slate swan
#

That's big brain

lapis wyvern
#

you can display visual studio code on your activty'

slate swan
#

Anyone can

slate swan
lapis wyvern
#

bye im restart discord

slate swan
sullen shoal
slate swan
slate swan
slate swan
slate swan
slate swan
#

Bots are just boring

#

@slate swan dont you ever say that again

sullen shoal
#

true tho

slate swan
#

Stopped making bots since Dpy shut down and deleted discord too lol

#

No their not😔

#

wut no , making bots doesnt stops with dpy

slate swan
#

Y'all need to learn sarcasm here KEKL

#

😔 winrar , teach sarcasm pls

slate swan
maiden fable
#

!ot channels are there for these type of talks tho

unkempt canyonBOT
slate swan
#

Who ever gives me bot ideas ill put your name on my name cuz why not

boreal ravine
slate swan
slate swan
slate swan
slate swan
slate swan
#

At least it will take time to do it

maiden fable
slate swan
maiden fable
slate swan
#

a bot which deletes each message on on_message events

#

Stop recommend ais i have 0 knowledge about them

maiden fable
slate swan
slate swan
maiden fable
slate swan
slate swan
#

Just based on an algorithm

maiden fable
rose shale
#

hii, i added slash command and had given guild id and this error came, does anyone know abt it ?

slate swan
#

Got lazy to answer the same questions on my server again and again

maiden fable
#

Many bots who work on message content do that

maiden fable
slate swan
maiden fable
rose shale
quick gust
slate swan
#

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?

slate swan
maiden fable
slate swan
slate swan
sullen shoal
#

these are easy stuff tho

slate swan
#

I got bored at school one day...

maiden fable
#

ot channels are there for a reason tho

hazy canopy
#

How can i get the real name, not the nickname of the ctx?

slate swan
slate swan
unkempt canyonBOT
#

property name```
Equivalent to [`User.name`](https://discordpy.readthedocs.io/en/master/api.html#discord.User.name "discord.User.name")
rose shale
slate swan
maiden fable
slate swan
#

You mean its attr?

slate swan
velvet tinsel
rose shale
slate swan
#

Random question is sqlite3 async?

maiden fable
#

No

slate swan
#

Cause they're, search oop and go through it, you'll find them easy

slate swan
maiden fable
#

!pypi asqlite3

unkempt canyonBOT
slate swan
#

or asqlite3

velvet tinsel
#

Never used slash commands ever so I’m gonna stay quiet

slate swan
#

Or run_in_executor

velvet tinsel
#

And laugh

slate swan
boreal ravine
maiden fable
boreal ravine
#

same

slate swan
rose shale
slate swan
lapis wyvern
#

Hey yall

slate swan
#

My top fears:
1.js
2.buttons
3.cogs
4.dbs
5.** YOU**

slate swan
maiden fable
lapis wyvern
#

why doesnt visual studio show my icon on my activity

boreal ravine
#

asqlite != asqlite3

rotund nova
#

how do for bot delete all new messages in channel

slate swan
slate swan
sullen shoal
boreal ravine
maiden fable
rotund nova
#

which send user

slate swan
#

I know json already btwpithink

maiden fable
sullen shoal
slate swan
rotund nova
sullen shoal
#

!d discord.Message.delete

unkempt canyonBOT
#

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.
slate swan
maiden fable
#

Welp I gotta be up for an hour still... Gotta wait till 12 to see if I get a reply from discord today

slate swan
slate swan
#

ctx.message.delete(*,delay=None)

#

with

async def command(ctx, var1, var2)
slate swan
#

anything after

#

ctx is a argument right

boreal ravine
#

yes

slate swan
slate swan
maiden fable
slate swan
#

how do I check if its empty again

slate swan
#
is None```
boreal ravine
slate swan
#

yes

maiden fable
#

@boreal ravine

slate swan
#

If var1 == None:
print("its empty")

boreal ravine
#

yes

slate swan
#

right, thank you

boreal ravine
maiden fable
boreal ravine
#

"excuse me? I dont have message content intent yet.." - some bot developer

#

☹️

maiden fable
#

I have applied for Message Content too

boreal ravine
#

💀 lmao

slate swan
#

Why would you check if ctx is None

boreal ravine
boreal ravine
slate swan
#

Context is prepared manually, you don't need to check if it's None cause it'll never be

boreal ravine
slate swan
boreal ravine
boreal ravine
#

or if it doesnt etc

cobalt jacinth
#

@maiden fable how can i install mysql on my server where the discord bot is running. the console is occupied by the discord bot

slate swan
#

😔 there's no point at which context would be None , how would the command be invoked then?

#

taking context as command.Context obj ^

slate swan
#

Whats a basic db project i can start with?

#

A (School, Hotel, Library, etc....) Management System

boreal ravine
#

what aman said

velvet tinsel
#

Pog

slate swan
velvet tinsel
#

I’m back

velvet tinsel
slate swan
#

Thx

#

To all of you

#

I'm doing SchoolManagementSystem as my school project but wid django and react instead

velvet tinsel
#

Is it a good idea to let python control my life?

slate swan
velvet tinsel
#

Like send me messages whenever I get a music lesson message or what

slate swan
velvet tinsel
slate swan
cobalt jacinth
slate swan
velvet tinsel
velvet tinsel
slate swan
slate swan
velvet tinsel
#

Building my best friend

#

I’m working on him later I have to finish my bot

slate swan
slate swan
velvet tinsel
#

550+ lines of code and I’m not even halfway there

boreal ravine
#

Why do I suddenly feel like I can make a chatbot using arrays 🤔

velvet tinsel
#

Damnnnn longest project I’ve ever used

slate swan
velvet tinsel
slate swan
velvet tinsel
#

Won’t work

slate swan
#

😔 imagine hosting your best friend lmao

velvet tinsel
#

I like this chat

slate swan
velvet tinsel
slate swan
#

waiting for !ot

slate swan
cobalt jacinth
velvet tinsel
#

I was hired to code for someone and then forgor

velvet tinsel
slate swan
#

imagine being hired

velvet tinsel
#

It was a small code

#

Wasn’t too big

boreal ravine
#

!ot please, @Mods

unkempt canyonBOT
slate swan
slate swan
slate swan
velvet tinsel
#

Right bye

slate swan
velvet tinsel
#

Is this a discussion channel?

#

As well as a help channel?

slate swan
#

if related to discord bot , yes

#

Discussions are allowed if related to topic

velvet tinsel
#

Ok

#

My bot code is long I’m having a slight headache

slate swan
velvet tinsel
#

I spent 2 hours today working on him

slate swan
#

So they wont understand

slate swan
velvet tinsel
velvet tinsel
#

Really I was trying to set it up with no success

slate swan
slate swan
velvet tinsel
slate swan
slate swan
velvet tinsel
#

I don’t need cogs

slate swan
#

what i see : log-in with linux
what they see : hack meta-facebook database

velvet tinsel
#

I need a Linux

slate swan
velvet tinsel
#

What I see: pip install discord py

slate swan
#

✨ cogs ✨ are magical fr

velvet tinsel
#

What they see: DOWNLOADING MAINFRAME

slate swan
#

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

slate swan
velvet tinsel
#

Me too

slate swan
velvet tinsel
#

BYPASSING FIREWALL

#

DECRYPTING DATA

#

IM IN

slate swan
#

The thing is i know about cogs

slate swan
#

But change the color first

velvet tinsel
velvet tinsel
slate swan
velvet tinsel
#

I can shutdown my school easily

slate swan
#

sudo apt-get install hollywood is better ducky_tube

slate swan
#

pip install pip😳

velvet tinsel
#

😂👍

slate swan
#

😳

velvet tinsel
#

Ok back on topic

slate swan
#

lol i needed to install pip by snap

velvet tinsel
#

Uhhuhh

#

What was the first bot you’ve ever created

slate swan
#

Umm....

velvet tinsel
#

Oh

boreal ravine
slate swan
velvet tinsel
slate swan
#

its a env

slate swan
velvet tinsel
#

I have a friend who is good at python I’ll ping him to annoy him

slate swan
velvet tinsel
#

@zenith rock

slate swan
boreal ravine
#

bruh

boreal ravine
#

🙁

slate swan
#

sad

slate swan
velvet tinsel
#

My friend isn’t here

slate swan
velvet tinsel
#

Wait I don’t have friends

slate swan
#

And i know its against tos lmfao

slate swan
slate swan
#

Just mejam_cavedude

velvet tinsel
#

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

slate swan
#

i didnt know we can invite public bots like mee6 so tried making my own 🙂

#

that was 2+ years back so no offense

slate swan
#

Im a smort programmer now continues to compare a int to a list of strings

velvet tinsel
#

I’m a genius programmer who tried to use try except on command errors in discord py because I’m really intelligent no cap

slate swan
#

me who used discord.Member while using disnake : ok_handbutflipped

velvet tinsel
#

😂

#

👍joe_salute

slate swan
#

Yall think your dumb i almost nuked my own serveryert

velvet tinsel
#

Yall think you’re dumb I tried to use try except when I shouldn’t have

slate swan
#

Thats why i dont do them anymorejam_cavedude

slate swan
#

@velvet tinsel i tried using a d.js snippet for dpy😭

slate swan
velvet tinsel
#

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

slate swan
velvet tinsel
#

😂😂

slate swan
#

😭

velvet tinsel
slate swan
velvet tinsel
slate swan
#

Just stop being introvert 👀 + this is out of topic now lol instead move to ot if you'd like to continue

velvet tinsel
#

Ok

#

When is someone gonna ask a question

slate swan
slate swan
#

😔

slate swan
# rotund nova So what add?

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

slate swan
unkempt canyonBOT
#

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)```
slate swan
#

i have this for now

slate swan
slate swan
slate swan
slate swan
#

bhery big brain 🧠

slate swan
steep estuary
#
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?

slate swan
slate swan
slate swan
slate swan
#

yas

slate swan
slate swan
maiden fable
#

I surely missed many things pithink

steep estuary
unkempt canyonBOT
steep estuary
#

or the user ?

slate swan
#

Lol

slate swan
steep estuary
slate swan
steep estuary
#

which country's time ?

slate swan
steep estuary
slate swan
#

It'll display utc time...

#

Greenwich one

#

Though time is relative, but anyways

#

Aman is akshu if im not wrong?

steep estuary
#

i just want to show time when my giveaway will end

slate swan
#

Ummm yes

#

ic

steep estuary
#

before i was using ctx.guild.region

#

but it is no more now

slate swan
#

I expected hunter to notice that first 🥲

slate swan
slate swan
steep estuary
velvet tinsel
#

Guys

manic wing
#

no.

velvet tinsel
#

should I make a discord server for us to hang out and find out how to make friends and be sad

manic wing
#

no.

maiden fable
slate swan
slate swan
slate swan
#

time to uninstall my discord client and install okimii discord

manic wing
slate swan