2025-11-08 20:42:50 +05:30
2025-11-08 14:17:35 +05:30
2025-11-08 13:58:10 +05:30
2025-11-04 21:55:24 +05:30
2025-05-09 22:59:38 +05:30
2025-05-11 18:01:08 +05:30
2025-05-09 15:57:25 +05:30
2024-02-27 17:47:23 +05:30
2025-11-08 20:42:50 +05:30
2025-05-09 15:57:25 +05:30

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
S
Languages
Python 100%