Skip to content

My Discord Bot, which I created using the Discord.py library, has the features of converting text to voice, talking with ChatGPT, chatting with a flirting artificial intelligence bot, translating from Turkish to English, making creative jokes, blocking swearing and performing simple moderation operations.

Notifications You must be signed in to change notification settings

omeraslandev/ayabot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Meet Ayabot: Your All-in-One Discord Companion! 🚀

Hey there, fellow developers and Discord enthusiasts! 👋 Are you ready to supercharge your Discord server with a bot that's both fun and incredibly versatile? Look no further! I'm thrilled to introduce you to Ayabot, your new best friend for all things Discord. 🎉

Ayabot isn't just another bot; it's a meticulously crafted, feature-rich companion designed to bring a whole new level of interaction and convenience to your community. From moderation tools to engaging AI conversations, Ayabot has it all. ✨

What makes Ayabot so cool? 😎

  • 🗣️ Speech Synthesis: Turn text into speech with a simple command! Imagine your bot narrating stories or announcements. 📖
  • 💖 Waifu & Friend Chat: Engage in delightful conversations with your "waifu" or just a friendly AI companion. It's like having virtual pals right in your server! 💬
  • 🧠 ChatGPT Integration: Get smart answers and creative ideas from ChatGPT directly within Discord. Your members will love picking its brain! 💡
  • 🌐 Google Translate: Break down language barriers with instant translations (currently Turkish to English, with more languages to come!). 🌍
  • 😂 Dad Jokes Galore: Need a laugh? Ayabot is a professional at dishing out the best (and sometimes cheesiest) dad jokes. Get ready for some serious giggles! 🤣
  • 🔒 Robust Moderation: Keep your server safe and sound with essential admin commands like clear, kick, ban, and unban. Plus, Ayabot has a built-in profanity filter! 🛡️
  • 🎁 Raffle Fun: Easily host giveaways and pick lucky winners with the /raffle command. Who's the lucky "boomer" today? 🥳
  • Clone Channel: Duplicate channels effortlessly.
  • Join/Leave Messages: Customize member join and leave announcements.

Ayabot is built with discord.py, ensuring stable and efficient performance. We've also integrated various APIs to bring you these awesome features, making your Discord experience truly unique. 💻


🛠️ Get Ayabot Up and Running: A Step-by-Step Guide 🚀

Ready to welcome Ayabot to your server? Great! Here's how you can get it set up in no time. Follow these simple steps, and you'll be chatting with your new bot buddy in minutes. 👇

Prerequisites 📋

Before you start, make sure you have:

  • Python 3.8+ installed on your system.
  • A Discord Bot Token. You can get this by creating an application on the Discord Developer Portal. Make sure to enable all necessary intents for your bot (Message Content, Members, etc.)!
  • API keys for the services you want to use (OpenAI, etc., if you plan on using those features extensively).

Installation Steps 🚀

  1. Clone the Repository First, you need to get the project files onto your local machine. Open your terminal or command prompt and run:

    git clone https://github.com/omeraslandev/ayabot.git
  2. Navigate to the Project Directory Change your current directory to the newly cloned project folder:

    cd ayabot
  3. Install Dependencies Ayabot relies on a few external libraries. Install them using pip:

    pip install -r requirements.txt

    If you don't have a requirements.txt file in your repository, you'll need to create one. Based on your main.py and API imports, it would include discord.py, and any other libraries your API files depend on. For your current setup, your requirements.txt might look something like this:

    discord.py
    openai # If api_ChatGPT uses OpenAI's official library
    requests # Often used for general API calls
    gTTS # If api_Speech uses Google Text-to-Speech
    

    You'll need to ensure this list covers all the libraries used in your api/ directory.

  4. Set Up Your Configuration Ayabot uses the utils/utils.py file to handle its Discord bot token and intents.

    Open the utils/utils.py file and replace 'TokenOfYourDiscordBot' with your actual Discord bot token.

    # utils/utils.py
    token = 'YOUR_ACTUAL_DISCORD_BOT_TOKEN_HERE' # <<< REPLACE THIS!
    
    import discord
    intents = discord.Intents(messages=True, guilds=True,
                              reactions=True, members=True, presences=True)

    Important: Never share your bot token publicly! 🔑

    Also, check your api/ folder. If any of your API integrations (like api_ChatGPT, api_Waifu, api_Speech, etc.) require their own API keys (e.g., for OpenAI, a custom API service), you'll need to set those up. Typically, these are handled as environment variables or within a separate, securely managed config.py/secrets.py file within those specific API modules.

  5. Run the Bot! Now, you're all set! Go back to your terminal and run the main bot file:

    python main.py

    If everything is configured correctly, you should see Aya.dev is online! in your console, and your bot will appear online in Discord! 🎉


Having trouble? 🤔

If you encounter any issues, don't hesitate to check the log.log file for error messages. Common issues include incorrect bot tokens, missing intents (make sure you've enabled them in the Discord Developer Portal too!), or uninstalled dependencies. You can also open an issue on your GitHub repository, and I'd be happy to help you troubleshoot! 🐛

About

My Discord Bot, which I created using the Discord.py library, has the features of converting text to voice, talking with ChatGPT, chatting with a flirting artificial intelligence bot, translating from Turkish to English, making creative jokes, blocking swearing and performing simple moderation operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages