Files
2025-11-10 01:54:57 +05:30

1.4 KiB

Brahmos

Brahmos is a bot built using discord.py, designed for interacting with politics and war API.


Tech Stack

  • Language: Python 3.11+
  • Library: discord.py
  • Database (optional): asyncpg / PostgreSQL (for persistent storage)
  • Hosting: Oracle Cloud / Local

Installation

1. Clone the repository

git clone https://git.sudobh.space/sudobh/brahmos.git
cd brahmos

2. Create a virtual enviornment

uv venv --python 3.11

3. Install Dependencies

uv pip install -r requirements.txt

4. Install pm2

sudo npm install -g pm2

5. Create config file for the bot

create a file named bot.config.js

module.exports = {
    apps : [

	{
            name : 'brahmos',
            script: './brahmos.py',
            cwd: './brahmos',
            interpreter: '/home/user/brahmos/.venv/bin/python',
            env:{
                TOKEN: "BOT token",
pnwBOTKEY: "API KEY",
pnwAPIKEY: "API KEY",

            }
        }

    ]
}
  • replace path /home/user/brahmos with your system's path
  • set the tokens for discord bot and pnw API.

6. Start pm2 process

pm2 start bot.config.js