Meowcord Logo
meowcord
DocsGetting Started

Getting Started with meowcord

Welcome to meowcord! This guide will help you get started with creating your first Discord bot.

Overview

meowcord is a powerful yet easy-to-use library for creating Discord bots. It's built on top of Discord.js but provides a simpler interface for common tasks.

Here's what you'll learn in this documentation:

  • How to install meowcord and set up your development environment
  • Creating a basic bot with commands
  • Working with events and advanced commands
  • Organizing your code with command files
  • Managing your bot's presence and status
  • Leveraging Discord.js features within meowcord

Quick Start

To get started with meowcord, follow these steps:

  1. Install Node.js: Make sure you have Node.js version 16.9.0 or higher installed
  2. Create a new project: Create a new folder for your bot and initialize it with npm
    Terminal
    mkdir my-discord-bot
    cd my-discord-bot
    npm init -y
  3. Install meowcord: Install the meowcord package
    Terminal
    npm install meowcord
  4. Create your bot file: Create an index.js file with the following code
    index.js
    const { Meow, Intents } = require("meowcord");
    
    const bot = new Meow({
      intents: [Intents.Guilds, Intents.GuildMessages, Intents.MessageContent],
      prefix: "!",
      meowSettings: {
        returnBotInfosInConsole: true
      },
    });
    
    bot.start("YOUR_BOT_TOKEN");
    
    bot.basicCommand({
      cmdName: "ping",
      cmdCode: async (message) => {
        const ping = Date.now() - message.createdTimestamp;
        message.reply(`🏓 Pong! My ping is currently ${ping}ms`);
      }
    });
  5. Run your bot: Start your bot with Node.js
    Terminal
    node index.js

Next Steps

Now that you have a basic bot running, you can explore more features:

Need Help?

If you encounter any issues or have questions, you can: