#π My bot dont react on server, but he does everything when he is on normal chat...
11 messages Β· Page 1 of 1 (latest)
@civic flume
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
@bot.event
async def on_ready():
print("Bot online as --", bot.user)
print("-------")
@bot.command()
async def hello(ctx):
await ctx.send("HI")
bot.run(bot token...)
-------The code here
you probably have to specify channel ID, and other conditions as the bot does not know where to send the message, etc
Thatβs my assumption, as I have never worked on discord bot before
Thanks, I did something with it and now it works. You did not helped me, but really thank you for being so fast and helpful for others!
Everything is okay now, you dont need to help :)
You can just !close the channel
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.