Credits go to @Benmac83 on the Botspot discord server