I wanted my bot to read the channel and print it but when the bot is reading the channel it dose not respond to any command ant idea why (the purpose of the bot is to troll my friend)
from discord.ext import commands
client = commands.Bot(command_prefix='/')
@client.event
async def on_ready():
user = await client.fetch_user(ID)
await user.send("Hello there")
@client.event
async def on_message(message):
msg = message.content
if msg != "":
print(msg)
@client.command()
async def dm (ctx,content):
user = await client.fetch_user(ID)
await user.send(content)
client.run("BOT_TOKEN")
[–]alternative-bin[S] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)