Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# discord-bot-test
22 changes: 22 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os
import discord
from discord.ext import commands
from dotenv import load_dotenv

load_dotenv()
TOKEN = os.getenv("DISCORD_BOT_TOKEN")

intents = discord.Intents.default()
intents.message_content = True

bot = commands.Bot(command_prefix="!", intents=intents)

@bot.event
async def on_ready():
print(f"✅ 봇 로그인 성공: {bot.user}")

@bot.command()
async def 안녕(ctx):
await ctx.send("안녕하세요! 👋 테스트 중입니다.")

bot.run(TOKEN)