Skip to content

Commit

Permalink
updated images and code
Browse files Browse the repository at this point in the history
  • Loading branch information
snikolaj committed Dec 3, 2024
1 parent a216095 commit 861deae
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tutorials/create-discord-bot/01.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,32 +101,27 @@ 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):
if message.author == client.user:
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('<YOUR-TOKEN-HERE>')
```
Expand Down
Binary file modified tutorials/create-discord-bot/images/Authorize-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/Authorize-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/Build-a-Bot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/Create-an-Application.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/Gateway-Intents.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/New-Application.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/OAuth2-URL-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tutorials/create-discord-bot/images/OAuth2-URL-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 861deae

Please sign in to comment.