mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Creating a bot with a name that is already in use will raise an error. However, by deactivating the existing bot, creating a new bot with the same name, and then reactivating the original bot, it is possible to have multiple bots with the same name. To fix this, we check if the bot name is already in use in the active bots list. If it is, an error will be raised, prompting either the name of the existing bot to be changed or the bot to be deactivated. Co-authored-by: Sujal Shah <sujalshah28092004@gmail.com>