This bot is developed using the Disnake library, a modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord.
Creating a Discord bot involves several steps. Here is a detailed process to create a Discord bot:
Create a Discord Account: If you don't already have a Discord account, create one by downloading and installing the Discord application from the official website.
Create a Server: Create a server by clicking on the "+" icon in the bottom left corner of the Discord application and selecting "Create a Server." Choose a name and icon for your server.
Access the Developer Portal: Go to the Discord Developer Portal into your browser.
Create a New Application: Click on the "New Application" button.
Name the Application: Fill in the details of your app (name, etc.) and proceed to the app's dashboard.
Switch to Bot Mode: Look up "Bot" on the settings list and click "Add Bot" to switch your app to bot mode.
Reset Token: Select the "Reset Token" option and confirm by clicking "Yes, do it!".
Copy the Bot Token: The bot token is your bot's password. Copy the token to the clipboard and paste it into your .env.
OAuth2 Tab: Switch to the "OAuth2" tab.
Set Permissions: Set the app's scope to "bot" and choose the permissions you want for the bot.
Create an Invite URL: The bot will generate a URL at the bottom. Copy the URL and paste it into your browser.
Authorize the Bot: Choose a server to invite the bot to and click "Authorize".
/dog
: send a random pic or gif of a dog
/ping
: check your bot's latency
/uptime
: check your bot's uptime