The edits_hourly dataset (available both in Hive and Druid) has a user_is_bot field which should take into account both whether the user was in the bot group and whether the user has "bot" in their name.
However, the creating code only takes into account the first item. The line ARRAY_CONTAINS(event_user_groups_historical, 'bot') AS user_is_bot should instead be SIZE(event_user_is_bot_by_historical) > 0 AS user_is_bot.
This has major impacts on users of edits_hourly, since it can distort non-bot edit counts (a key metric) by millions.