#discord-bots

1 messages Β· Page 428 of 1

heavy folio
#

yes

final iron
#

Wdym meme? Like using Reddit API to take memes from a subreddit?

fickle turret
#

yes

final iron
#

Also wdym rank

fickle turret
#

leveling system

final iron
#

Isn't a leveling system really complicated?

fickle turret
#

just do something basic

slate swan
#

nice I started like 2 weeks ago and I was kinda happy ngl cus I was learning stuff fast

#

But rip

fickle turret
#

actually nvm, ignore leveling for now

final iron
#

Also what's a good way to store values ie having a different prefix for every server?

maiden fable
fickle turret
# heavy folio yes

you should use an if statement to check if link is none or not and return if it is

fickle turret
heavy folio
final iron
fickle turret
fickle turret
# final iron So nothing like a JSON file?

Json files aren't databases, they can be corrupted and aren't persistent, you can use mongodb, it stores data in bson which basically json format, not exactly sure about psql's json

final iron
#

Alright

fickle turret
heavy folio
#

hold up

light night
#

or postgresql

fickle turret
light night
fickle turret
#

Cya CatWave

heavy folio
#

still the same error

#
  if not link:
    if not link.startswith("http://") or link.startswith("https://"):
      https_embed = discord.Embed(title="Command Error!", description="your link needs to begin with `http` or `https`!", color=discord.Color.random())
      await ctx.reply(embed=https_embed)
    else:
      link_embed = discord.Embed(title="Command Error!", description="this command requires for a link to work!")
      await ctx.reply(embed=link_embed)
fickle turret
#

why are you checking if the link startswith if it is none, aren't you supposed to check if it is not none

heavy folio
#

oh yea

maiden fable
#

... If you want to apply for the message content intent, you cannot use it for command handling purposes; they will explicitly deny you the intent. Therefore, effectively everyone must move over to Slash Commands for their bot to function.

#

From that gist

#

Discord has been exposed

crisp spindle
maiden fable
#

Sure

crisp spindle
maiden fable
#

well, just saying, dpy will stop working from April 2022

pale turtle
#

Oh no

maiden fable
pale turtle
#

Danny quits

maiden fable
#

@pale turtle now u can make that bot vars PR of yours haha

crisp spindle
maiden fable
crisp spindle
#

then any other way to make bots in python?

maiden fable
#

!pypi hikari

unkempt canyonBOT
slate swan
maiden fable
#

Snekcord is also there

dim vapor
#

what are they talking about eod d.py?

#

like what should we move to then?

crisp spindle
#

ok so d.py help can i get channel id by user input of channel name?

#

like if u give

#

security

slate swan
pale turtle
#

I want to cry

crisp spindle
#

then can i get the id

gritty flame
#

what happened

maiden fable
maiden fable
gritty flame
#

now just sum it up for me

maiden fable
#

Dude calm down

pale turtle
#

Me have to go djs

maiden fable
pale turtle
#

We had a great run here 😒

maiden fable
#

Yup

gritty flame
#

sorry

maiden fable
dim vapor
#

so u think someone will folk and redo?

maiden fable
pale turtle
gritty flame
dim vapor
slate swan
gritty flame
#

😐

#

guys just tell me

maiden fable
#

Breh

slate swan
#

Just read

gritty flame
#

no

maiden fable
#

Then dont

gritty flame
#

i just woke up

slate swan
#

Then don't complain and insult people here

maiden fable
#

Yup

pale turtle
#

For real, the only one who can match Danny level and understanding of discord api, ,is Joe

languid jungle
#

!warn 534403455201312793 Swearing at other members is unacceptable. PLease re-read our #rules and #code-of-conduct .

unkempt canyonBOT
#

:incoming_envelope: :ok_hand: applied warning to @gritty flame.

maiden fable
#

U know, Danny wasn't even a coder... He was a doctor or something

fossil pumice
#

you can read the faq section in the discordpy server
hopefully that helps@gritty flame

slate swan
wheat prawn
#

Python bot written is discord.py, discord.py called of, soon message intent will be introduced. will this bot keep working?

slate swan
#

Yes

maiden fable
#

Yup

slate swan
#

Because it's not over 100 servers

maiden fable
slate swan
#

Message intent only affects verified bots

maiden fable
#

But I'mma shut down my bot :c

slate swan
#

Move to another language :D

fossil pumice
#

and wait till a contender comes out

#

if you wanna take the gamble*

visual island
neat salmon
#

Do we really want to keep using Discord though?

languid jungle
maiden fable
#

Yes

maiden fable
pale turtle
languid jungle
maiden fable
slate swan
pale turtle
#

Here comes andy lol

fossil pumice
wheat prawn
#

me too own a bot, and it has some games, i am wondering how would it be playing mini games using slash commands, ugh >_<

maiden fable
#

Ikr

#

Slash
Commands
Suck

slate swan
#

Time to leave blobpain

maiden fable
#

Nah

pale turtle
#

Yeah it's trash

#

I have no idea about javascript

fossil pumice
#

I personally hate slash commands

at the moment they're slow bloated and unresponsive on both desktop and mobile

maiden fable
#

@pale turtle we can just do something else in Python itself

fossil pumice
#

that's not even addressing the fact that you have a 50 command limit

fossil pumice
maiden fable
slate swan
#

Discord is no more fun without dpy and I don't think working for something like dc is any good blobpain

pliant gulch
pliant gulch
wheat prawn
#

yes slash command bad, it is slow, sometimes unresponsible, literally anyone can use it, no permission checkksss, damn

maiden fable
maiden fable
#

@wheat prawn haha it's all fine. I know the feeling u r experiencing rn. The weird one. U can come back :D

wheat prawn
#

mhm

maiden fable
#

So what do u all think u gonna do now?

#

Also, anyone here got an idea what I can do about my AI API I made for my discord bot?

wheat prawn
#

make own, custom implementation of slash command, or switching to js

pale turtle
#

Maybe djs or something else in Python

#

Does JavaScript have circular imports shit?

maiden fable
#

Lmao

visual island
valid perch
#

Likely move to hikari tbh

pale turtle
#

What is hikari

visual island
maiden fable
#

!pypi hikari

unkempt canyonBOT
maiden fable
#

But it doesn't have that feel tbh. I think I'mma leave bot making for the foreseeable future

visual island
#

yeah, I'm currently planning to make whatsapp wrapper, cause discord's sucks

maiden fable
#

Huh

#

They also have one?

visual island
#

yeah

maiden fable
#

Can u send a link in DMs?

visual island
#

sure

slate swan
#

No more migration to other libs. Thanks dpy, the support server and this channel blobpain

maiden fable
#

Yes

slate swan
upbeat otter
#

Hey guys, how do i check if a person has a specific role or not

valid perch
#

Fair enough, the effort is gonna be meh

maiden fable
valid perch
unkempt canyonBOT
#

roles```
A [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.9)") of [`Role`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Role "discord.Role") that the member belongs to. Note that the first element of this list is always the default [β€˜@everyone](mailto:'%40everyone)’ role.

These roles are sorted by their position in the role hierarchy.
slate swan
#

is there any way to throw slash commands or bypass?

upbeat otter
#

and if i want to specify a number of roles?

valid perch
#

Thats the roles they have, you can check if your role object is in that list

upbeat otter
#

should i use a list or a tuple?

visual island
shell wing
#
@bot.event
async def on_message(message):
      if message.content.startswith('1') and message.channel.id == 880542597951655936:
            await message.author.send ("I have **given you** the support and the access to __[#880541760995094558](/guild/267624335836053506/channel/880541760995094558/) / [#880541781803036672](/guild/267624335836053506/channel/880541781803036672/)__")
            role = discord.utils.get(message.guild.roles, name="support")
            await message.author.add_roles(role)
Ignoring exception in on_message
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 42, in on_message
    await message.author.add_roles(role)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/member.py", line 777, in add_roles
    await req(guild_id, user_id, role.id, reason=reason)
AttributeError: 'NoneType' object has no attribute 'id'
``` need a quick fix pls
maiden fable
slate swan
pale turtle
shell wing
#

i did define it

pale turtle
#

Pygame or js?

#

I am afraid to use js because I am about to learn web development(and c#) using html css and js

#

And I don't want to get confused

slate swan
#

If we want to make a bot and don't want slash commands, we can't request for message intents just to use normal commands
Discord sucks

pale turtle
#

Just say you are making anti-spam

#

And some other curse words stuff

final iron
#

Can somebody clarify something for me? When you make the bot command in the brackets what are you supposed to put

slate swan
#

@bot.command()

#

you don't need to put anything, but you can if you want to

visual island
final iron
slate swan
slate swan
quiet rivet
pale turtle
maiden fable
#

It's a programming language

pale turtle
#

I am more familiar with Js really

maiden fable
#

Like java it's used in Android deving

pale turtle
slate swan
#

Let's take it to ot's. I feel like !shh or !mute ..blobpain

visual island
#

!ssh

maiden fable
#

Lmao

visual island
#

what's ssh

maiden fable
#

Mute

visual island
#

oh

#

!shh

tight obsidian
#

!shh

unkempt canyonBOT
#

βœ… silenced current channel for 4 minute(s).

tight obsidian
#

!unshh

unkempt canyonBOT
#

βœ… unsilenced current channel.

visual island
#

oh

#

i see

tight obsidian
#

anyway... let's get back to something on-topic

maiden fable
#

Ah

pliant gulch
maiden fable
#

Isn't that just a simple request using aiohttp or something?

pliant gulch
#

I'm connecting to the discord gateway

maiden fable
#

With a bot instance?

minor kestrel
#

Pls can anyone make me a resume about what is happening with Danny and discord.py?? What do I need to do for ny bot to still work??

maiden fable
#

!pypi enhanced-dpy

unkempt canyonBOT
slate swan
#

anyone know how to make a on_command_completion that add 1 to a value every time a command is used and when the values reaches then it sends the message and then reset the value? i tried by making this:

commandscount = 0
@client.event
async def on_command_completion(ctx):
    commandscount =+ 1
    if commandscount == 10:
        await ctx.send("**Tip**: prova")
        commandscount - 10
upbeat otter
#
member = message.author
      if member.has_any_roles("Omnivert", "Extrovert", "Ambivert"):

Guys why is this giving me errors?

neat salmon
#

Someone should probably pin a message detailing D.py's future.

#

Also what worries me is this server's future.

slate swan
#

discord.py is not the only channel in this server you know

valid perch
#

This server will be fine haha

slate swan
#

discord bots*

slate swan
#

also, it will remain relevant for anyone trying to use the api or the gateway

#

i doubt this channel will die

unkempt canyonBOT
#

discord.on_command(ctx)```
An event that is called when a command is found and is about to be invoked.

This event is called regardless of whether the command itself succeeds via error or completes.
dense swallow
#

Dpy is dying

#

I don't want it to :(

dapper cobalt
slate swan
minor kestrel
dapper cobalt
#
// commandscount.json
{
  "commandscount": 0
}
import json
@client.event
async def on_command_completion(ctx):
    with open("commandscount.json", "r") as f:
      load = json.load(f)
    load["commandscount"] += 1
    with open("commandscount.json", "r") as f:
      json.dump(load, f, indent=4)

    commandscount = load["commandscount"]
    if commandscount == 10:
        await ctx.send("**Tip**: prova")
        load["commandscount"] -= 10
        with open("commandscount.json", "w") as f:
          json.dump(load, f, indent=4)

@slate swan

#

Wait, I just realized a problem in your code.

#

Does it send the "Tip: prova"?

slate swan
#

no, that's the problem

dapper cobalt
#

You have commandscount =+ 1 it should be += not =+.

#

And at the end you have commandscount - 10 it should be -= 10.

slate swan
#

oh ok ill'try with that thank you

dapper cobalt
lament mesa
#

ig gotta manually connect to the ws and send http requests

normal juniper
slate swan
#

It has been discontinued by the original owner yes, but a fork may be created by someone.

normal juniper
#

Thats sad.

hardy yoke
#

read the /topic

hardy yoke
slate swan
dapper cobalt
slate swan
#

wait

#

idk probrably it is just bugged

vagrant brook
#

Try global commandscount first

dapper cobalt
vagrant brook
#

what's the point of pinging me for no reason

dapper cobalt
#

Oh my bad.

slate swan
vagrant brook
#

No, I mean global commandscount inside the function

floral crypt
#
@commands.has_permissions(manage_messages=True)
async def clean(ctx, member: discord.Member=None, amount=None):
    def check(m):
        return m.author == member

    if amount is None:
        if member is None:
            await ctx.send('Recuerda indicar de quien quieres borrar los mensajes y cuantos.', delete_after=3)
            await ctx.message.delete()
            return
        else:
            await ctx.send('Recuerda indicar el numero de mensajes que quieres eliminar.', delete_after=3)
            await ctx.message.delete()
            return

    else:
        amount = int(amount)
        await ctx.send('Mensajes eliminados.', delete_after=3)
        await ctx.message.delete()
        for channel in ctx.guild.text_channels:
            await channel.purge(check=check, limit=amount)β€Š

Ok my clean command just clean if there arent any messages b4.
Example:
-me
+another person

-hi
+hi
+uwu
+uwu
+uwu
-stop man
+no
-ok
-!clean @+ 4

(Nothing happens)

karmic sorrel
vagrant brook
#

To register commandscount as a global variable

slate swan
#

i got these errors now

vagrant brook
#

No

#

...

#
global commandscount

commandscount += 1
slate swan
vagrant brook
#

global commandscount is for python to see commandscount as the variable you already defined outside the function

slate swan
#

is that what you mean?

#

i don't understand

#

@vagrant brook

vagrant brook
#

global commandscount should be inside the function

slate swan
#

oh

#

it works

#

thank you

spiral mist
#

bruh

steep cape
#

?

eager beacon
steep cape
azure spindle
#

everything is

#

at this point

spiral mist
#

😩

bitter kite
#

How can the bot delete his own command via reaction like here on channel?
Question is what event to use to catch the event upvote.
!e```
print("delte this")

#

πŸ—‘οΈ (oh no python here)

serene coral
#

@copper quartz maybe pin that gist?

vagrant brook
#

ctx.message refers to the message that invoked the command

floral crypt
vocal plover
floral crypt
#

Or its other variant

serene coral
floral crypt
#

But the problem not there I guess

#

Cuz it deletes if the messages are consecutive and no other messages are after them

#

So I guess its that

floral crypt
#

I got an error of a message not found

#

I think is something about the check

spring flax
#

Question: For the future of discord bots, they are going to all be using slash commands? So the prefix like ! won't be there anymore, but you can mention the bot as a prefix?

serene coral
#

correct

dapper cobalt
# spiral mist no more discord.py?

There are a few ways to bypass message intents restriction and slash commands. First, Discord has mentioned in the Q&A that the bot will be able to get content of messages where they're pinged, that means that you can set your bot's prefix as your bot's mention <@bot_id>. Second, Discord has mentioned also that moderation bots that need the intents for certain features such as chat filter, or anti advertising, are good to go and will get the intents after applying.

brittle ingot
#

To respond to the above. Danny will no longer be updating discord.py. It doesn’t mean the end of it like your bots will die out or anything. It means that you will need to use third party modules to interact with discord as new features come out. most likely someone will pick up the project and continue it. Danny laid some great ground work. We just need someone to pick up the torch and continue the legacy.

spring flax
dapper cobalt
unkempt canyonBOT
dapper cobalt
#

It has buttons, slash commands, menus, and more

dapper cobalt
spring flax
dapper cobalt
#
@bot.command()
async def hi(ctx):
  await ctx.send("Hello")

Is basically:

@bot.event
async def on_message(message):
  if message.content.lower.startswith("!hi"):
    await message.channel.send("Hello")
sweet pilot
#

how can I send this kind of a message?

dapper cobalt
sweet pilot
#

or are there any alternatives?

dapper cobalt
brittle ingot
#

Discord components

dapper cobalt
unkempt canyonBOT
sweet pilot
dapper cobalt
dapper cobalt
bitter kite
sweet pilot
dapper cobalt
brittle ingot
#

They support interactions like that and buttons really. Never delved deep into it to learn if they had context menus. Probably not though

#

There is also a module name discord.ui or something for interacting with the ui potions

sweet pilot
dapper cobalt
#
@client.slash_command()
async def hide(inter):
    await inter.reply("This is hidden to only the author", hidden=True)
dapper cobalt
brittle ingot
#

Wish I knew enough python, I’d pick up the lib honestly. Just to be able to continue it for everyone

floral crypt
wheat nest
crystal fable
#

Yes, the official maintainer of discord.py has announced they will be ceasing development.

What does this mean for discord.py?
It will still be usable for the foreseeable future for the features it currently supports. Any additional features that v2 beta (master branch) does not support will have to be sourced from other libraries that extend or implement the featureset you prefer.

Will someone else take over?
There is no official maintainer assigned to take over the project, however there will be and are forks and alternatives, and as time goes, things will settle into a select few choices, so feel free to ask others on preferred forks or libs. These answers will change over time, so I'll not maintain a list here.

Why is this happening?
There's an extensive writeup that I won't be pinning here, but can be found if you ask here or if you visit the official discord.py support server.

Is this the end of discord api support on Python?
Definitely not.

Please remember to keep civil when discussing anything and to avoid spreading any hearsay or abuse.

sweet pilot
dapper cobalt
brittle ingot
#

He changed? Last night he said 2.0 wouldn’t be released :/

crystal fable
pale turtle
#

For more information

fierce skiff
#

In gist he says he shuts down immediantly. But 2.0 was still in development

sweet pilot
vagrant brook
#

I think buttons and menus in discord.py 2.0 works quite fine

#

Only thing that's missing is slash commands

pale turtle
#

They do

dapper cobalt
crystal fable
#

it seems you failed to actually read my post in full

pale turtle
sweet pilot
crystal fable
dapper cobalt
river walrus
#

So this is how legends die huh

sweet pilot
pale turtle
river walrus
#

Question is what happens to Carl bot

sweet ether
#

BRO WHAT!?!?! DISCORD.PY IS BEING DISCONTINUED!!!!!??!?!?!?!?!?!

vocal plover
#

Time to start shilling my discord libs mmLol

crystal fable
sweet ether
vagrant brook
#

Isn't everyone talking about that?

crystal fable
#

they are

sweet ether
#

i don't know just saw the news

crystal fable
#

can't help someone unwilling to read

vocal plover
sweet ether
#

blooodyyyy heelll!!!!!!

pale turtle
#

Time to start html

pale turtle
#

No way I am going to djs

spring flax
#

So now bots like Dyno will be using slash commands once the message intents come out in 2022?

sweet ether
river walrus
vocal plover
pale turtle
sweet ether
crystal fable
#

@vocal plover ive decided to just edit in a way that doesn't explicitly state it's gonna release then.

vocal plover
spring flax
vocal plover
#

I think for the most part - if not entirely - dyno will go over to slash commands

crystal fable
#

there's a lot of time for that transition tbh

vocal plover
#

even if you dont need to because you have the intent, everyone else will be moving over too, which means if you dont it will be a worse user experience and people will start looking for alternatives

sweet ether
#

woow mann an entire community taking the fall cuz of this

hoary cargo
river walrus
#

So prefixes are gone? Only slash commands?

pale turtle
crystal fable
river walrus
pale turtle
#

I mean prefixes won't be a thing in April

#

Only / prefix

peak rune
paper bane
crystal fable
sweet ether
vocal plover
maiden fable
#

Hey @river walrus if u still want to use discord.py, u can use enhanced-dpy (that's what I think I am gonna use)

river walrus
maiden fable
#

Yes

vocal plover
#

while I dont necessarily share his views on some of the reasons he gave, it's his time and effort being used to maintain it, and its well within his rights to be like "i dont want to deal with this anymore, its not worth it"

peak rune
pale turtle
sweet ether
maiden fable
#

Well, I don't know what's gonna happen with my AI Chatbot, cz it really needs those message content in order to work

sweet ether
#

like imagine 3- 4 bots with the exact same command name

#

how messed up would that be?

peak rune
vocal plover
#

my prediction is that a bunch of people will fork it, and someone will make a good fork that catches on, and then life will resume as normal

maiden fable
#

Yes

#

But, discord.py (original) is really a huge part of my life and it's gonna be really sad without it

vocal plover
#

it's not like discord.py is gone, just that danny wont be maintaining it

hoary cargo
peak rune
wild acorn
#

hello

sweet pilot
sweet ether
hoary cargo
#

Fr

sweet ether
sweet ether
#

so, there wont be any mainstream changes

maiden fable
#

Well they will release 2.0

#

The last version

peak rune
sweet ether
sweet ether
peak rune
vocal plover
maiden fable
vocal plover
#

which will happen, its too widely used not to

sweet ether
sweet ether
pale turtle
#

I'll just go to html

vocal plover
#

hey on the bright side if discord.py dies then my lib will become popular KEKW

peak rune
vocal plover
#

no

sweet ether
hardy yoke
#

90% of questions you may have arre answered by the gist

pale turtle
vocal plover
sweet ether
maiden fable
#

Well, for me... I will be using enhanced-dpy cz technically, it's just discord.py with some added features

pale turtle
#

I have 15,273 messages here. All of them now for nothing

peak rune
mild saddle
#

enhanced-dpy is getting 2.0 soon

maiden fable
#

Hey @sweet ether! Same for me. I am also not thinking to move away from bot making!

sweet ether
peak rune
vocal plover
#

rst is reStructuredText, do you maybe mean twilight-rs or serenity?

maiden fable
#

Hey @vocal plover, is @unkempt canyon accepting PRs for adding more modules to the docs command?

sweet ether
pale turtle
river walrus
peak rune
maiden fable
maiden fable
peak rune
river walrus
reef dock
peak rune
#

oh.

sweet ether
pale turtle
#

Me going to look for a good non-toxic html server -_-

peak rune
#

im taking a class for it rn

maiden fable
river walrus
sweet ether
# reef dock

wow, so is slash commands supported in dpy right now?

vocal plover
#

you cant make a bot in html

sweet ether
peak rune
reef dock
river walrus
pulsar stream
sweet ether
vocal plover
#

probably something like serenity, twilight, or libdiscord

peak rune
sweet ether
#

it all makes sense now

vocal plover
#

this isnt the reason

#

its just a coincidence

maiden fable
#

Lmao yes

vocal plover
#

I made an issue asking for it to be renamed so discussions of the discord api and other libs in general could be discussed, there was nothing to do with d.py being unmaintained

sweet ether
sweet ether
#

any other's that people genuinely use

vocal plover
#

well discord.py is the defacto right now, but I assume in the coming weeks/months that other libs will get more popular

sweet ether
#

dpy kept everything in order, maintaining a standard for everyone, but i guess that'll change pretty soon

#

though if people do fork it then things might not be as bad

#

but chaos, nonetheless

slate swan
#

there's no chaos

#

first party development abandonment happens with a lot of open source software

vocal plover
#

chaos is only there if you create it, and I'd advise not doing that to prevent, well, chaos

slate swan
#

and one of OSS's greatest virtues is being able to be continued by anyone with knowledge

crystal fable
#

just a heads up, it's this type of speculative assumptions that are a danger to spreading misinformation, so please properly evaluate conclusions you come to or rephrase it as a question to actually confirm things

slate swan
#

personally, I'm quitting the discord bot development scene indefinitely, as I disagree with their current plans and actions through these past years

inner saddle
#

we would have to shift to other langs to make discord bots

inner saddle
#

unless someone re-creates it

#

and adds the / feature

crystal fable
# sweet ether okay now?

all good, it wasn't major enough to actually cause a problem, but it's the behaviour i figured would be good to point out for future that's all. thanks for listening tho

crystal fable
brisk helm
#
async def perms_list(self,ctx,rola):
    db = sqlite3.connect("perms.db")
    curosor = db.cursor()
    curosor.execute("SELECT * FROM perms WHERE guild_id = ? AND rola = ?", (ctx.guild.id,rola.id,))
    wynik = curosor.fetchall()
    if not wynik:
        await perms_error(self,ctx,rola)
    else:
        for perms in wynik:
            if perms[1] == "allow":
                allow = "\n".join([f"{perms[1]}"for perms in wynik])
            elif perms[1] == "deny":
                Denied = "\n".join([f"{perms[1]}"for perms in wynik])
            embed = discord.Embed(title="",description=f"**Permissions for {rola.mention}**",color=ctx.author.top_role.color)
            embed.set_author(name=f"{ctx.author} Permss",icon_url=ctx.author.avatar_url)
            embed.set_thumbnail(url=ctx.author.avatar_url)
            embed.set_footer(text="Permissions list")
            embed.add_field(name="Allowd Commands",value=f"{allow}",inline=False)
            embed.add_field(name="Denied Commands",value=f"{Denied}",inline=False)

    
            return await ctx.send(embed=embed)``` How to do if tabel [1] in db have got allow it will print it in allow if deny it will print it in deny
round dune
#

eh will slash commands be the only feature in discord bots on april 2022, like i can still read message event right?

inner saddle
crystal fable
#

can't say the name is good tho lol

round dune
chrome edge
#

uh

#

what happened to discord api

#

conpewsed

sweet pilot
manic wing
lament mesa
#

What about a dpy pydis fork?

maiden fable
vocal plover
maiden fable
#

πŸ˜‚

manic wing
bitter kite
#

New question:
How can I go from ☝️ to \☝️ and vice versa?

So something like:
tostring(☝️) -> point_up
to_emoji("point_up") -> ☝️

TY

maiden fable
#

Hey Alec, I was seeing the source code of your lib. I was seeing the GatewayClient, but it doesn't have any start method. Can u explain what's happening in it?

unkempt canyonBOT
#

corded/ws/client.py lines 70 to 81

async def start(self) -> None:
    gateway: GetGatewayBot = await self.http.get_gateway_bot()
    limit: SessionStartLimit = gateway.session_start_limit

    limiter = Ratelimiter(limit.max_concurrency, 5, self.loop)

    for shard in self.shards:
        await limiter.wait()
        self.loop.create_task(shard.connect())

    while True:
        await sleep(0)```
maiden fable
#

Oh

#

7408_shrekstare GitHub on mobile sucks

vocal plover
#

although corded isnt the lib im working on currently

maiden fable
#

Huh?

vocal plover
#

I'm trying to make a higher level one that can actually be an alternative to discord.py

#

which i started a few weeks back funnily enough

maiden fable
#

Ah, best of luck with that!

#

Is it open source already?

vocal plover
#

not yet

maiden fable
#

Oh, ok

vocal plover
#

I want to get to a basic release state first

maiden fable
#

Will it have the same syntax as dpy?

lament mesa
vocal plover
#

as soon as i can connect to the gateway I'll open it

maiden fable
#

Cool

vocal plover
maiden fable
#

Well the only thing I can't understand is how do bots connect to the gateaway and send the list of commands and stuff

vocal plover
#

just does things in a way I dont like that much, often internally

#

for users i think its great - mostly

manic wing
vocal plover
#

I can't remember all of the changes off the top of my head, but when I release I'll put a list of features and differences

manic wing
#

ok

lament mesa
#

I should learn about design before making my own lib πŸ˜‚

sweet pilot
#

maintainability?

vocal plover
#

partially

crystal fable
#

more likely just impl opinion

maiden fable
vocal plover
#

there are some really convoluted and weird parts of discord.py that i'd like to remove, but thats abolsutely my opinion on it, not a fact that it's messy or whatever

toxic flint
#

So will my program with discord.py continue to work?

sweet pilot
#

wierd as in?

vocal plover
#

yes

shut ocean
#

until it doesn't right

crystal fable
#

dpy is quite clean tbh. but i agree that there's a large amount of implementatin details i don't agree with either. but i think we all kinda get to that point after using a lib for a long time

vocal plover
sweet ether
dapper cobalt
sweet pilot
vocal plover
#

yeah

sweet pilot
#

what about type hints?

shut ocean
#

I dislike magical typehints

brisk helm
vocal plover
#

also I'm trying to make it as easy as possible to understand what's going on - in discord.py the http client is a bit hard to read, so I'm trying to make it very readable

toxic flint
chrome edge
#

thx anyway

brisk helm
lament mesa
#

Me and capitalism started working on our own wrapper a few days ago....

toxic flint
#

Also, is there a slash command wrapper anywhere?

sweet pilot
sweet ether
chrome edge
#

i made a crappy wrapper too

toxic flint
cloud dawn
toxic flint
#

No, just a wrapper sorry

chrome edge
sweet pilot
#

the better readability, the better maintainbility

golden hamlet
#

what is a wrapper

#

condom wrapper?

shut ocean
cloud dawn
golden hamlet
#

oh

sweet pilot
unkempt canyonBOT
#
Nope.

Package could not be found.

golden hamlet
#

LMAO

sweet ether
dapper cobalt
unkempt canyonBOT
sweet pilot
chrome edge
#

dislawhut

toxic flint
dapper cobalt
cloud dawn
# golden hamlet oh

Basically you got the bare discord API and it can do a lot but takes long to code so they made that.

hardy yoke
#

april 2022

toxic flint
#

I read it but when I woke up so didn’t process everything

hasty iron
#

so re-read it

chrome edge
#

how does it 'break'

shut ocean
#

your bot will stop seeing messages

sweet pilot
chrome edge
#

noted

cloud dawn
#

Took awhile.

chrome edge
#

all hail websocket

cloud dawn
#

How about wait_for tough?

shut ocean
#

discord doesn't want the bot to get messages, only slash commands

chrome edge
#

man

cloud dawn
#

Seems fair.

chrome edge
#

so limitative

reef dock
#

so they're basically killing prefixes sadCat

shut ocean
#

nobody asked, but I'm switching to another platform entirely

cloud dawn
#

What? Skype?

haughty sedge
slate swan
#

yes

haughty sedge
shut ocean
#

back to irc

slate swan
#

please check the pins

chrome edge
sweet ether
slate swan
# haughty sedge WTF WHY

frustration in the owners life, disagreement with the latest decisions done by discord staff regarding the API

shut ocean
#

we should make opensource discord server that uses the current api

cloud dawn
#

I was thinking about making my own wrapper anyways.

lament mesa
#

You guys know that making telegram bots is a thing πŸ‘€

dapper cobalt
slate swan
#

if you're willing to put up with the bullshit discord is forcing down everyone's throat, I honestly envy you.

haughty sedge
vocal plover
shut ocean
#

do you have a invite for a large friendly python community in telegram?

cloud dawn
haughty sedge
#

Atleast discord.py will still be supported as discord api for python

dapper cobalt
#

There is one. Just check the Telegram API wrapper.

cloud dawn
#

But to be fair most things are already in discord.py so you can just fork it and edit it.

chrome edge
dapper cobalt
unkempt canyonBOT
slate swan
chrome edge
sweet pilot
#

@vocal plover are you adding typehints to your wrapper?

cloud dawn
#

He did it for 5 years, i mean that is pretty dedicated.

#

Almost 6

hardy yoke
chrome edge
#

its his hobby though

sweet pilot
untold token
#

I really hope that python server would take discord.py and maintain it

dapper cobalt
#

Telegram had slash commands and buttons before Discord did.

shut ocean
vocal plover
slate swan
#

We love you Danny

chrome edge
cloud dawn
slate swan
sweet ether
hardy yoke
untold token
#

because there are countless good developers here than can improve the library

chrome edge
#

yeah respect his work

cloud dawn
#

Hello

sweet pilot
lament mesa
shut ocean
#

slash commands are cool, the bad part is that the bot can only see the slash commands and do nothing else

cloud dawn
#

I mean i could prob make my own wrapper but it'd just take awhile.. lol

vocal plover
chrome edge
#

not as hard as imagined

shut ocean
#

it's not wrappable

vocal plover
#

The hard bit of making an api wrapper is implementing all the tedious but easy bits, not the actual http/gateway logic, which is about a day's work

chrome edge
#

yeah

untold token
chrome edge
#

(copy paste copy paste)

lament mesa
untold token
#

discord is already maintaining discord API

shut ocean
#

you can't wrap the new api in a way that makes old bots work, so everybody will have to rewrite all bots anyway

untold token
#

so they won't take this burden

sweet pilot
sweet ether
cloud dawn
#

But to be honest Discord did screw the bot devs a bit lol
I mean imagine Python is a pretty big community, imagine what will happen to djs lol

vocal plover
#

its stuff like being willing to spend hour upon hour writing async def get_gateway_bot(self): ...

untold token
#

man I remembered the amount of people I helped with discord.py

#

good old times

untold token
#

it was my first advanced lib in python

sweet ether
sweet ether
dapper cobalt
vocal plover
#

I dont agree with some of danny's choices with discord.py, but yeah I have a huge amount of respect for the amount of work he put into it for ~6 years

untold token
cloud dawn
sweet ether
cloud dawn
#

It's not a competition.

shut ocean
chrome edge
#

yeah

sweet ether
#

it does feel good though doesn't it

vocal plover
#

the badge just ended with elitism and "i wont use your bot unless you have the badge" stuff

untold token
vocal plover
#

not good for a bot ecosystem

dapper cobalt
cloud dawn
#

I mean you would've gotten the badge around 200 servers that's just nothing these days.

golden hamlet
#

is there a way to look at all the available libraries

#

for discord

cloud dawn
#

Some are pretty bad though

dapper cobalt
hardy yoke
vocal plover
#

that timing lmao

cloud dawn
#

I might make my wrapper in java anyways πŸ˜‹

untold token
chrome edge
vocal plover
#

its not bad, lets put it that way

cloud dawn
#

decent

haughty sedge
untold token
#

oh nice

haughty sedge
#

And its simple too

#

Beginner-Friendly

untold token
#

alright

dapper cobalt
cloud dawn
dapper cobalt
#

Just kidding. Java is a cool language.

echo jolt
#

uh.. d.py has been achieved, no longer mantained

#

sad

dapper cobalt
#

!pypi disco is a similar library, but not async.

unkempt canyonBOT
steady geyser
#

until 2022 ,right?

dapper cobalt
#
from disco.bot import Bot, Plugin


class SimplePlugin(Plugin):
    # Plugins provide an easy interface for listening to Discord events
    @Plugin.listen('ChannelCreate')
    def on_channel_create(self, event):
        event.channel.send_message('Woah, a new channel huh!')

    # They also provide an easy-to-use command component
    @Plugin.command('ping')
    def on_ping_command(self, event):
        event.msg.reply('Pong!')

    # Which includes command argument parsing
    @Plugin.command('echo', '<content:str...>')
    def on_echo_command(self, event, content):
        event.msg.reply(content)
echo jolt
cloud dawn
steady geyser
#

hmm

echo jolt
#

danny said it will not continue it because discord forcing slash commands, and he don't like this

untold token
shut ocean
vocal plover
#

ngl, pretty good

echo jolt
#

now i need to find a discord.py fork mantained or fork my own and keep updating it.. pain

shut ocean
#

@echo jolt even if you do, you have to rewrite the bot too

cloud dawn
vocal plover
#

if this announcement had only come out 2 weeks later i'd have had an alternative to offer people lmao

untold token
shut ocean
# echo jolt wym?

you can't maintain a fork that will keep existing bots working. You also have to rewrite the bot to use the new slash commands method

#

if this change really goes through (and no reason to think it won't), all discord.py bots will have to be rewritten, even if discord.py itself was to support the new method

cloud dawn
cloud dawn
#

It does not have music no just the base and dashboard

untold token
#

well there is an another bot with the same name

chrome edge
#

dashboard?

untold token
#

it's a music bot that connects to spotify premium

#

and plays music

cloud dawn
chrome edge
#

huh.

steady geyser
#

hey what is fork and how can i make it?

cloud dawn
chrome edge
#

presumably same name

cloud dawn
steady geyser
#

fork means?

echo jolt
#

everything related to d.py has stopped the development smh

untold token
cloud dawn
#

My bot name is Spotipy since my original plan was to make a lyrics bot using the spotify api and lyrics sites.

chrome edge
#

but again, if discord trying to push / cmds, why would discord py gets f[redacted] upped?

dapper cobalt
untold token
#

bruh petitions won't change a thing

echo jolt
#

but not if someone doesn't fork it and keep updating in relation of discord api updates

cloud dawn
chrome edge
#

i see

dapper cobalt
chrome edge
#

wont changing api version number solves the issue?

frigid badge
#

hey can someone suggest an alternative to dis.py as it has ended.

cloud dawn
vocal plover
#

discord.py has not ended, its no longer maintained by danny

slate swan
frigid badge
sweet ether
chrome edge
#

if they removed gateway access

slate swan
chrome edge
#

wait thats dumb

cloud dawn
frigid badge
#

oh , i thought the code will not work if i wrote it using dis.py

dapper cobalt
slate swan
dapper cobalt
#

What? How? It's not out yet.

chrome edge
#

lol

midnight solstice
#

Do classes refer to other classes like can i do .commands.context.message.author.name ?

cloud dawn
#

Pretty sure in 2022 no bot can read message even with intents.

chrome edge
#

all those intents stuff, ugh.

modern pewter
#

What's the use of intents?

chrome edge
#

time to move platform

glossy edge
steady geyser
#

what is intent

frigid badge
#

how can i add slash commands then ?

chrome edge
slate swan
untold token
slate swan
#

Slash commands are horrible in my opinion

modern pewter
#

Lmao slash commands?

#

eew

glossy edge
untold token
slate swan
#

And how can someone use a help command if every bot you have in your server uses slash commands

sweet ether
strange ocean
#

@untold token hoi

chrome edge
frigid badge
#

i dont know why discord is adding slash commands , i like normal text

slate swan
#

It Is much better

untold token
sweet ether
slate swan
#

Not replit has an inbuilt YouTube tutorial tab

#

*now

cloud dawn
#

I'm looking at the github and their Discord, seems like some contributors also stopped.

slate swan
#

That's horrible, isn't It?

austere herald
steady geyser
slate swan
steady geyser
#

you can do other names

frigid badge
#

imagine in 2025 discord remove the feature of talking through text and we can only talk through voice

cloud dawn
steady geyser
#

so it will be unique cmd

slate swan
#

make an on_message event which sends help when the bot is mentioned

chrome edge
cloud dawn
#

self botting is the onliest solution πŸ˜‚

slate swan
#

it's practical , and messages can be read if the bot is mentioned

#

Not for now

cloud dawn
slate swan
#

that's one of the main reason why discord.py is closing

#

Then how TF can i use slash commands on my python bot

#

Lol

cloud dawn
#

But seeming that some wrappers take 2k+ lines it might never come to discord.py

hoary gust
#

guys which pi library shall i use

dapper cobalt
steady geyser
reef dock
unkempt canyonBOT
slate swan
hoary gust
#

guys suggest me a discord api library

slate swan
#

I Hope that someone Will Copy discord.py and continue to develope It

slate swan
hoary gust
steady geyser
#

@slate swan i tagged wrong sorry

slate swan
hoary gust
#

and is it similar to dpy

slate swan
#

Kind of

#

it's not same

hoary gust
#

can u show a bit of code

dapper cobalt
steady geyser
#

similar codes?

slate swan
#

Is It complicated to switch to Slash commands?

tall niche
slate swan
#

Just check on the PyPi page , you'll see the examples

#

can anyone help me please e

reef dock
slate swan
steady geyser
slate swan
steady geyser
#

like?

slate swan
#

But what if i change the bot prefix to /

cloud dawn
#

discord.py's github now This repository has been archived by the owner. It is now read-only. 😳

slate swan
limpid walrus
steady geyser
#

does this slash cmd

slate swan
shut ocean
#

if all your bot does is execute commands, then it can work with slash commands. You still have to rewrite it though

steady geyser
#

then

slate swan
#

I came to know discord.py stops develop what is future now

cloud dawn
steady geyser
#

is that problem

tulip frigate
cloud dawn
slate swan
#

ok

reef dock
cloud dawn
slate swan
#

How to fork

steady geyser
#

IDK js

pulsar nexus
#

anyone made prominent forks yet?

hoary gust
shut ocean
dim wing
#

im lazy to learn js lol

cloud dawn
shut ocean
#

These libraries have slash commands implemented

pulsar nexus
#

it's been several hours

steady geyser
#

oh yeah

slate swan
#

How to fork

cloud dawn
hoary gust
#

guys suggest me a api library

dim wing
slate swan
cloud dawn
hoary gust
dim wing
reef dock
#

people are making out like discord is the bad guy NM_peepoShrugSmile they're doing it for security/privacy reasons i dont see how thats wrong tbh

dim wing
#

it's sad

steady geyser
slate swan
shut ocean
tall niche
#

click the fork button lol

cloud dawn
limpid walrus
hoary gust
#

guys suggest me a discord api library

tall niche
#

its not as if the library is disappearing. You'll be able to pip install discord.py for ages

cloud dawn
hoary gust
#

guys which is the easiest api library after dpy that has slash cmds

dim wing
#

what's JDA?

hoary gust
hushed glacier
#

There will be enough forks. The question is, who takes over the discord.py name on pypi.

dim wing
#

mmh okay

slate swan
cloud dawn
hushed glacier
#

Yea

shut ocean
tall niche
dim wing
#

is it long to learn javascript if I already know python?

hushed glacier
#

I see

dim wing
#

sad

cloud dawn
#

I've coded in c# and php so i should be fine py_guido

steady geyser
shut ocean
cloud dawn
hoary gust
reef dock
tall niche
#

Note that probably all libraries ATM act exactly like discord.py currently, and this current method will completely break in April next year unless you make sure to only use sanctioned stuff by the discord devs

hoary gust
#

??

reef dock
tall niche
#

IE if you wrote your bot in discord.js similar to how you wrote your bot in discord.py, it will break next year anyway just the same

reef dock
cloud dawn
steady geyser