Giter Site home page Giter Site logo

project_mercury's Introduction

Project Mercury

Discord bot for personal preferences

Table of Contents

Introduction

Project Mercury is a customizable Discord bot designed to cater to specific personal preferences. It includes features such as music playback, AI-powered chat responses, and chess tournaments.

Features

  • Music Playback: Play high-quality music from various sources.
  • AI Chat Responses: Engage in conversations with AI-powered responses.
  • Chess Tournaments: Organize and manage chess games.

Installation

  1. Clone the repository:
    git clone https://github.com/kmosoti/project_mercury.git
  2. Navigate to the project directory:
    cd project_mercury
  3. Install the dependencies:
    npm install
  4. Set up environment variables:
    • Create a .env file in the root directory and add your keys.
  5. Run the bot:
    node index.js

Usage

Invite the bot to your Discord server and interact using defined commands.

Commands

Music Commands

  • !play <song_name> - Play a song.
  • !pause - Pause the current song.
  • !resume - Resume the paused song.
  • !stop - Stop the music playback.

AI Chat Commands

  • !chat <message> - Engage in a conversation with the AI-powered bot.

Chess Commands

  • !startchess - Start a new chess game.
  • !move <move> - Make a move in the ongoing chess game.
  • !status - Check the status of the current game.

Hosting

To keep the bot running 24/7, you can host it on a cloud service. In my case, I used AWS Lightsail successfully by running it as a PM2 process.

Steps to Host on AWS Lightsail

  1. Create a Lightsail Instance:

    • Log in to your AWS account and navigate to Lightsail.
    • Create a new instance with the desired configuration.
  2. SSH into the Instance:

    • Use the provided SSH key or the Lightsail console to access your instance.
  3. Clone the Repository on the Instance:

    git clone https://github.com/kmosoti/project_mercury.git
    cd project_mercury
  4. Install Dependencies:

    npm install
  5. Set Up Environment Variables:

    • Create a .env file and add your keys.
  6. Install PM2:

    npm install pm2 -g
  7. Start the Bot with PM2:

    pm2 start index.js
    pm2 save
    pm2 startup

    This ensures the bot will restart automatically if the instance reboots.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

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

Contact

Kennedy R. Mosoti
LinkedIn: Kennedy Mosoti

project_mercury's People

Contributors

kmosoti avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.