def showAlert(msg, type="Alerts"): """Display a text notification on the dashboard.""" messages = SmartDashboard.getStringArray(type, []) messages = [x for x in messages if x] messages.append(msg) SmartDashboard.putStringArray(type, messages)