You are given an existing, messy codebase (approximately 100–1500 lines, depending on variant) implementing a chat/bot message processing system. The code handles messages sent to a shared channel and dispatches them to various bots based on message prefixes or keywords. Common bots include: - AwayBot: tracks users who are away…