'Discord.py code doesn't work! How can i fix this?

Why does not this work? When I run the code and try the !test, it doesn't even send an error to the terminal. How can i fix this?

import discord
from discord.ext import commands


bot = commands.Bot(command_prefix="!")




bot.command()
async def test(ctx):
    ctx.send("test")
    
    
    
    
bot.run(token)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source