Right now if the bot has a command (ex.: test) which replies with itself, the bot will enter a loop of executing the command over and over. Ideally the bot should ignore messages which come from itself when executing commands.
Examples of how other libraries manage this:
I think the only reason why they can be configured is because people used to run self-bots (bot libs with user tokens so it runs as the user) which meant they had to listen to themselves to let people execute commands. That's also how bots worked before bot users existed. So I'm assuming the configuration stuff is either old or not supported by Discord.
All things considered I think we can ignore all bots for now since that's the easiest to implement and revisit this if running other bots' commands is needed later.
Right now if the bot has a command (ex.:
test) which replies with itself, the bot will enter a loop of executing the command over and over. Ideally the bot should ignore messages which come from itself when executing commands.Examples of how other libraries manage this:
I think the only reason why they can be configured is because people used to run self-bots (bot libs with user tokens so it runs as the user) which meant they had to listen to themselves to let people execute commands. That's also how bots worked before bot users existed. So I'm assuming the configuration stuff is either old or not supported by Discord.
All things considered I think we can ignore all bots for now since that's the easiest to implement and revisit this if running other bots' commands is needed later.