Anti-Advertising will automatically delete messages that contain invite links to other discord servers.
You can enable Anti-Advertising by enabling the antiad module. The Anti-Advertising module does not currently have any extra configuration.
/lindsey modules enable antiad
Once enabled, Lindsey will automatically delete users that post invite links to other discord servers. Moderators are exempt from this as well as official Discord invite links (like Discord Townhall or Discord Developers).
Users that spam invite links will automatically be banned by the bot, the ban is only applied if a specific set of things happen, usually messages will just be deleted and the user will receive a warning in chat.