import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
intents.messages = True
Bot = commands.Bot(command_prefix="!n ", intents=intents)
@Bot.event
async def on_ready():
print("Ben Hazirim!")
channel = Bot.get_channel(1076916680489439232)
await channel.send('Test')
@Bot.event
async def on_message(message):
if message.author == Bot.user:
return
if message.content.lower() == "selam":
channel = message.channel
response = "selam!"
await channel.send(response)
await Bot.process_commands(message)
Bot.run('Token')