Iam facing problem running my bot

hello everyone
i did everything right but once i run the bot i got error

glitch.json

{
  "install": "pip install --user -r requirements.txt",
  "start": "PYTHONUNBUFFERED=true python3 main.py",
  "watch": {
    "ignore": [
      "\\.pyc$"
    ],
    "install": {
      "include": [
        "^requirements\\.txt$"
      ]
    },
    "restart": {
      "include": [
        "\\.py$",
        "^start\\.sh"
      ]
    },
    "throttle": 1000
  }
}

requirements.txt

discord

the error iam facing

Traceback (most recent call last):
File "main.py", line 1, in <module>
from config import *
Jump ToFile "/app/config.py", line 7, in <module>

from discord_slash import SlashCommand
ModuleNotFoundError: No module named 'discord_slash'

my Project Link

Change pip to pip3 in your install line, glitch’s default is still python 2 :frowning:

Hi all, I’m not an expert but it feels like discord_slash is a separate dependency that should appear in your requirements.txt

I found this recent article where they pip install -U discord-py-slash-command

Is it possible that you need discord-py-slash-command or maybe discord_slash in your requirements.txt ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.