Skip to content

kylianxdev/discord-coolpersondetected

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This code is a Discord bot written in Python using the discord module. The bot listens for messages in a server and sends an embed message to the channel when certain conditions are met.

The bot uses the Client class of the discord module to create an instance of the bot, and it uses the Intents.all() method to enable all intents for the bot. Intents are permissions that allow the bot to access certain information and perform certain actions within a server. By enabling all intents, the bot has full access to the server and can perform all actions that a normal user can perform.

The bot has an event listener for the on_message event, which is triggered whenever a message is received in a server. When the event is triggered, the bot checks the id of the message's author and sends an appropriate embed message to the channel.

If the id of the message's author is 1234567890, the bot creates an embed message with a custom color, title, and footer. The title of the embed message is "Hot person detected" and the footer is "This message is spicy! 🔥". The bot also sets the author of the embed message to the person's name and profile picture URL, using the set_author method of the Embed object. The embed message is then sent to the channel using the send method of the TextChannel object.

If the id of the message's author is 9876543210, the bot follows a similar process to create an embed message with a custom color, title, and footer. The title of the embed message is "Cool person detected" and the footer is "This message is spicy! 🔥". The bot sets the author of the embed message to the person's name and profile picture URL, and sends the embed message to the channel.

This bot can be useful for sending custom messages in response to certain actions in a Discord server. For example, you can use this bot to send an embed message whenever a user with a specific ID sends a message in the server, or whenever a message contains a certain keyword.

I hope this helps! Let me know if you have any questions or need further assistance.

Releases

No releases published

Packages

No packages published

Languages