How to Create a Discord Bot using Python

Поділитися
Вставка

КОМЕНТАРІ • 6

  • @brokenfinger
    @brokenfinger Місяць тому +1

    did everything step by step and it came up with a bunch of errors for me 😢

    • @balt1794
      @balt1794  Місяць тому

      Got errors did you get? maybe I can help

  • @milkywayish9315
    @milkywayish9315 2 місяці тому

    ```ModuleNotFoundError: No module named 'dotenv'
    PS C:\Users\HamadaPC\Desktop\Bot Tutorial> python3 main.py
    Traceback (most recent call last):
    File "C:\Users\HamadaPC\Desktop\Bot Tutorial\main.py", line 4, in
    ModuleNotFoundError: No module named 'dotenv'``` despite following all steps

    • @balt1794
      @balt1794  2 місяці тому +1

      You need to install dotenv, issue the following command: pip install python-dotenv

    • @milkywayish9315
      @milkywayish9315 2 місяці тому +1

      @@balt1794 Actually, I already had it installed
      It was an issue with Visual Studio as well
      the issue was it couldnt' detect the Environments
      In Visual Studio I hit Ctrl+P
      Searched '>Python: Select Interpreter'
      And then selected the 'recommedned' option aka "Python 3.12.2 ('ven'; vnev)'
      This fixed it since I already had python enviroment installed
      Thank you for responding

    • @balt1794
      @balt1794  2 місяці тому

      @@milkywayish9315 awesome! I'm glad you figured it out. Thanks for watching