diff --git a/tutorials/create-discord-bot/01.en.md b/tutorials/create-discord-bot/01.en.md index 11f99cabc..69d1f9a33 100644 --- a/tutorials/create-discord-bot/01.en.md +++ b/tutorials/create-discord-bot/01.en.md @@ -101,23 +101,16 @@ Copy and paste the code below, replacing the token in the final line with your t ```python import discord - intents = discord.Intents.default() intents.message_content = True - client = discord.Client(intents=intents) - words = [["youre", "you're"], ["im", "i'm"], ["Im", "I'm"], ["hes", "he's"], ["shes", "she's"]] - @client.event async def on_ready(): - print("Bot successfully logged in as " + client.user) - - - + print(f"Bot successfully logged in as {client.user}") @client.event async def on_message(message): @@ -125,8 +118,10 @@ async def on_message(message): return for word in words: if word[0] in message.content: - await message.channel.send(str(message.author) + ", you misspelled " + word[1] + " as " + word[0], reference=message) - + await message.channel.send( + f"{message.author}, you misspelled {word[1]} as {word[0]}", + reference=message + ) client.run('') ``` diff --git a/tutorials/create-discord-bot/images/Authorize-1.jpg b/tutorials/create-discord-bot/images/Authorize-1.jpg index 72f37cdb6..ce63f4860 100644 Binary files a/tutorials/create-discord-bot/images/Authorize-1.jpg and b/tutorials/create-discord-bot/images/Authorize-1.jpg differ diff --git a/tutorials/create-discord-bot/images/Authorize-2.jpg b/tutorials/create-discord-bot/images/Authorize-2.jpg index 01b2da64b..8b0c7c473 100644 Binary files a/tutorials/create-discord-bot/images/Authorize-2.jpg and b/tutorials/create-discord-bot/images/Authorize-2.jpg differ diff --git a/tutorials/create-discord-bot/images/Build-a-Bot.jpg b/tutorials/create-discord-bot/images/Build-a-Bot.jpg index c11a7e33e..3d96da5bf 100644 Binary files a/tutorials/create-discord-bot/images/Build-a-Bot.jpg and b/tutorials/create-discord-bot/images/Build-a-Bot.jpg differ diff --git a/tutorials/create-discord-bot/images/Create-an-Application.jpg b/tutorials/create-discord-bot/images/Create-an-Application.jpg index 67646dcb7..4881e776c 100644 Binary files a/tutorials/create-discord-bot/images/Create-an-Application.jpg and b/tutorials/create-discord-bot/images/Create-an-Application.jpg differ diff --git a/tutorials/create-discord-bot/images/Gateway-Intents.jpg b/tutorials/create-discord-bot/images/Gateway-Intents.jpg index e844769e7..e2efb14c8 100644 Binary files a/tutorials/create-discord-bot/images/Gateway-Intents.jpg and b/tutorials/create-discord-bot/images/Gateway-Intents.jpg differ diff --git a/tutorials/create-discord-bot/images/New-Application.jpg b/tutorials/create-discord-bot/images/New-Application.jpg index d0f06a6d1..2483ed53a 100644 Binary files a/tutorials/create-discord-bot/images/New-Application.jpg and b/tutorials/create-discord-bot/images/New-Application.jpg differ diff --git a/tutorials/create-discord-bot/images/OAuth2-URL-1.jpg b/tutorials/create-discord-bot/images/OAuth2-URL-1.jpg index 0afbd9d87..e72f9689e 100644 Binary files a/tutorials/create-discord-bot/images/OAuth2-URL-1.jpg and b/tutorials/create-discord-bot/images/OAuth2-URL-1.jpg differ diff --git a/tutorials/create-discord-bot/images/OAuth2-URL-2.jpg b/tutorials/create-discord-bot/images/OAuth2-URL-2.jpg index c82fb5c02..5e55fef2b 100644 Binary files a/tutorials/create-discord-bot/images/OAuth2-URL-2.jpg and b/tutorials/create-discord-bot/images/OAuth2-URL-2.jpg differ