Hey guys I just started to learn how to code a Discord Bot using the link:
I am at timestamp 19:14 where he runs the Discord Bot and it works perfectly for him, but I have the same exact code as him and I am still getting an error. An image is attached:
Also, it fixed the problem, but it gives me this error now:
Traceback (most recent call last):
File “main.py”, line 8 in
client = commands.Bot(command_prefix=“mm!”, intents=intents)
NameError: name “commands” is not defined
My code is below:
import os
import discord
my_secret = os.environ[‘Token’]
I request to freecodecamp team that please look into this problem because this causes an major issue while taking any reference from this discord bot making youtube video or writing the whole code, the code is outdated by the way. so please look into it.