Skip to content

<3 is a versatile and customizable Discord bot built using the Discord.py library. Designed to enhance your server management experience, this bot comes with a wide range of features including moderation tools, role management, music playback, giveaway hosting, announcements, and external API integrations such as YouTube trending videos

License

Notifications You must be signed in to change notification settings

StarlitDreams/Discord.py-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<3 Bot

This is a customizable Discord bot built using Discord.py, designed to handle various server management tasks, music playback, and more. The bot includes features for moderation, role management, giveaways, and integration with external APIs like YouTube.

Features

General

  • Ping: Check the bot's latency.
  • Server Stats: Display server information such as owner, region, member count, and server ID.
  • Instructions: Send instructions to the user via direct message.

Moderation

  • Clear Messages: Delete a specified number of messages.
  • Kick/Ban/Unban: Kick, ban, or unban users.
  • Mute/Unmute: Mute or unmute users.
  • Profanity Filter: Automatically delete messages containing profane words and warn the user.

Role Management

  • Assign/Remove Roles: Assign or remove roles from users.
  • Reaction Roles: Assign roles based on reactions to messages.

Giveaways

  • Host Giveaways: Create and manage giveaways with a specified prize and duration.

Announcements

  • Make Announcements: Post announcements in a specified channel.

External API Integration

  • YouTube Trending: Fetch and display trending YouTube videos for a specified region.

Music Playback (using Wavelink)

  • Play: Play music from YouTube.
  • Pause/Resume/Stop: Control music playback.
  • Loop: Loop the currently playing track.
  • Queue: Display the current music queue.

Setup

  1. Clone the repository:

    git clone https://github.com/StarlitDreams/Discord.py-bot.git
    cd Discord.py-bot
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Configure the bot:

    • Create a .env file in the root directory and add your Discord bot token:
      DISCORD_TOKEN=your_discord_bot_token
      
    • Set up your Google API key for YouTube API in the code where necessary.
  4. Run the bot:

    python bot.py

Usage

Invite the bot to your Discord server using the OAuth2 URL generated from the Discord Developer Portal. Once added, use the command prefix ~ to interact with the bot.

Example Commands

  • ~ping: Check the bot's latency.
  • ~serverstats: Display server information.
  • ~clear [amount]: Clear the specified number of messages.
  • ~kick [@user] [reason]: Kick a user with an optional reason.
  • ~play [song name or URL]: Play a song from YouTube.
  • ~giveaway: Start a giveaway by answering a few prompts.

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your changes.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Contact

For any questions or support, please open an issue on the GitHub repository.


Much luv <3

About

<3 is a versatile and customizable Discord bot built using the Discord.py library. Designed to enhance your server management experience, this bot comes with a wide range of features including moderation tools, role management, music playback, giveaway hosting, announcements, and external API integrations such as YouTube trending videos

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages