What is wring with my code?

What is wrong with my code. why doesn’t it work ?
I tried adding a function to the Event. but doesn’t seem to be working/

bot is discord.Client(), with the brackets