why doesnt this work
import discord
from discord import *
from settings import *
activity = discord.Activity(type=discord.ActivityType.watching, name="Hydra")
bot = discord.Bot(command_prefix = "hydra!", intents = discord.Intents.all(), activity = activity)
@bot.event
async def on_ready():
print(f"Logged into discord bot as: {bot.user} ID : {bot.user.ID}")
@bot.slash_command(name="ping", description="Replies with the bots ping.")
async def ping(ctx):
latency = round(bot.latency * 1000)
await ctx.respond(f"Pong! {latency}ms :white_check_mark:")
bot.run(token)
im new to python bot coding as i usually use js.