Skip to content

Provita is a multipurpose Discord bot based on Discord.js v13.

License

Notifications You must be signed in to change notification settings

MarwanRadwan7/provita

Repository files navigation

provita

Version Stargazers MIT License

Provita

PROVITA

Provita is a simple discord bot that helps you focus and relax to study with your friends powered with AI by the unofficial Bard API for giving you and your server useful answers and providing useful commands like playing quran, Lofi and background noise.

Report Bug · Request Feature

》Notice

Provita is a multipurpose Discord bot base in Discord.js If you like this repository, feel free to leave a star ⭐ to motivate me!

》Features

  • Come with Discord.js v13
  • Slash Commands
  • Media Commands

》Slash Commands

  • /help -> List all bot 's commands and their description.
  • /chat "question" -> Ask the AI questions.
  • /quran "sheikh" "surrah" -> Plays Holy QURAN.
  • /lofi "keywords" -> Plays LoFi music.
  • /noise "genre" -> Play this background noise helps you to focus.
  • /pause -> Toggle to pause/resume currently playing audio.
  • /next -> Skip currently playing audio.
  • /queue -> The list of current queue.
  • /shuffle -> shuffles queue.
  • /stop -> Clears queue completely and disconnects the bot.

》Requirements

》Installation Guide

Installing via NPM

Clone the repo by running

git clone https://github.com/MarwanRadwan7/provita.git

After cloning Fill all requirement in .env, then run.

npm install

To start your bot

node index.js

To start your bot in development mode

npm run devStart index

》Technical Documentation

The project structure:

Provita/
├── commands/
│   ├── ask.js
│   └── ... (other command handlers)
├── events/
│   ├── ask.js
│   └── ... (other event handlers)
├── utils/
│   ├── mongoConnection.js
│   └── ... (other helper functions)
├── models/
│   ├── userSession.js
│   └── GuildChannel.js
├── apis/
│   └── bardAPI.js
├── package.json
├── index.js
├── .env
└── .gitignore

The .env file should look like this:

DISCORD_TOKEN = Your bot Token
CLIENT_ID = Client ID
GUILD_ID  = Your Server ID
BARD_KEY  = `__Secure-1PSID` Cookie
ENV = DEVELOPMENT
MONGO_URL = Your MongoDB URL connection

》To-Do

  • Host the bot.
  • More /commands
  • Upgrade the Ai-API and move to palm api.

》Support Me

If you liked this repository, feel free to leave a star and support me on BMC. 😊

SVG Image