Heres the code:
import os
from discord.ext import commands
import discord.ext.commands.bot
import discord
intents = discord.Intents.default()
intents.message_content = True #v2
client = commands.Bot(command_prefix=‘!’, intents=intents)
@client.event
async def on_ready():
print(f’Successfully logged in as {client.user}')
@client.event
async def on_message(message):
await client.process_commands(message)
@client.command()
async def hello(ctx):
await ctx.channel.send(f’Hello {ctx.author}')
my_secret = os.environ[‘T’]
token = my_secret
client.run(token) #The error starts here
I have no idea whats going on and how to fix it.