Created
December 26, 2023 15:34
-
-
Save Fatih5252/24f594f5318044fa0323a8a9b73b041c to your computer and use it in GitHub Desktop.
prefix command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install discord.py | |
import discord | |
from discord.ext import commands | |
intents = discord.Intents.default() | |
intents.message_context = True | |
bot = commands.Bot(command_prefix="!", intents=intents) | |
@bot.command() | |
async def ping(ctx): | |
await ctx.send("Pong!) | |
bot.run(BOT TOKEN) | |
# pls dont share anyone your bot token!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment