Error: ModuleNotFoundError: No module named 'ro_py'

code:

import os
import discord
from discord.ext.commands import Bot, has_permissions
from discord import Embed
from discord.utils import escape_markdown, escape_mentions  # We will use this later!
from ro_py import Client

intents = discord.Intents.all()
bot = Bot(
    command_prefix="!", 
    case_insensitive=True,  
    intents=intents
)

@bot.event
async def on_ready():
    print(f"Logged in as {bot.user}")

@bot.command()
async def test(ctx):
    await ctx.send("Hello World")

I wanted to write a code to display the rank in a group using a discord bot, but the error pops up all the time: ro_py even though I installed it: pip install ro_py

Because that’s not how you install ro.py. Check the docs next time.

You can install it like this:

pip install roblox

Also next time, use their discord and ask their.