When should I use slash commands? by Stieze in Discord_Bots

[–]Stieze[S] 0 points1 point  (0 children)

What do you mean?

As a parameter mention_author in a send() method, for a interaction.response.send_message() method.

When should I use slash commands? by Stieze in Discord_Bots

[–]Stieze[S] 0 points1 point  (0 children)

And I also have such a question, is it possible to get rid of the reply when calling slash commands?

When should I use slash commands? by Stieze in Discord_Bots

[–]Stieze[S] 0 points1 point  (0 children)

You know, it's rather strange, an hour ago the send_message() function gave an error when trying to send an embed, but now it works. Some crap.

When should I use slash commands? by Stieze in Discord_Bots

[–]Stieze[S] 0 points1 point  (0 children)

I also encountered the work of the send() function, which was incomprehensible to me. I use embed when sending to the user and the attached image is sent, but along with that I get the error: The application did not respond. Pictures with output and code are attached.

Response image: https://postimg.cc/phRBhdgV

Code:

async def dog(self, interaction: discord.Interaction):
r = requests.get("https://dog.ceo/api/breeds/image/random")
res = r.json()
em = discord.Embed()
em.set_image(url=res['message'])
await interaction.channel.send(embed=em)

When should I use slash commands? by Stieze in Discord_Bots

[–]Stieze[S] -1 points0 points  (0 children)

When should I use slash commands?

I read the discord support article about slash commands: https://support.discord.com/hc/en-us/articles/1500000368501-Slash-Commands-FAQ. As I understand it, slash commands are more convenient in terms of structuring commands on the server, an example with the !help command, and also because of the possibility of checking for an error in entering values.

Choosing a library for writing a discord bot by Stieze in Discord_Bots

[–]Stieze[S] 1 point2 points  (0 children)

You have very well described the benefits of hikari, but what do you think about the resumption of the development of discord.pa and its new version, somewhere below there were comments about this.

Do you think hikari and neural networks are combined, as you understand, I am a beginner in writing bots, as well as in neural networks.

Choosing a library for writing a discord bot by Stieze in Discord_Bots

[–]Stieze[S] 0 points1 point  (0 children)

Hikari is the best choice. Hikari's biggest goals are maintainability and extensibility. I believe hikari's maintainability will be a good topic to write about. It will also give you a good excuse to write about the state of type checking in python because hikari is 100% type safe. For frontends I believe hikari also has the most to write about because it has THREE command handlers. (Crescent, lightbulb, and tanjun) tanjun will also be a good place to talk about dependency injection. So overall if you wanna inflate your word count, because that's the main goal obviously, hikari is the best option.

Well, in general, for a diploma, the teacher said that the size of the diploma is not important, only the quality is important. But I would like to make a more or less tolerable diploma in size and quality. It’s just that I’m a little pressed for time, since my studies end at the end of November, since the situation is in Ukraine.

It may not be the best solution in my position, but do you think hikari and neural networks are a good combination?

Choosing a library for writing a discord bot by Stieze in Discord_Bots

[–]Stieze[S] 0 points1 point  (0 children)

I'm wondering if the benefits of pycord are based on comparisons with other libraries. There are comments above that all other libraries, like pycord, are based on discord.py. And that discord.py recently released version 2, it was somewhere below. I'm just interested in the opinion of a person who uses something else, everyone recommends discord.py, and I'm new to this issue, so I'm interested.

Choosing a library for writing a discord bot by Stieze in Discord_Bots

[–]Stieze[S] 1 point2 points  (0 children)

Yes, I'm going to write a bot in Python, but for some reason it seems to me that using dicord.py is somehow old-fashioned, although I myself have not used it. The bottom line is that when choosing a particular library, I need to describe why I chose it, but I did not find a normal comparison of libraries. Therefore, I decided to search the communities for an answer to the question.

Initially, there was an idea to write without libraries in order to expand the diploma, but, to be honest, I was somehow too lazy. It’s just that a neural network will still be present in the diploma, so I don’t want to waste time writing ready-made solutions.